<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/staging/dgap, branch v4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.2</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-05-31T02:40:14Z</updated>
<entry>
<title>Staging: dgap: dgap: Fixed spelling errors</title>
<updated>2015-05-31T02:40:14Z</updated>
<author>
<name>Colin Cronin</name>
<email>colinpatrickcronin@gmail.com</email>
</author>
<published>2015-05-15T20:02:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=469caabe52aaa051f4a18a14055af459db2dcb01'/>
<id>urn:sha1:469caabe52aaa051f4a18a14055af459db2dcb01</id>
<content type='text'>
Fixed comment spelling errors

Signed-off-by: Colin Cronin &lt;colinpatrickcronin@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove unused code</title>
<updated>2015-05-10T13:17:50Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-05-09T12:29:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=56f40e521047ae8623ad5dcbb5a08ad91684cab6'/>
<id>urn:sha1:56f40e521047ae8623ad5dcbb5a08ad91684cab6</id>
<content type='text'>
dgap_sindex() is being only called from dgap_getword() which searches
for either ' ' or '\t' or '\n'. this part of the code with '^' at the
beginning is never used.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: use remove function</title>
<updated>2015-05-10T13:12:09Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-05-07T11:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1397e2fd065a87f623263e23028f3b252917121b'/>
<id>urn:sha1:1397e2fd065a87f623263e23028f3b252917121b</id>
<content type='text'>
the remove callback will be called in two cases, 1) if the driver is
removed and 2) if the pci device is removed. as of now all the board
cleanups were being done in the module unload section so if the module
is unloaded everything works. But if the pci device is removed then the
loaded driver will be left in an inconsistent state.
So moved the cleanups in the remove callback and since there was no
reference of dgap_driver in remove_one(), so had to define the
pci_driver in the function.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: move function before remove</title>
<updated>2015-05-10T13:12:09Z</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2015-05-07T11:12:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=d1c9f3efc47f48bc93106b6bf3fd43f9915da46e'/>
<id>urn:sha1:d1c9f3efc47f48bc93106b6bf3fd43f9915da46e</id>
<content type='text'>
move the cleanup function before the remove call as the next patch of
the series is going to use that.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: dgap: Use setup_timer to combine initialization</title>
<updated>2015-03-16T15:17:31Z</updated>
<author>
<name>Somya Anand</name>
<email>somyaanand214@gmail.com</email>
</author>
<published>2015-03-11T11:32:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2049f1ea88fa07e5912c67c4c623bb342b4b02af'/>
<id>urn:sha1:2049f1ea88fa07e5912c67c4c623bb342b4b02af</id>
<content type='text'>
The function setup_timer combines the initialization of a timer with the
initialization of the timer's function and data fields.

So, this patch combines the multiline code for timer initialization using the function
setup_timer. This issue is identified via coccinelle script.

@@
expression E1, E2, E3;
type T;
@@
- init_timer(&amp;E1);
...
(
- E1.function = E2;
...
- E1.data = (T)E3;
+ setup_timer(&amp;E1, E2, (T)E3);
|
- E1.data = (T)E3;
...
- E1.function = E2;
+ setup_timer(&amp;E1, E2, (T)E3);
|
- E1.function = E2;
+ setup_timer(&amp;E1, E2, 0);
)

Signed-off-by: Somya Anand &lt;somyaanand214@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Staging: dgap: Remove unused variable</title>
<updated>2015-03-09T12:30:40Z</updated>
<author>
<name>Haneen Mohammed</name>
<email>hamohammed.sa@gmail.com</email>
</author>
<published>2015-03-07T21:02:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6019ee4095d9a40927060d33e79344a3f34b8a96'/>
<id>urn:sha1:6019ee4095d9a40927060d33e79344a3f34b8a96</id>
<content type='text'>
This patch removes variable that was used to store only the return value of a function call.

The issue was detected and resolved using the following coccinelle script:

@@
expression ret;
identifier f;
@@

-ret =
+return
	f(...);
-return ret;

Signed-off-by: Haneen Mohammed &lt;hamohammed.sa@gmail.com&gt;
Reviewed-by: Daniel Baluta &lt;daniel.baluta@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: Avoid name collision</title>
<updated>2015-03-07T01:06:30Z</updated>
<author>
<name>Fabio Estevam</name>
<email>fabio.estevam@freescale.com</email>
</author>
<published>2015-03-03T12:55:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4c1d2dcb64db1d881d1822b5789022a03bc6abe4'/>
<id>urn:sha1:4c1d2dcb64db1d881d1822b5789022a03bc6abe4</id>
<content type='text'>
Building for ARM64 leads to the following build warning:

In file included from drivers/staging/dgap/dgap.c:66:0:
drivers/staging/dgap/dgap.h:124:0: warning: "PCI_IO_SIZE" redefined
 #define PCI_IO_SIZE  0x00200000
 ^
In file included from ./arch/arm64/include/asm/page.h:66:0,
                 from include/linux/mm_types.h:15,
                 from include/linux/sched.h:27,
                 from ./arch/arm64/include/asm/compat.h:25,
                 from ./arch/arm64/include/asm/stat.h:23,
                 from include/linux/stat.h:5,
                 from include/linux/module.h:10,
                 from drivers/staging/dgap/dgap.c:47:
./arch/arm64/include/asm/memory.h:39:0: note: this is the location of the previous definition
 #define PCI_IO_SIZE  SZ_16M
 ^

Use PCI_IO_SIZE_DGAP to avoid the name collision.

Reported-by: Olof's autobuilder &lt;build@lixom.net&gt;
Signed-off-by: Fabio Estevam &lt;fabio.estevam@freescale.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: remove unused variable</title>
<updated>2015-03-02T00:57:36Z</updated>
<author>
<name>Aya Mahfouz</name>
<email>mahfouz.saif.elyazal@gmail.com</email>
</author>
<published>2015-02-27T13:11:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=e20af8acf1b538496827cd1e3b7b29631443528a'/>
<id>urn:sha1:e20af8acf1b538496827cd1e3b7b29631443528a</id>
<content type='text'>
This patch removes a variable that was simply used to
store the return value of a function call before
returning it.

The issue was detected and resolved using the following
coccinelle script:

@@
identifier len,f;
@@

-int len;
 ... when != len
     when strict
-len =
+return
        f(...);
-return len;

Signed-off-by: Aya Mahfouz &lt;mahfouz.saif.elyazal@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: fix "if" statement that always evaluates to true</title>
<updated>2015-01-25T12:08:13Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2015-01-23T11:44:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=ce5b615bc29273de705188e8a827dd7663069602'/>
<id>urn:sha1:ce5b615bc29273de705188e8a827dd7663069602</id>
<content type='text'>
cppcheck warning:
(warnning) Logical disjunction always evaluates to true

Reported-by: David Binderman &lt;dcb314@hotmail.com&gt;
Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: dgap: use gotos for handling error in dgap_remap()</title>
<updated>2015-01-18T00:10:48Z</updated>
<author>
<name>Daeseok Youn</name>
<email>daeseok.youn@gmail.com</email>
</author>
<published>2014-12-26T01:34:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=aa9895da3e2e6aa2674ffa54b3b927503cc47b49'/>
<id>urn:sha1:aa9895da3e2e6aa2674ffa54b3b927503cc47b49</id>
<content type='text'>
Signed-off-by: Daeseok Youn &lt;daeseok.youn@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
