Re: [PATCH] Fix randconfig build error and code bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on b11831c841cb8046a9e01300f5d91985c293e045]

url:    https://github.com/0day-ci/linux/commits/yaoaili126-163-com/Fix-randconfig-build-error-and-code-bug/20201105-222108
base:    b11831c841cb8046a9e01300f5d91985c293e045
config: x86_64-randconfig-a015-20201110 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 4d81c8adb6ed9840257f6cb6b93f60856d422a15)
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 x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://github.com/0day-ci/linux/commit/d1203fe379a2190e7ff5d40a30465bea2c98a47f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review yaoaili126-163-com/Fix-randconfig-build-error-and-code-bug/20201105-222108
        git checkout d1203fe379a2190e7ff5d40a30465bea2c98a47f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/cpu/mce/apei.c:27:
>> arch/x86/kernel/cpu/mce/internal.h:95:19: error: static declaration of 'ghes_in_mce_cper_entry_check' follows non-static declaration
   static inline int ghes_in_mce_cper_entry_check(void)
                     ^
   include/acpi/ghes.h:130:5: note: previous declaration is here
   int ghes_in_mce_cper_entry_check(void);
       ^
   1 error generated.

vim +/ghes_in_mce_cper_entry_check +95 arch/x86/kernel/cpu/mce/internal.h

d1203fe379a2190 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-05   91  
d1203fe379a2190 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-05   92  #ifdef CONFIG_ACPI_APEI_GHES
d1203fe379a2190 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-05   93  extern int ghes_in_mce_cper_entry_check(void);
d1203fe379a2190 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-05   94  #else
b11831c841cb804 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-03  @95  static inline int ghes_in_mce_cper_entry_check(void)
b11831c841cb804 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-03   96  {
b11831c841cb804 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-03   97  	return 0;
b11831c841cb804 arch/x86/kernel/cpu/mce/internal.h        Aili Yao        2020-11-03   98  }
482908b49ebfa45 arch/x86/kernel/cpu/mcheck/mce-internal.h Huang Ying      2010-05-18   99  #endif
a79da38494ec23f arch/x86/kernel/cpu/mcheck/mce-internal.h Borislav Petkov 2015-08-12  100  

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux