Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1562720 > unrolled thread

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

Started byGideon Israel Dsouza <gidisrael@gmail.com>
First post2017-01-19 14:40 +0100
Last post2017-01-20 12:30 +0100
Articles 6 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h Gideon Israel Dsouza <gidisrael@gmail.com> - 2017-01-19 14:40 +0100
    Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h "Gideon D'souza" <gidisrael@gmail.com> - 2017-01-20 06:30 +0100
    Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h Geert Uytterhoeven <geert@linux-m68k.org> - 2017-01-20 08:50 +0100
      Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h "Gideon D'souza" <gidisrael@gmail.com> - 2017-01-20 11:30 +0100
        Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h Geert Uytterhoeven <geert@linux-m68k.org> - 2017-01-20 11:40 +0100
          Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h "Gideon D'souza" <gidisrael@gmail.com> - 2017-01-20 12:30 +0100

#1562720 — [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h

FromGideon Israel Dsouza <gidisrael@gmail.com>
Date2017-01-19 14:40 +0100
Subject[PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h
Message-ID<t1l6y-27b-27@gated-at.bofh.it>
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

Signed-off-by: Gideon Israel Dsouza <gidisrael@gmail.com>
---
 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(-)

diff --git a/arch/m68k/68000/bootlogo-vz.h b/arch/m68k/68000/bootlogo-vz.h
index b38e2b2..6ff09be 100644
--- a/arch/m68k/68000/bootlogo-vz.h
+++ b/arch/m68k/68000/bootlogo-vz.h
@@ -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,
diff --git a/arch/m68k/68000/bootlogo.h b/arch/m68k/68000/bootlogo.h
index b896c93..c466db3 100644
--- a/arch/m68k/68000/bootlogo.h
+++ b/arch/m68k/68000/bootlogo.h
@@ -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,
diff --git a/arch/m68k/include/asm/MC68328.h b/arch/m68k/include/asm/MC68328.h
index 1a8080c..b61230e 100644
--- a/arch/m68k/include/asm/MC68328.h
+++ b/arch/m68k/include/asm/MC68328.h
@@ -8,6 +8,7 @@
  * Copyright (C) 1998  Kenneth Albanowski <kjahds@kjahds.com>,
  *
  */
+#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;
 
 
 /**********
diff --git a/arch/m68k/include/asm/MC68EZ328.h b/arch/m68k/include/asm/MC68EZ328.h
index fedac87..703331e 100644
--- a/arch/m68k/include/asm/MC68EZ328.h
+++ b/arch/m68k/include/asm/MC68EZ328.h
@@ -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;
 
 
 /**********
diff --git a/arch/m68k/include/asm/MC68VZ328.h b/arch/m68k/include/asm/MC68VZ328.h
index 34a51b2..fbaed7d 100644
--- a/arch/m68k/include/asm/MC68VZ328.h
+++ b/arch/m68k/include/asm/MC68VZ328.h
@@ -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;
 
 
 
diff --git a/arch/m68k/include/asm/natfeat.h b/arch/m68k/include/asm/natfeat.h
index a3521b8..1feceb3 100644
--- a/arch/m68k/include/asm/natfeat.h
+++ b/arch/m68k/include/asm/natfeat.h
@@ -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 */
diff --git a/arch/m68k/lib/ashldi3.c b/arch/m68k/lib/ashldi3.c
index 8dffd36..ac08f81 100644
--- a/arch/m68k/lib/ashldi3.c
+++ b/arch/m68k/lib/ashldi3.c
@@ -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;};
 
diff --git a/arch/m68k/lib/ashrdi3.c b/arch/m68k/lib/ashrdi3.c
index e6565a3..5837b1d 100644
--- a/arch/m68k/lib/ashrdi3.c
+++ b/arch/m68k/lib/ashrdi3.c
@@ -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;};
 
diff --git a/arch/m68k/lib/lshrdi3.c b/arch/m68k/lib/lshrdi3.c
index 0397797..7f40566 100644
--- a/arch/m68k/lib/lshrdi3.c
+++ b/arch/m68k/lib/lshrdi3.c
@@ -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;};
 
diff --git a/arch/m68k/lib/muldi3.c b/arch/m68k/lib/muldi3.c
index 6459af5..3fb05c6 100644
--- a/arch/m68k/lib/muldi3.c
+++ b/arch/m68k/lib/muldi3.c
@@ -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;};
 
-- 
2.7.4

[toc] | [next] | [standalone]


#1563298

From"Gideon D'souza" <gidisrael@gmail.com>
Date2017-01-20 06:30 +0100
Message-ID<t1zVU-36K-5@gated-at.bofh.it>
In reply to#1562720
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?



On Fri, Jan 20, 2017 at 2:18 AM, kbuild test robot <lkp@intel.com> wrote:
> 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 <paul.gortmaker@windriver.com>
> :::::: CC: Paul Gortmaker <paul.gortmaker@windriver.com>
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[toc] | [prev] | [next] | [standalone]


#1563345

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2017-01-20 08:50 +0100
Message-ID<t1C7n-4pX-7@gated-at.bofh.it>
In reply to#1562720
On Thu, Jan 19, 2017 at 9:31 PM, kbuild test robot <lkp@intel.com> wrote:
> 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 -- geert@linux-m68k.org

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

[toc] | [prev] | [next] | [standalone]


#1563457

From"Gideon D'souza" <gidisrael@gmail.com>
Date2017-01-20 11:30 +0100
Message-ID<t1ECe-62Y-17@gated-at.bofh.it>
In reply to#1563345
> 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?


On Fri, Jan 20, 2017 at 1:14 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Thu, Jan 19, 2017 at 9:31 PM, kbuild test robot <lkp@intel.com> wrote:
>> 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 -- geert@linux-m68k.org
>
> 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

[toc] | [prev] | [next] | [standalone]


#1563465

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2017-01-20 11:40 +0100
Message-ID<t1ELU-66q-21@gated-at.bofh.it>
In reply to#1563457
Hi Gideon,

On Fri, Jan 20, 2017 at 11:21 AM, Gideon D'souza <gidisrael@gmail.com> wrote:
>> 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 -- geert@linux-m68k.org

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

[toc] | [prev] | [next] | [standalone]


#1563495

From"Gideon D'souza" <gidisrael@gmail.com>
Date2017-01-20 12:30 +0100
Message-ID<t1Fyi-6Cb-15@gated-at.bofh.it>
In reply to#1563465
Ah I didn't know they would be tracked a series. Should I resend these?

On Fri, Jan 20, 2017 at 4:04 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> Hi Gideon,
>
> On Fri, Jan 20, 2017 at 11:21 AM, Gideon D'souza <gidisrael@gmail.com> wrote:
>>> 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 -- geert@linux-m68k.org
>
> 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web