linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <fengguang.wu@intel.com>
To: Joe Perches <joe@perches.com>
Cc: kbuild-all@01.org, Sasha Levin <sasha.levin@oracle.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [sashal-linux-stable:linux-4.1.y 722/1553] arch/um/include/shared/init.h:129:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
Date: Sun, 4 Sep 2016 10:52:33 +0800	[thread overview]
Message-ID: <201609041013.5eHlFNeL%fengguang.wu@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git linux-4.1.y
head:   3b60b86aec06fbae1142ccc4e55b39b529ae2a25
commit: f320793e52aee78f0fbb8bcaf10e6614d2e67bfc [722/1553] 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 f320793e52aee78f0fbb8bcaf10e6614d2e67bfc
        # 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: 6523 bytes --]

                 reply	other threads:[~2016-09-04  2:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201609041013.5eHlFNeL%fengguang.wu@intel.com \
    --to=fengguang.wu@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=joe@perches.com \
    --cc=kbuild-all@01.org \
    --cc=linux-mm@kvack.org \
    --cc=sasha.levin@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox