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]
Message-ID: <202210220730.EPlntVyN-lkp@intel.com>
Date:   Sat, 22 Oct 2022 07:33:31 +0800
From:   kernel test robot <lkp@...el.com>
To:     Mark Rutland <mark.rutland@....com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [mark:arm64/ftrace/per-callsite-ops 5/12]
 include/linux/compiler_attributes.h:84:5: warning: 'CONFIG_CC_IS_GCC' is not
 defined, evaluates to 0

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/ftrace/per-callsite-ops
head:   d0ae0c8983e2bf602a151b421652005bc5477727
commit: ca7f736e799f9a547cf1642c719e9842460ab586 [5/12] WIP: Compiler attributes: disable __cold with function alignment
config: arm64-randconfig-r012-20221019
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=ca7f736e799f9a547cf1642c719e9842460ab586
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/ftrace/per-callsite-ops
        git checkout ca7f736e799f9a547cf1642c719e9842460ab586
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 prepare

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   scripts/genksyms/parse.y: warning: 9 shift/reduce conflicts [-Wconflicts-sr]
   scripts/genksyms/parse.y: warning: 5 reduce/reduce conflicts [-Wconflicts-rr]
   scripts/genksyms/parse.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples
   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:79:
>> include/linux/compiler_attributes.h:84:5: warning: 'CONFIG_CC_IS_GCC' is not defined, evaluates to 0 [-Wundef]
   #if CONFIG_CC_IS_GCC && (CONFIG_FUNCTION_ALIGNMENT == 0)
       ^
   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:79:
>> include/linux/compiler_attributes.h:84:5: warning: 'CONFIG_CC_IS_GCC' is not defined, evaluates to 0 [-Wundef]
   #if CONFIG_CC_IS_GCC && (CONFIG_FUNCTION_ALIGNMENT == 0)
       ^
   1 warning generated.
   1 warning generated.
   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:79:
>> include/linux/compiler_attributes.h:84:5: warning: 'CONFIG_CC_IS_GCC' is not defined, evaluates to 0 [-Wundef]
   #if CONFIG_CC_IS_GCC && (CONFIG_FUNCTION_ALIGNMENT == 0)
       ^
   1 warning generated.
   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:79:
>> include/linux/compiler_attributes.h:84:5: warning: 'CONFIG_CC_IS_GCC' is not defined, evaluates to 0 [-Wundef]
   #if CONFIG_CC_IS_GCC && (CONFIG_FUNCTION_ALIGNMENT == 0)
       ^
   In file included from arch/arm64/kernel/asm-offsets.c:15:
   In file included from include/linux/kvm_host.h:32:
   include/linux/ftrace.h:125:9: error: call to undeclared function 'arch_ftrace_get_regs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           return arch_ftrace_get_regs(fregs);
                  ^
   include/linux/ftrace.h:125:9: note: did you mean 'ftrace_get_regs'?
   include/linux/ftrace.h:120:40: note: 'ftrace_get_regs' declared here
   static __always_inline struct pt_regs *ftrace_get_regs(struct ftrace_regs *fregs)
                                          ^
   include/linux/ftrace.h:125:9: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'struct pt_regs *' [-Wint-conversion]
           return arch_ftrace_get_regs(fregs);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 2 errors generated.
   make[2]: *** [scripts/Makefile.build:118: arch/arm64/kernel/asm-offsets.s] Error 1
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:1270: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:231: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/CONFIG_CC_IS_GCC +84 include/linux/compiler_attributes.h

    77	
    78	/*
    79	 *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-cold-function-attribute
    80	 *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Label-Attributes.html#index-cold-label-attribute
    81	 *
    82	 * With GCC, the cold attribute overrides function alignment
    83	 */
  > 84	#if CONFIG_CC_IS_GCC && (CONFIG_FUNCTION_ALIGNMENT == 0)
    85	#define __cold                          __attribute__((__cold__))
    86	#else
    87	#define __cold
    88	#endif
    89	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (173944 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ