lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Thu, 16 Sep 2021 02:51:52 +0800
From:   kernel test robot <lkp@...el.com>
To:     Kees Cook <keescook@...omium.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Miguel Ojeda <ojeda@...nel.org>
Subject: [kees:for-next/kspp 13/28] include/linux/compiler-gcc.h:44: warning:
 "__compiletime_warning" redefined

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (9645 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ