linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-stable-rc:linux-3.14.y 4656/4884] arch/um/include/shared/init.h:129:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
@ 2016-08-14 22:17 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-08-14 22:17 UTC (permalink / raw)
  To: Joe Perches
  Cc: kbuild-all, Greg Kroah-Hartman, Andrew Morton,
	Linux Memory Management List, Sasha Levin

[-- Attachment #1: Type: text/plain, Size: 4441 bytes --]

Hi Joe,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-3.14.y
head:   43ef7e3ec8016449b3b0afdeaee89053687d1680
commit: 3711edaf01a01818f2aed9f21efe29b9818134b9 [4656/4884] compiler-gcc: integrate the various compiler-gcc[345].h files
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        git checkout 3711edaf01a01818f2aed9f21efe29b9818134b9
        # save the attached .config to linux build tree
        make ARCH=um SUBARCH=x86_64

All errors (new ones prefixed by >>):

   In file included from arch/um/drivers/chan_user.h:9:0,
                    from arch/um/drivers/xterm.c:13:
>> arch/um/include/shared/init.h:129:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
    #define __uml_setup_help __used __section(.uml.help.init)
                             ^
   arch/um/include/shared/init.h:122:37: note: in expansion of macro '__uml_setup_help'
     static const char *__uml_help_##fn __uml_setup_help = __uml_help_str_##fn
                                        ^~~~~~~~~~~~~~~~
   arch/um/include/shared/init.h:111:2: note: in expansion of macro '__uml_help'
     __uml_help(fn, help);      \
     ^~~~~~~~~~
   arch/um/drivers/xterm.c:71:1: note: in expansion of macro '__uml_setup'
    __uml_setup("xterm=", xterm_setup,
    ^~~~~~~~~~~
   arch/um/include/shared/init.h:128:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
    #define __uml_init_setup __used __section(.uml.setup.init)
                             ^
   arch/um/include/shared/init.h:113:43: note: in expansion of macro '__uml_init_setup'
     static struct uml_param __uml_setup_##fn __uml_init_setup = { __uml_setup_str_##fn, fn }
                                              ^~~~~~~~~~~~~~~~
   arch/um/drivers/xterm.c:71:1: note: in expansion of macro '__uml_setup'
    __uml_setup("xterm=", xterm_setup,
    ^~~~~~~~~~~
   arch/um/include/shared/init.h:112:14: warning: '__uml_setup_str_xterm_setup' defined but not used [-Wunused-variable]
     static char __uml_setup_str_##fn[] __initdata = str;  \
                 ^
   arch/um/drivers/xterm.c:71:1: note: in expansion of macro '__uml_setup'
    __uml_setup("xterm=", xterm_setup,
    ^~~~~~~~~~~
   arch/um/include/shared/init.h:121:14: warning: '__uml_help_str_xterm_setup' defined but not used [-Wunused-variable]
     static char __uml_help_str_##fn[] __initdata = help;  \
                 ^
   arch/um/include/shared/init.h:111:2: note: in expansion of macro '__uml_help'
     __uml_help(fn, help);      \
     ^~~~~~~~~~
   arch/um/drivers/xterm.c:71:1: note: in expansion of macro '__uml_setup'
    __uml_setup("xterm=", xterm_setup,
    ^~~~~~~~~~~
   arch/um/drivers/xterm.c:47:19: warning: 'xterm_setup' defined but not used [-Wunused-function]
    static int __init xterm_setup(char *line, int *add)
                      ^~~~~~~~~~~

vim +129 arch/um/include/shared/init.h

^1da177e arch/um/include/init.h Linus Torvalds 2005-04-16  123  
^1da177e arch/um/include/init.h Linus Torvalds 2005-04-16  124  /*
^1da177e arch/um/include/init.h Linus Torvalds 2005-04-16  125   * Mark functions and data as being only used at initialization
^1da177e arch/um/include/init.h Linus Torvalds 2005-04-16  126   * or exit time.
^1da177e arch/um/include/init.h Linus Torvalds 2005-04-16  127   */
3ff6eecc arch/um/include/init.h Adrian Bunk    2008-01-24  128  #define __uml_init_setup	__used __section(.uml.setup.init)
3ff6eecc arch/um/include/init.h Adrian Bunk    2008-01-24 @129  #define __uml_setup_help	__used __section(.uml.help.init)
3ff6eecc arch/um/include/init.h Adrian Bunk    2008-01-24  130  #define __uml_init_call		__used __section(.uml.initcall.init)
3ff6eecc arch/um/include/init.h Adrian Bunk    2008-01-24  131  #define __uml_postsetup_call	__used __section(.uml.postsetup.init)
3ff6eecc arch/um/include/init.h Adrian Bunk    2008-01-24  132  #define __uml_exit_call		__used __section(.uml.exitcall.exit)

:::::: The code at line 129 was first introduced by commit
:::::: 3ff6eecca4e5c49a5d1dd8b58ea0e20102ce08f0 remove __attribute_used__

:::::: TO: Adrian Bunk <bunk@kernel.org>
:::::: CC: Sam Ravnborg <sam@ravnborg.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 6094 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-14 22:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-14 22:17 [linux-stable-rc:linux-3.14.y 4656/4884] arch/um/include/shared/init.h:129:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).