Skip to contentSkip to conversation

m68k: replaced gcc specific macros with ones from compiler.h

PATCH In review Gideon Israel Dsouza 3 participants 13 messages Jan 19, 2017 – Jan 20, 2017

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

PATCH 2/2 m68k: replaced gcc specific macros with ones from compiler.h

There is <linux/compiler.h> which provides macros for various gcc specific constructs. Eg: __weak for __attribute__((weak)). I've cleaned all instances of gcc specific attributes with the right macros for all files under /arch/m68k

This patch depends on the previous with changes in /include/linux/compiler-gcc.h

---
 arch/m68k/68000/bootlogo-vz.h     | 4 +++-
 arch/m68k/68000/bootlogo.h        | 4 +++-
 arch/m68k/include/asm/MC68328.h   | 3 ++-
 arch/m68k/include/asm/MC68EZ328.h | 3 ++-
 arch/m68k/include/asm/MC68VZ328.h | 2 +-
 arch/m68k/include/asm/natfeat.h   | 3 ++-
 arch/m68k/lib/ashldi3.c           | 8 ++++----
 arch/m68k/lib/ashrdi3.c           | 8 ++++----
 arch/m68k/lib/lshrdi3.c           | 8 ++++----
 arch/m68k/lib/muldi3.c            | 8 ++++----
 10 files changed, 29 insertions(+), 22 deletions(-)
arch/m68k/68000/bootlogo-vz.h +3 -1
index b38e2b2..6ff09be 100644
@@ -1,6 +1,8 @@
+#include <linux/compiler.h>
+
 #define splash_width 640
 #define splash_height 480
-unsigned char __attribute__ ((aligned(16))) bootlogo_bits[] = {
+unsigned char __aligned(16) bootlogo_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
arch/m68k/68000/bootlogo.h +3 -1
index b896c93..c466db3 100644
@@ -1,6 +1,8 @@
+#include <linux/compiler.h>
+
 #define bootlogo_width 160
 #define bootlogo_height 160
-unsigned char __attribute__ ((aligned(16))) bootlogo_bits[] = {
+unsigned char __aligned(16) bootlogo_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x01, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x40, 0x55, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
arch/m68k/include/asm/MC68328.h +2 -1
index 1a8080c..b61230e 100644
@@ -8,6 +8,7 @@
  * Copyright (C) 1998  Kenneth Albanowski <[email protected]>,
  *
  */
+#include <linux/compiler.h>
 
 #ifndef _MC68328_H_
 #define _MC68328_H_
@@ -993,7 +994,7 @@ typedef volatile struct {
   volatile unsigned short int pad1;
   volatile unsigned short int pad2;
   volatile unsigned short int pad3;
-} __attribute__((packed)) m68328_uart;
+} __packed m68328_uart;
 
 
 /**********
arch/m68k/include/asm/MC68EZ328.h +2 -1
index fedac87..703331e 100644
@@ -9,6 +9,7 @@
  *                     The Silver Hammer Group, Ltd.
  *
  */
+#include <linux/compiler.h>
 
 #ifndef _MC68EZ328_H_
 #define _MC68EZ328_H_
@@ -815,7 +816,7 @@ typedef volatile struct {
   volatile unsigned short int nipr;
   volatile unsigned short int pad1;
   volatile unsigned short int pad2;
-} __attribute__((packed)) m68328_uart;
+} __packed m68328_uart;
 
 
 /**********
arch/m68k/include/asm/MC68VZ328.h +1 -1
index 34a51b2..fbaed7d 100644
@@ -909,7 +909,7 @@ typedef struct {
   volatile unsigned short int nipr;
   volatile unsigned short int hmark;
   volatile unsigned short int unused;
-} __attribute__((packed)) m68328_uart;
+} __packed m68328_uart;
 
 
 
arch/m68k/include/asm/natfeat.h +2 -1
index a3521b8..1feceb3 100644
@@ -6,6 +6,7 @@
  * This software may be used and distributed according to the terms of
  * the GNU General Public License (GPL), incorporated herein by reference.
  */
+#include <linux/compiler.h>
 
 #ifndef _NATFEAT_H
 #define _NATFEAT_H
@@ -17,6 +18,6 @@ void nf_init(void);
 void nf_shutdown(void);
 
 void nfprint(const char *fmt, ...)
-	__attribute__ ((format (printf, 1, 2)));
+	__print(1, 2);
 
 # endif /* _NATFEAT_H */
arch/m68k/lib/ashldi3.c +4 -4
index 8dffd36..ac08f81 100644
@@ -18,10 +18,10 @@ GNU General Public License for more details. */
 
 #define BITS_PER_UNIT 8
 
-typedef		 int SItype	__attribute__ ((mode (SI)));
-typedef unsigned int USItype	__attribute__ ((mode (SI)));
-typedef		 int DItype	__attribute__ ((mode (DI)));
-typedef int word_type __attribute__ ((mode (__word__)));
+typedef		 int SItype	__mode(SI);
+typedef unsigned int USItype	__mode(SI);
+typedef		 int DItype	__mode(DI);
+typedef int word_type           __mode(__word__);
 
 struct DIstruct {SItype high, low;};
 
arch/m68k/lib/ashrdi3.c +4 -4
index e6565a3..5837b1d 100644
@@ -18,10 +18,10 @@ GNU General Public License for more details. */
 
 #define BITS_PER_UNIT 8
 
-typedef		 int SItype	__attribute__ ((mode (SI)));
-typedef unsigned int USItype	__attribute__ ((mode (SI)));
-typedef		 int DItype	__attribute__ ((mode (DI)));
-typedef int word_type __attribute__ ((mode (__word__)));
+typedef		 int SItype	__mode(SI);
+typedef unsigned int USItype	__mode(SI);
+typedef		 int DItype	__mode(DI);
+typedef int word_type           __mode(__word__);
 
 struct DIstruct {SItype high, low;};
 
arch/m68k/lib/lshrdi3.c +4 -4
index 0397797..7f40566 100644
@@ -18,10 +18,10 @@ GNU General Public License for more details. */
 
 #define BITS_PER_UNIT 8
 
-typedef		 int SItype	__attribute__ ((mode (SI)));
-typedef unsigned int USItype	__attribute__ ((mode (SI)));
-typedef		 int DItype	__attribute__ ((mode (DI)));
-typedef int word_type __attribute__ ((mode (__word__)));
+typedef		 int SItype	__mode(SI);
+typedef unsigned int USItype	__mode(SI);
+typedef		 int DItype	__mode(DI);
+typedef int word_type           __mode(__word__);
 
 struct DIstruct {SItype high, low;};
 
arch/m68k/lib/muldi3.c +4 -4
index 6459af5..3fb05c6 100644
@@ -65,10 +65,10 @@ GNU General Public License for more details. */
     umul_ppmm (__w.s.high, __w.s.low, u, v);				\
     __w.ll; })
 
-typedef 	 int SItype	__attribute__ ((mode (SI)));
-typedef unsigned int USItype	__attribute__ ((mode (SI)));
-typedef		 int DItype	__attribute__ ((mode (DI)));
-typedef int word_type __attribute__ ((mode (__word__)));
+typedef 	 int SItype	__mode(SI);
+typedef unsigned int USItype	__mode(SI);
+typedef		 int DItype	__mode(DI);
+typedef int word_type           __mode(__word__);
 
 struct DIstruct {SItype high, low;};
 
Signature · 1 line
2.7.4
#1 lore raw
reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0

reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k

All errors (new ones prefixed by >>):

>> arch/m68k/lib/ashldi3.c:21:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/ashldi3.c:21:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/ashldi3.c:22:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/ashldi3.c:22:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/ashldi3.c:23:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/ashldi3.c:23:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/ashldi3.c:24:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/ashldi3.c:24:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^
--
>> arch/m68k/lib/ashrdi3.c:21:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/ashrdi3.c:21:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/ashrdi3.c:22:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/ashrdi3.c:22:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/ashrdi3.c:23:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/ashrdi3.c:23:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/ashrdi3.c:24:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/ashrdi3.c:24:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^
--
>> arch/m68k/lib/lshrdi3.c:21:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/lshrdi3.c:21:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/lshrdi3.c:22:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/lshrdi3.c:22:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/lshrdi3.c:23:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/lshrdi3.c:23:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/lshrdi3.c:24:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/lshrdi3.c:24:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^
--
>> arch/m68k/lib/muldi3.c:68:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/muldi3.c:68:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/muldi3.c:69:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/muldi3.c:69:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/muldi3.c:70:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/muldi3.c:70:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/muldi3.c:71:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/muldi3.c:71:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^

vim +/x +21 arch/m68k/lib/ashldi3.c

    15	
    16	#include <linux/compiler.h>
    17	#include <linux/export.h>
    18	
    19	#define BITS_PER_UNIT 8
    20	
  > 21	typedef		 int SItype	__mode(SI);
    22	typedef unsigned int USItype	__mode(SI);
    23	typedef		 int DItype	__mode(DI);
    24	typedef int word_type           __mode(__word__);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

#2 lore raw
In reply to Gideon Israel Dsouza
reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0

reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k

All errors (new ones prefixed by >>):

>> arch/m68k/lib/ashldi3.c:21:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/ashldi3.c:21:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/ashldi3.c:22:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/ashldi3.c:22:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/ashldi3.c:23:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/ashldi3.c:23:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/ashldi3.c:24:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/ashldi3.c:24:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^
--
>> arch/m68k/lib/ashrdi3.c:21:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/ashrdi3.c:21:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/ashrdi3.c:22:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/ashrdi3.c:22:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/ashrdi3.c:23:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/ashrdi3.c:23:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/ashrdi3.c:24:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/ashrdi3.c:24:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^
--
>> arch/m68k/lib/lshrdi3.c:21:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/lshrdi3.c:21:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/lshrdi3.c:22:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/lshrdi3.c:22:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/lshrdi3.c:23:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/lshrdi3.c:23:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/lshrdi3.c:24:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/lshrdi3.c:24:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^
--
>> arch/m68k/lib/muldi3.c:68:1: error: unknown machine mode 'x'
    typedef   int SItype __mode(SI);
    ^
>> arch/m68k/lib/muldi3.c:68:28: error: expected ',' or ';' before '(' token
    typedef   int SItype __mode(SI);
                               ^
   arch/m68k/lib/muldi3.c:69:1: error: unknown machine mode 'x'
    typedef unsigned int USItype __mode(SI);
    ^
   arch/m68k/lib/muldi3.c:69:36: error: expected ',' or ';' before '(' token
    typedef unsigned int USItype __mode(SI);
                                       ^
   arch/m68k/lib/muldi3.c:70:1: error: unknown machine mode 'x'
    typedef   int DItype __mode(DI);
    ^
   arch/m68k/lib/muldi3.c:70:28: error: expected ',' or ';' before '(' token
    typedef   int DItype __mode(DI);
                               ^
   arch/m68k/lib/muldi3.c:71:1: error: unknown machine mode 'x'
    typedef int word_type           __mode(__word__);
    ^
   arch/m68k/lib/muldi3.c:71:39: error: expected ',' or ';' before '(' token
    typedef int word_type           __mode(__word__);
                                          ^

vim +/x +21 arch/m68k/lib/ashldi3.c

    15	
    16	#include <linux/compiler.h>
    17	#include <linux/export.h>
    18	
    19	#define BITS_PER_UNIT 8
    20	
  > 21	typedef		 int SItype	__mode(SI);
    22	typedef unsigned int USItype	__mode(SI);
    23	typedef		 int DItype	__mode(DI);
    24	typedef int word_type           __mode(__word__);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

#3 lore raw
Quoted 9 lines · kbuild test robot

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)

Hmm, although Gideon seems to have use git-send-email, there's no "In-Reply-To" header in the email containing the second patch, hence the kbuild test robot didn't consider the dependency on the first patch...

Gideon: what exactly did you use to send this emai series?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#4 lore raw
In reply to kbuild test robot
Quoted 9 lines · kbuild test robot

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)

Hmm, although Gideon seems to have use git-send-email, there's no "In-Reply-To" header in the email containing the second patch, hence the kbuild test robot didn't consider the dependency on the first patch...

Gideon: what exactly did you use to send this emai series?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#5 lore raw
Quoted 1 line

Gideon: what exactly did you use to send this email series?

I used git format-patch and then send-email on my Fedora 24 system.

I did :

git format-patch HEAD^^ # this generated two patches for the two commits I made git send-email --to ... ~/patches/0001- .... #sent first patch
git send-email --to ... ~/patches/0002- ....#sent second patch

Yes, I sent each patch individually. Should I have just passed the directory?

Quoted 28 lines · Geert Uytterhoeven
Quoted 9 lines · kbuild test robot

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)

Hmm, although Gideon seems to have use git-send-email, there's no "In-Reply-To" header in the email containing the second patch, hence the kbuild test robot didn't consider the dependency on the first patch...

Gideon: what exactly did you use to send this emai series?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#6 lore raw
In reply to Geert Uytterhoeven
Quoted 1 line

Gideon: what exactly did you use to send this email series?

I used git format-patch and then send-email on my Fedora 24 system.

I did :

git format-patch HEAD^^ # this generated two patches for the two commits I made git send-email --to ... ~/patches/0001- .... #sent first patch
git send-email --to ... ~/patches/0002- ....#sent second patch

Yes, I sent each patch individually. Should I have just passed the directory?

Quoted 28 lines · Geert Uytterhoeven
Quoted 9 lines · kbuild test robot

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)

Hmm, although Gideon seems to have use git-send-email, there's no "In-Reply-To" header in the email containing the second patch, hence the kbuild test robot didn't consider the dependency on the first patch...

Gideon: what exactly did you use to send this emai series?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#7 lore raw

Hi Gideon,

Quoted 10 lines · Gideon D'souza
Quoted 1 line

Gideon: what exactly did you use to send this email series?

I used git format-patch and then send-email on my Fedora 24 system.

I did :

git format-patch HEAD^^ # this generated two patches for the two commits I made git send-email --to ... ~/patches/0001- .... #sent first patch
git send-email --to ... ~/patches/0002- ....#sent second patch

Yes, I sent each patch individually. Should I have just passed the directory?

You should pass all patches at once, so they are properly tracked as a series:

    git send-email --to ... ~/patches/0*

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#8 lore raw
In reply to Gideon D'souza

Hi Gideon,

Quoted 10 lines · Gideon D'souza
Quoted 1 line

Gideon: what exactly did you use to send this email series?

I used git format-patch and then send-email on my Fedora 24 system.

I did :

git format-patch HEAD^^ # this generated two patches for the two commits I made git send-email --to ... ~/patches/0001- .... #sent first patch
git send-email --to ... ~/patches/0002- ....#sent second patch

Yes, I sent each patch individually. Should I have just passed the directory?

You should pass all patches at once, so they are properly tracked as a series:

    git send-email --to ... ~/patches/0*

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#9 lore raw

Ah I didn't know they would be tracked a series. Should I resend these?

Quoted 29 lines · Geert Uytterhoeven

Hi Gideon,

Quoted 10 lines · Gideon D'souza
Quoted 1 line

Gideon: what exactly did you use to send this email series?

I used git format-patch and then send-email on my Fedora 24 system.

I did :

git format-patch HEAD^^ # this generated two patches for the two commits I made git send-email --to ... ~/patches/0001- .... #sent first patch
git send-email --to ... ~/patches/0002- ....#sent second patch

Yes, I sent each patch individually. Should I have just passed the directory?

You should pass all patches at once, so they are properly tracked as a series:

    git send-email --to ... ~/patches/0*

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#10 lore raw
In reply to Gideon Israel Dsouza
reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree…

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0

reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k

All error/warnings (new ones prefixed by >>):

arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'

    module_param(major_num, int, 0);
    ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_major_numtype34'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
      __MODULE_INFO(parmtype, name##type, #name ":" _type)
      ^
   include/linux/moduleparam.h:148:2: note: in expansion of macro '__MODULE_PARM_TYPE'
     __MODULE_PARM_TYPE(name, #type)
     ^
   include/linux/moduleparam.h:126:2: note: in expansion of macro 'module_param_named'
     module_param_named(name, name, type, perm)
     ^
   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_major_numtype34'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
      __MODULE_INFO(parmtype, name##type, #name ":" _type)
      ^
   include/linux/moduleparam.h:148:2: note: in expansion of macro '__MODULE_PARM_TYPE'
     __MODULE_PARM_TYPE(name, #type)
     ^
   include/linux/moduleparam.h:126:2: note: in expansion of macro 'module_param_named'
     module_param_named(name, name, type, perm)
     ^
   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   arch/m68k/emu/nfblock.c:53:1: warning: empty declaration
    struct nfhd_device {
    ^
   arch/m68k/emu/nfblock.c:63:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:84:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:94:45: error: storage class specified for parameter 'nfhd_ops'
    static const struct block_device_operations nfhd_ops = {
                                                ^
   arch/m68k/emu/nfblock.c:94:21: error: parameter 'nfhd_ops' is initialized
    static const struct block_device_operations nfhd_ops = {
                        ^
   arch/m68k/emu/nfblock.c:96:12: error: 'nfhd_getgeo' undeclared (first use in this function)
     .getgeo = nfhd_getgeo,
               ^
   arch/m68k/emu/nfblock.c:96:12: note: each undeclared identifier is reported only once for each function it appears in
   arch/m68k/emu/nfblock.c:100:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:156:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:180:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   In file included from arch/m68k/emu/nfblock.c:9:0:
>> include/linux/module.h:131:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return initfn; }     \
     ^
   arch/m68k/emu/nfblock.c:193:1: note: in expansion of macro 'module_init'
    module_init(nfhd_init);
    ^
>> include/linux/module.h:131:2: warning: 'alias' attribute ignored [-Wattributes]
     { return initfn; }     \
     ^
   arch/m68k/emu/nfblock.c:193:1: note: in expansion of macro 'module_init'
    module_init(nfhd_init);
    ^
   arch/m68k/emu/nfblock.c:193:23: error: expected declaration specifiers before ';' token
    module_init(nfhd_init);
                          ^
   In file included from arch/m68k/emu/nfblock.c:9:0:
   include/linux/module.h:137:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfblock.c:194:1: note: in expansion of macro 'module_exit'
    module_exit(nfhd_exit);
    ^
   include/linux/module.h:137:2: warning: 'alias' attribute ignored [-Wattributes]
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfblock.c:194:1: note: in expansion of macro 'module_exit'
    module_exit(nfhd_exit);
    ^
   arch/m68k/emu/nfblock.c:194:23: error: expected declaration specifiers before ';' token
    module_exit(nfhd_exit);
                          ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: storage class specified for parameter '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfblock.c:196:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   arch/m68k/emu/nfblock.c:196:1: error: parameter '__UNIQUE_ID_license37' is initialized
   arch/m68k/emu/nfblock.c:196:1: warning: '__used__' attribute ignored [-Wattributes]
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfblock.c:196:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^

include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
--
In file included from arch/m68k/emu/nfcon.c:20:0:
arch/m68k/include/asm/natfeat.h: In function 'nfprint':
arch/m68k/include/asm/natfeat.h:21:2: error: expected declaration specifiers before '__print'

     __print(1, 2);
     ^
   arch/m68k/emu/nfcon.c:22:12: error: storage class specified for parameter 'stderr_id'
    static int stderr_id;
               ^
   arch/m68k/emu/nfcon.c:23:24: error: storage class specified for parameter 'nfcon_tty_port'
    static struct tty_port nfcon_tty_port;
                           ^
   arch/m68k/emu/nfcon.c:24:27: error: storage class specified for parameter 'nfcon_tty_driver'
    static struct tty_driver *nfcon_tty_driver;
                              ^
   arch/m68k/emu/nfcon.c:27:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:45:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:50:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:55:23: error: storage class specified for parameter 'nf_console'
    static struct console nf_console = {
                          ^
   arch/m68k/emu/nfcon.c:55:15: error: parameter 'nf_console' is initialized
    static struct console nf_console = {
                  ^
   arch/m68k/emu/nfcon.c:57:11: error: 'nfcon_write' undeclared (first use in this function)
     .write = nfcon_write,
              ^
   arch/m68k/emu/nfcon.c:57:11: note: each undeclared identifier is reported only once for each function it appears in
   arch/m68k/emu/nfcon.c:58:12: error: 'nfcon_device' undeclared (first use in this function)
     .device = nfcon_device,
               ^
   arch/m68k/emu/nfcon.c:65:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:70:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:75:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:81:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:89:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:93:36: error: storage class specified for parameter 'nfcon_tty_ops'
    static const struct tty_operations nfcon_tty_ops = {
                                       ^
   arch/m68k/emu/nfcon.c:93:21: error: parameter 'nfcon_tty_ops' is initialized
    static const struct tty_operations nfcon_tty_ops = {
                        ^
   arch/m68k/emu/nfcon.c:94:11: error: 'nfcon_tty_open' undeclared (first use in this function)
     .open  = nfcon_tty_open,
              ^
   arch/m68k/emu/nfcon.c:95:12: error: 'nfcon_tty_close' undeclared (first use in this function)
     .close  = nfcon_tty_close,
               ^
   arch/m68k/emu/nfcon.c:96:12: error: 'nfcon_tty_write' undeclared (first use in this function)
     .write  = nfcon_tty_write,
               ^
   arch/m68k/emu/nfcon.c:97:14: error: 'nfcon_tty_put_char' undeclared (first use in this function)
     .put_char = nfcon_tty_put_char,
                 ^
   arch/m68k/emu/nfcon.c:98:16: error: 'nfcon_tty_write_room' undeclared (first use in this function)
     .write_room = nfcon_tty_write_room,
                   ^
   arch/m68k/emu/nfcon.c:122:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:159:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   In file included from arch/m68k/emu/nfcon.c:9:0:
>> include/linux/module.h:131:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return initfn; }     \
     ^
   arch/m68k/emu/nfcon.c:166:1: note: in expansion of macro 'module_init'
    module_init(nfcon_init);
    ^
>> include/linux/module.h:131:2: warning: 'alias' attribute ignored [-Wattributes]
     { return initfn; }     \
     ^
   arch/m68k/emu/nfcon.c:166:1: note: in expansion of macro 'module_init'
    module_init(nfcon_init);
    ^
   arch/m68k/emu/nfcon.c:166:24: error: expected declaration specifiers before ';' token
    module_init(nfcon_init);
                           ^
   In file included from arch/m68k/emu/nfcon.c:9:0:
   include/linux/module.h:137:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfcon.c:167:1: note: in expansion of macro 'module_exit'
    module_exit(nfcon_exit);
    ^
   include/linux/module.h:137:2: warning: 'alias' attribute ignored [-Wattributes]
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfcon.c:167:1: note: in expansion of macro 'module_exit'
    module_exit(nfcon_exit);
    ^
   arch/m68k/emu/nfcon.c:167:24: error: expected declaration specifiers before ';' token
    module_exit(nfcon_exit);
                           ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfcon.c:9:
   include/linux/compiler-gcc.h:183:45: error: storage class specified for parameter '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfcon.c:169:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   arch/m68k/emu/nfcon.c:169:1: error: parameter '__UNIQUE_ID_license16' is initialized
   arch/m68k/emu/nfcon.c:169:1: warning: '__used__' attribute ignored [-Wattributes]
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfcon.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfcon.c:169:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^

include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
..

vim +131 include/linux/module.h

0fd972a7 Paul Gortmaker 2015-05-01  125  #define console_initcall(fn)		module_init(fn)
0fd972a7 Paul Gortmaker 2015-05-01  126  #define security_initcall(fn)		module_init(fn)
0fd972a7 Paul Gortmaker 2015-05-01  127  
0fd972a7 Paul Gortmaker 2015-05-01  128  /* Each module must use one module_init(). */
0fd972a7 Paul Gortmaker 2015-05-01  129  #define module_init(initfn)					\
0fd972a7 Paul Gortmaker 2015-05-01  130  	static inline initcall_t __inittest(void)		\
0fd972a7 Paul Gortmaker 2015-05-01 @131  	{ return initfn; }					\
0fd972a7 Paul Gortmaker 2015-05-01  132  	int init_module(void) __attribute__((alias(#initfn)));
0fd972a7 Paul Gortmaker 2015-05-01  133  
0fd972a7 Paul Gortmaker 2015-05-01  134  /* This is only required if you want to be unloadable. */

:::::: The code at line 131 was first introduced by commit
:::::: 0fd972a7d91d6e15393c449492a04d94c0b89351 module: relocate module_init from init.h to module.h

:::::: TO: Paul Gortmaker <[email protected]> :::::: CC: Paul Gortmaker <[email protected]>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

#11 lore raw

Geert,

I'm assuming this build failure is clear? It is breaking because it depends on the first patch. I don't know if there is protocol for sending dependent patches into the kernel?

Quoted 436 lines · kbuild test robot

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0

reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k

All error/warnings (new ones prefixed by >>):

   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_major_numtype34'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
      __MODULE_INFO(parmtype, name##type, #name ":" _type)
      ^
   include/linux/moduleparam.h:148:2: note: in expansion of macro '__MODULE_PARM_TYPE'
     __MODULE_PARM_TYPE(name, #type)
     ^
   include/linux/moduleparam.h:126:2: note: in expansion of macro 'module_param_named'
     module_param_named(name, name, type, perm)
     ^
   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_major_numtype34'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
      __MODULE_INFO(parmtype, name##type, #name ":" _type)
      ^
   include/linux/moduleparam.h:148:2: note: in expansion of macro '__MODULE_PARM_TYPE'
     __MODULE_PARM_TYPE(name, #type)
     ^
   include/linux/moduleparam.h:126:2: note: in expansion of macro 'module_param_named'
     module_param_named(name, name, type, perm)
     ^
   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   arch/m68k/emu/nfblock.c:53:1: warning: empty declaration
    struct nfhd_device {
    ^
   arch/m68k/emu/nfblock.c:63:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:84:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:94:45: error: storage class specified for parameter 'nfhd_ops'
    static const struct block_device_operations nfhd_ops = {
                                                ^
   arch/m68k/emu/nfblock.c:94:21: error: parameter 'nfhd_ops' is initialized
    static const struct block_device_operations nfhd_ops = {
                        ^
   arch/m68k/emu/nfblock.c:96:12: error: 'nfhd_getgeo' undeclared (first use in this function)
     .getgeo = nfhd_getgeo,
               ^
   arch/m68k/emu/nfblock.c:96:12: note: each undeclared identifier is reported only once for each function it appears in
   arch/m68k/emu/nfblock.c:100:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:156:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:180:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   In file included from arch/m68k/emu/nfblock.c:9:0:
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

     { return initfn; }     \
     ^
   arch/m68k/emu/nfblock.c:193:1: note: in expansion of macro 'module_init'
    module_init(nfhd_init);
    ^
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: warning: 'alias' attribute ignored [-Wattributes]

     { return initfn; }     \
     ^
   arch/m68k/emu/nfblock.c:193:1: note: in expansion of macro 'module_init'
    module_init(nfhd_init);
    ^
   arch/m68k/emu/nfblock.c:193:23: error: expected declaration specifiers before ';' token
    module_init(nfhd_init);
                          ^
   In file included from arch/m68k/emu/nfblock.c:9:0:
   include/linux/module.h:137:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfblock.c:194:1: note: in expansion of macro 'module_exit'
    module_exit(nfhd_exit);
    ^
   include/linux/module.h:137:2: warning: 'alias' attribute ignored [-Wattributes]
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfblock.c:194:1: note: in expansion of macro 'module_exit'
    module_exit(nfhd_exit);
    ^
   arch/m68k/emu/nfblock.c:194:23: error: expected declaration specifiers before ';' token
    module_exit(nfhd_exit);
                          ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: storage class specified for parameter '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfblock.c:196:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   arch/m68k/emu/nfblock.c:196:1: error: parameter '__UNIQUE_ID_license37' is initialized
   arch/m68k/emu/nfblock.c:196:1: warning: '__used__' attribute ignored [-Wattributes]
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfblock.c:196:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
--
   In file included from arch/m68k/emu/nfcon.c:20:0:
   arch/m68k/include/asm/natfeat.h: In function 'nfprint':
   arch/m68k/include/asm/natfeat.h:21:2: error: expected declaration specifiers before '__print'
     __print(1, 2);
     ^
   arch/m68k/emu/nfcon.c:22:12: error: storage class specified for parameter 'stderr_id'
    static int stderr_id;
               ^
   arch/m68k/emu/nfcon.c:23:24: error: storage class specified for parameter 'nfcon_tty_port'
    static struct tty_port nfcon_tty_port;
                           ^
   arch/m68k/emu/nfcon.c:24:27: error: storage class specified for parameter 'nfcon_tty_driver'
    static struct tty_driver *nfcon_tty_driver;
                              ^
   arch/m68k/emu/nfcon.c:27:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:45:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:50:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:55:23: error: storage class specified for parameter 'nf_console'
    static struct console nf_console = {
                          ^
   arch/m68k/emu/nfcon.c:55:15: error: parameter 'nf_console' is initialized
    static struct console nf_console = {
                  ^
   arch/m68k/emu/nfcon.c:57:11: error: 'nfcon_write' undeclared (first use in this function)
     .write = nfcon_write,
              ^
   arch/m68k/emu/nfcon.c:57:11: note: each undeclared identifier is reported only once for each function it appears in
   arch/m68k/emu/nfcon.c:58:12: error: 'nfcon_device' undeclared (first use in this function)
     .device = nfcon_device,
               ^
   arch/m68k/emu/nfcon.c:65:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:70:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:75:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:81:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:89:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:93:36: error: storage class specified for parameter 'nfcon_tty_ops'
    static const struct tty_operations nfcon_tty_ops = {
                                       ^
   arch/m68k/emu/nfcon.c:93:21: error: parameter 'nfcon_tty_ops' is initialized
    static const struct tty_operations nfcon_tty_ops = {
                        ^
   arch/m68k/emu/nfcon.c:94:11: error: 'nfcon_tty_open' undeclared (first use in this function)
     .open  = nfcon_tty_open,
              ^
   arch/m68k/emu/nfcon.c:95:12: error: 'nfcon_tty_close' undeclared (first use in this function)
     .close  = nfcon_tty_close,
               ^
   arch/m68k/emu/nfcon.c:96:12: error: 'nfcon_tty_write' undeclared (first use in this function)
     .write  = nfcon_tty_write,
               ^
   arch/m68k/emu/nfcon.c:97:14: error: 'nfcon_tty_put_char' undeclared (first use in this function)
     .put_char = nfcon_tty_put_char,
                 ^
   arch/m68k/emu/nfcon.c:98:16: error: 'nfcon_tty_write_room' undeclared (first use in this function)
     .write_room = nfcon_tty_write_room,
                   ^
   arch/m68k/emu/nfcon.c:122:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:159:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   In file included from arch/m68k/emu/nfcon.c:9:0:
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

     { return initfn; }     \
     ^
   arch/m68k/emu/nfcon.c:166:1: note: in expansion of macro 'module_init'
    module_init(nfcon_init);
    ^
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: warning: 'alias' attribute ignored [-Wattributes]

     { return initfn; }     \
     ^
   arch/m68k/emu/nfcon.c:166:1: note: in expansion of macro 'module_init'
    module_init(nfcon_init);
    ^
   arch/m68k/emu/nfcon.c:166:24: error: expected declaration specifiers before ';' token
    module_init(nfcon_init);
                           ^
   In file included from arch/m68k/emu/nfcon.c:9:0:
   include/linux/module.h:137:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfcon.c:167:1: note: in expansion of macro 'module_exit'
    module_exit(nfcon_exit);
    ^
   include/linux/module.h:137:2: warning: 'alias' attribute ignored [-Wattributes]
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfcon.c:167:1: note: in expansion of macro 'module_exit'
    module_exit(nfcon_exit);
    ^
   arch/m68k/emu/nfcon.c:167:24: error: expected declaration specifiers before ';' token
    module_exit(nfcon_exit);
                           ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfcon.c:9:
   include/linux/compiler-gcc.h:183:45: error: storage class specified for parameter '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfcon.c:169:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   arch/m68k/emu/nfcon.c:169:1: error: parameter '__UNIQUE_ID_license16' is initialized
   arch/m68k/emu/nfcon.c:169:1: warning: '__used__' attribute ignored [-Wattributes]
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfcon.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfcon.c:169:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'

..

vim +131 include/linux/module.h

0fd972a7 Paul Gortmaker 2015-05-01  125  #define console_initcall(fn)           module_init(fn)
0fd972a7 Paul Gortmaker 2015-05-01  126  #define security_initcall(fn)          module_init(fn)
0fd972a7 Paul Gortmaker 2015-05-01  127
0fd972a7 Paul Gortmaker 2015-05-01  128  /* Each module must use one module_init(). */
0fd972a7 Paul Gortmaker 2015-05-01  129  #define module_init(initfn)                                    \
0fd972a7 Paul Gortmaker 2015-05-01  130         static inline initcall_t __inittest(void)               \
0fd972a7 Paul Gortmaker 2015-05-01 @131         { return initfn; }                                      \
0fd972a7 Paul Gortmaker 2015-05-01  132         int init_module(void) __attribute__((alias(#initfn)));
0fd972a7 Paul Gortmaker 2015-05-01  133
0fd972a7 Paul Gortmaker 2015-05-01  134  /* This is only required if you want to be unloadable. */

:::::: The code at line 131 was first introduced by commit
:::::: 0fd972a7d91d6e15393c449492a04d94c0b89351 module: relocate module_init from init.h to module.h

:::::: TO: Paul Gortmaker <[email protected]> :::::: CC: Paul Gortmaker <[email protected]>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

#12 lore raw
In reply to kbuild test robot

Geert,

I'm assuming this build failure is clear? It is breaking because it depends on the first patch. I don't know if there is protocol for sending dependent patches into the kernel?

Quoted 436 lines · kbuild test robot

Hi Gideon,

[auto build test ERROR on m68k/for-next]
[also build test ERROR on v4.10-rc4 next-20170119]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Gideon-Israel-Dsouza/compiler-gcc-h-Added-new-macro-for-gcc-attribute/20170120-032332
base:   https://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0

reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m68k

All error/warnings (new ones prefixed by >>):

   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_major_numtype34'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
      __MODULE_INFO(parmtype, name##type, #name ":" _type)
      ^
   include/linux/moduleparam.h:148:2: note: in expansion of macro '__MODULE_PARM_TYPE'
     __MODULE_PARM_TYPE(name, #type)
     ^
   include/linux/moduleparam.h:126:2: note: in expansion of macro 'module_param_named'
     module_param_named(name, name, type, perm)
     ^
   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_major_numtype34'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
      __MODULE_INFO(parmtype, name##type, #name ":" _type)
      ^
   include/linux/moduleparam.h:148:2: note: in expansion of macro '__MODULE_PARM_TYPE'
     __MODULE_PARM_TYPE(name, #type)
     ^
   include/linux/moduleparam.h:126:2: note: in expansion of macro 'module_param_named'
     module_param_named(name, name, type, perm)
     ^
   arch/m68k/emu/nfblock.c:51:1: note: in expansion of macro 'module_param'
    module_param(major_num, int, 0);
    ^
   arch/m68k/emu/nfblock.c:53:1: warning: empty declaration
    struct nfhd_device {
    ^
   arch/m68k/emu/nfblock.c:63:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:84:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:94:45: error: storage class specified for parameter 'nfhd_ops'
    static const struct block_device_operations nfhd_ops = {
                                                ^
   arch/m68k/emu/nfblock.c:94:21: error: parameter 'nfhd_ops' is initialized
    static const struct block_device_operations nfhd_ops = {
                        ^
   arch/m68k/emu/nfblock.c:96:12: error: 'nfhd_getgeo' undeclared (first use in this function)
     .getgeo = nfhd_getgeo,
               ^
   arch/m68k/emu/nfblock.c:96:12: note: each undeclared identifier is reported only once for each function it appears in
   arch/m68k/emu/nfblock.c:100:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:156:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfblock.c:180:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   In file included from arch/m68k/emu/nfblock.c:9:0:
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

     { return initfn; }     \
     ^
   arch/m68k/emu/nfblock.c:193:1: note: in expansion of macro 'module_init'
    module_init(nfhd_init);
    ^
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: warning: 'alias' attribute ignored [-Wattributes]

     { return initfn; }     \
     ^
   arch/m68k/emu/nfblock.c:193:1: note: in expansion of macro 'module_init'
    module_init(nfhd_init);
    ^
   arch/m68k/emu/nfblock.c:193:23: error: expected declaration specifiers before ';' token
    module_init(nfhd_init);
                          ^
   In file included from arch/m68k/emu/nfblock.c:9:0:
   include/linux/module.h:137:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfblock.c:194:1: note: in expansion of macro 'module_exit'
    module_exit(nfhd_exit);
    ^
   include/linux/module.h:137:2: warning: 'alias' attribute ignored [-Wattributes]
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfblock.c:194:1: note: in expansion of macro 'module_exit'
    module_exit(nfhd_exit);
    ^
   arch/m68k/emu/nfblock.c:194:23: error: expected declaration specifiers before ';' token
    module_exit(nfhd_exit);
                          ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: storage class specified for parameter '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfblock.c:196:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   arch/m68k/emu/nfblock.c:196:1: error: parameter '__UNIQUE_ID_license37' is initialized
   arch/m68k/emu/nfblock.c:196:1: warning: '__used__' attribute ignored [-Wattributes]
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfblock.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfblock.c:196:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_license37'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
--
   In file included from arch/m68k/emu/nfcon.c:20:0:
   arch/m68k/include/asm/natfeat.h: In function 'nfprint':
   arch/m68k/include/asm/natfeat.h:21:2: error: expected declaration specifiers before '__print'
     __print(1, 2);
     ^
   arch/m68k/emu/nfcon.c:22:12: error: storage class specified for parameter 'stderr_id'
    static int stderr_id;
               ^
   arch/m68k/emu/nfcon.c:23:24: error: storage class specified for parameter 'nfcon_tty_port'
    static struct tty_port nfcon_tty_port;
                           ^
   arch/m68k/emu/nfcon.c:24:27: error: storage class specified for parameter 'nfcon_tty_driver'
    static struct tty_driver *nfcon_tty_driver;
                              ^
   arch/m68k/emu/nfcon.c:27:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:45:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:50:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:55:23: error: storage class specified for parameter 'nf_console'
    static struct console nf_console = {
                          ^
   arch/m68k/emu/nfcon.c:55:15: error: parameter 'nf_console' is initialized
    static struct console nf_console = {
                  ^
   arch/m68k/emu/nfcon.c:57:11: error: 'nfcon_write' undeclared (first use in this function)
     .write = nfcon_write,
              ^
   arch/m68k/emu/nfcon.c:57:11: note: each undeclared identifier is reported only once for each function it appears in
   arch/m68k/emu/nfcon.c:58:12: error: 'nfcon_device' undeclared (first use in this function)
     .device = nfcon_device,
               ^
   arch/m68k/emu/nfcon.c:65:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:70:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:75:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:81:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:89:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:93:36: error: storage class specified for parameter 'nfcon_tty_ops'
    static const struct tty_operations nfcon_tty_ops = {
                                       ^
   arch/m68k/emu/nfcon.c:93:21: error: parameter 'nfcon_tty_ops' is initialized
    static const struct tty_operations nfcon_tty_ops = {
                        ^
   arch/m68k/emu/nfcon.c:94:11: error: 'nfcon_tty_open' undeclared (first use in this function)
     .open  = nfcon_tty_open,
              ^
   arch/m68k/emu/nfcon.c:95:12: error: 'nfcon_tty_close' undeclared (first use in this function)
     .close  = nfcon_tty_close,
               ^
   arch/m68k/emu/nfcon.c:96:12: error: 'nfcon_tty_write' undeclared (first use in this function)
     .write  = nfcon_tty_write,
               ^
   arch/m68k/emu/nfcon.c:97:14: error: 'nfcon_tty_put_char' undeclared (first use in this function)
     .put_char = nfcon_tty_put_char,
                 ^
   arch/m68k/emu/nfcon.c:98:16: error: 'nfcon_tty_write_room' undeclared (first use in this function)
     .write_room = nfcon_tty_write_room,
                   ^
   arch/m68k/emu/nfcon.c:122:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   arch/m68k/emu/nfcon.c:159:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    {
    ^
   In file included from arch/m68k/emu/nfcon.c:9:0:
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

     { return initfn; }     \
     ^
   arch/m68k/emu/nfcon.c:166:1: note: in expansion of macro 'module_init'
    module_init(nfcon_init);
    ^
Quoted 1 line
Quoted 1 line

include/linux/module.h:131:2: warning: 'alias' attribute ignored [-Wattributes]

     { return initfn; }     \
     ^
   arch/m68k/emu/nfcon.c:166:1: note: in expansion of macro 'module_init'
    module_init(nfcon_init);
    ^
   arch/m68k/emu/nfcon.c:166:24: error: expected declaration specifiers before ';' token
    module_init(nfcon_init);
                           ^
   In file included from arch/m68k/emu/nfcon.c:9:0:
   include/linux/module.h:137:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfcon.c:167:1: note: in expansion of macro 'module_exit'
    module_exit(nfcon_exit);
    ^
   include/linux/module.h:137:2: warning: 'alias' attribute ignored [-Wattributes]
     { return exitfn; }     \
     ^
   arch/m68k/emu/nfcon.c:167:1: note: in expansion of macro 'module_exit'
    module_exit(nfcon_exit);
    ^
   arch/m68k/emu/nfcon.c:167:24: error: expected declaration specifiers before ';' token
    module_exit(nfcon_exit);
                           ^
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfcon.c:9:
   include/linux/compiler-gcc.h:183:45: error: storage class specified for parameter '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfcon.c:169:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   arch/m68k/emu/nfcon.c:169:1: error: parameter '__UNIQUE_ID_license16' is initialized
   arch/m68k/emu/nfcon.c:169:1: warning: '__used__' attribute ignored [-Wattributes]
   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/m68k/emu/nfcon.c:9:
   include/linux/compiler-gcc.h:183:45: error: section attribute not allowed for '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'
    #define ___PASTE(a,b) a##b
                          ^
   include/linux/compiler-gcc.h:183:29: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                ^
   include/linux/compiler.h:53:22: note: in expansion of macro '___PASTE'
    #define __PASTE(a,b) ___PASTE(a,b)
                         ^
   include/linux/compiler-gcc.h:183:37: note: in expansion of macro '__PASTE'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                        ^
   include/linux/moduleparam.h:21:19: note: in expansion of macro '__UNIQUE_ID'
    static const char __UNIQUE_ID(name)[]       \
                      ^
   include/linux/module.h:161:32: note: in expansion of macro '__MODULE_INFO'
    #define MODULE_INFO(tag, info) __MODULE_INFO(tag, tag, info)
                                   ^
   include/linux/module.h:199:34: note: in expansion of macro 'MODULE_INFO'
    #define MODULE_LICENSE(_license) MODULE_INFO(license, _license)
                                     ^
   arch/m68k/emu/nfcon.c:169:1: note: in expansion of macro 'MODULE_LICENSE'
    MODULE_LICENSE("GPL");
    ^
   include/linux/compiler-gcc.h:183:45: error: alignment may not be specified for '__UNIQUE_ID_license16'
    #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
                                                ^
   include/linux/compiler.h:52:23: note: in definition of macro '___PASTE'

..

vim +131 include/linux/module.h

0fd972a7 Paul Gortmaker 2015-05-01  125  #define console_initcall(fn)           module_init(fn)
0fd972a7 Paul Gortmaker 2015-05-01  126  #define security_initcall(fn)          module_init(fn)
0fd972a7 Paul Gortmaker 2015-05-01  127
0fd972a7 Paul Gortmaker 2015-05-01  128  /* Each module must use one module_init(). */
0fd972a7 Paul Gortmaker 2015-05-01  129  #define module_init(initfn)                                    \
0fd972a7 Paul Gortmaker 2015-05-01  130         static inline initcall_t __inittest(void)               \
0fd972a7 Paul Gortmaker 2015-05-01 @131         { return initfn; }                                      \
0fd972a7 Paul Gortmaker 2015-05-01  132         int init_module(void) __attribute__((alias(#initfn)));
0fd972a7 Paul Gortmaker 2015-05-01  133
0fd972a7 Paul Gortmaker 2015-05-01  134  /* This is only required if you want to be unloadable. */

:::::: The code at line 131 was first introduced by commit
:::::: 0fd972a7d91d6e15393c449492a04d94c0b89351 module: relocate module_init from init.h to module.h

:::::: TO: Paul Gortmaker <[email protected]> :::::: CC: Paul Gortmaker <[email protected]>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation