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

From: kbuild test robot
Date: Thu Jan 19 2017 - 15:35:20 EST


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

Attachment: .config.gz
Description: application/gzip