Skip to contentSkip to conversation

staging: comedi: declare das6402_boards as static

PATCH Superseded Michele Curti 3 participants 5 messages Apr 10, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: declare das6402_boards as static

Hi,
das6402_boards array seems to be used in das6402.c only, so declare it as static.

This patch applies to linux-next next-20140410.

Regards,
Michele

---
 drivers/staging/comedi/drivers/das6402.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/das6402.c +1 -1
index e0cfb6c..d18eea6 100644
@@ -125,7 +125,7 @@ struct das6402_boardinfo {
 	unsigned int maxdata;
 };
 
-struct das6402_boardinfo das6402_boards[] = {
+static struct das6402_boardinfo das6402_boards[] = {
 	{
 		.name		= "das6402-12",
 		.maxdata	= 0x0fff,
Signature · 1 line
1.9.1
#1 lore raw
Quoted 9 lines · Michele Curti

Hi,
das6402_boards array seems to be used in das6402.c only, so declare it as static.

This patch applies to linux-next next-20140410.

Regards,
Michele

The patch is fine, but you have too much fluff in the changelog. We just apply patches automatically by saving the raw email as text (including headers and everything) the we do a
cat raw_email.txt | git am.

Your changelog is all "Hello, how are you? blah blah blah. Best wishes, etc.". It should just say:

das6402_boards array is used in das6402.c only, so declare it as static.

Signed-off-by ...

You can put the "This patch applies to linux-next next-20140410" under the --- cut off line so that we're aware but it doesn't get saved in the log. For staging it doesn't really matter, because either the patch applies to linux-next or we'll ask you to redo it.

Please send a v2 with a terser changelog.

regards,
dan carpenter

#2 lore raw

PATCH v2 1/1 staging: comedi: declare das6402_boards as static

In reply to Michele Curti

das6402_boards array is used in das6402.c only, so declare it as static.

---
 drivers/staging/comedi/drivers/das6402.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/das6402.c +1 -1
index e0cfb6c..d18eea6 100644
@@ -125,7 +125,7 @@ struct das6402_boardinfo {
 	unsigned int maxdata;
 };
 
-struct das6402_boardinfo das6402_boards[] = {
+static struct das6402_boardinfo das6402_boards[] = {
 	{
 		.name		= "das6402-12",
 		.maxdata	= 0x0fff,
Signature · 1 line
1.9.1