Skip to contentSkip to conversation

linux-next: build warnings after merge of the driver-core tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Dec 1, 2014 – Dec 2, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Greg,

After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

In file included from kernel/power/main.c:16:0:
include/linux/debugfs.h:105:10: warning: 'struct device' declared inside parameter list

          void *data));
          ^

And many more like this.

Introduced by commit 98210b7f73f1 ("debugfs: add helper function to create device related seq_file"). See Rule 1 from Documentation/SubmitChecklist - though in this case a simple "struct device;" would probably do.

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 10 lines · Stephen Rothwell

Hi Greg,

After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

In file included from kernel/power/main.c:16:0:
include/linux/debugfs.h:105:10: warning: 'struct device' declared inside parameter list

          void *data));
          ^
Quoted 7 lines

And many more like this.

Introduced by commit 98210b7f73f1 ("debugfs: add helper function to create device related seq_file"). See Rule 1 from Documentation/SubmitChecklist - though in this case a simple "struct device;" would probably do.

I submitted a patch for that yesterday [1] and got (automated) email from Greg that it is going into his driver-core tree.

Regards,
Arend

[1] http://mid.gmane.org/[email protected]

#2 lore raw
Quoted 19 lines · Arend van Spriel
Quoted 10 lines · Stephen Rothwell

Hi Greg,

After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

In file included from kernel/power/main.c:16:0:
include/linux/debugfs.h:105:10: warning: 'struct device' declared inside parameter list

          void *data));
          ^
Quoted 7 lines

And many more like this.

Introduced by commit 98210b7f73f1 ("debugfs: add helper function to create device related seq_file"). See Rule 1 from Documentation/SubmitChecklist - though in this case a simple "struct device;" would probably do.

Quoted 7 lines

I submitted a patch for that yesterday [1] and got (automated) email from Greg that it is going into his driver-core tree.

Regards,
Arend

[1] http://mid.gmane.org/[email protected]

Sorry for the delay, is now in my driver-core-next branch, so this will be fixed in the next linux-next pull.

greg k-h