mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kees Cook <keescook@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Miguel Ojeda <ojeda@kernel.org>
Subject: [kees:for-next/kspp 13/28] include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
Date: Thu, 16 Sep 2021 02:51:52 +0800	[thread overview]
Message-ID: <202109160237.Kpz9rGwa-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/kspp
head:   420d688ff2971effafecef9d57af4854dd4d8618
commit: 0fc9374deb676160f02b41b456001cdc86a153e9 [13/28] compiler_types.h: Remove __compiletime_object_size()
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id=0fc9374deb676160f02b41b456001cdc86a153e9
        git remote add kees https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
        git fetch --no-tags kees for-next/kspp
        git checkout 0fc9374deb676160f02b41b456001cdc86a153e9
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=um SUBARCH=x86_64 prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
--
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from arch/um/kernel/asm-offsets.c:1:
   arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
       9 | void foo(void)
         |      ^~~
--
   arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
      18 | void foo(void)
         |      ^~~
   arch/x86/um/Makefile:44: FORCE prerequisite is missing
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from arch/um/kernel/asm-offsets.c:1:
   arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
       9 | void foo(void)
         |      ^~~
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
--
   arch/x86/um/user-offsets.c:18:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
      18 | void foo(void)
         |      ^~~
   arch/x86/um/Makefile:44: FORCE prerequisite is missing
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 
   In file included from arch/um/kernel/asm-offsets.c:1:
   arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for 'foo' [-Wmissing-prototypes]
       9 | void foo(void)
         |      ^~~
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:44: warning: "__compiletime_warning" redefined
      44 | #define __compiletime_warning(message) __attribute__((__warning__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:297: note: this is the location of the previous definition
     297 | # define __compiletime_warning(msg)     __attribute__((__warning__(msg)))
         | 
   In file included from include/linux/compiler_types.h:85,
                    from <command-line>:
>> include/linux/compiler-gcc.h:45: warning: "__compiletime_error" redefined
      45 | #define __compiletime_error(message) __attribute__((__error__(message)))
         | 
   In file included from include/linux/compiler_types.h:65,
                    from <command-line>:
   include/linux/compiler_attributes.h:125: note: this is the location of the previous definition
     125 | # define __compiletime_error(msg)       __attribute__((__error__(msg)))
         | 


vim +/__compiletime_warning +44 include/linux/compiler-gcc.h

    43	
  > 44	#define __compiletime_warning(message) __attribute__((__warning__(message)))
  > 45	#define __compiletime_error(message) __attribute__((__error__(message)))
    46	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 9645 bytes --]

                 reply	other threads:[~2021-09-15 18: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=202109160237.Kpz9rGwa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ojeda@kernel.org \
    /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

all inboxes | Powered by JetHome®