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: <202209162203.LQxeIrqT-lkp@intel.com>
Date:   Fri, 16 Sep 2022 22:22:52 +0800
From:   kernel test robot <lkp@...el.com>
To:     Palmer Dabbelt <palmer@...osinc.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        Ammar Faizi <ammarfaizi2@...weeb.org>,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org
Subject: [ammarfaizi2-block:palmer/linux/vdso-fix-v3 9/9]
 arch/riscv/kernel/vdso.c:26:27: warning: tentative definition of variable
 with internal linkage has incomplete non-array type 'struct __vdso_info'

tree:   https://github.com/ammarfaizi2/linux-block palmer/linux/vdso-fix-v3
head:   fcbe4db4bf998e22fc7a35a2e02f6ba3d5ffb5db
commit: fcbe4db4bf998e22fc7a35a2e02f6ba3d5ffb5db [9/9] WIP: riscv: vdso: fix NULL deference in vdso_join_timens() when vfork
config: riscv-randconfig-r022-20220916 (https://download.01.org/0day-ci/archive/20220916/202209162203.LQxeIrqT-lkp@intel.com/config)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/ammarfaizi2/linux-block/commit/fcbe4db4bf998e22fc7a35a2e02f6ba3d5ffb5db
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block palmer/linux/vdso-fix-v3
        git checkout fcbe4db4bf998e22fc7a35a2e02f6ba3d5ffb5db
        # 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=riscv SHELL=/bin/bash arch/riscv/kernel/ drivers/char/pcmcia/

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 >>):

>> arch/riscv/kernel/vdso.c:26:27: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct __vdso_info' [-Wtentative-definition-incomplete-type]
   static struct __vdso_info vdso_info;
                             ^
   arch/riscv/kernel/vdso.c:26:15: note: forward declaration of 'struct __vdso_info'
   static struct __vdso_info vdso_info;
                 ^
   arch/riscv/kernel/vdso.c:29:27: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct __vdso_info' [-Wtentative-definition-incomplete-type]
   static struct __vdso_info compat_vdso_info;
                             ^
   arch/riscv/kernel/vdso.c:26:15: note: forward declaration of 'struct __vdso_info'
   static struct __vdso_info vdso_info;
                 ^
   2 warnings generated.


vim +26 arch/riscv/kernel/vdso.c

    24	
    25	extern char vdso_start[], vdso_end[];
  > 26	static struct __vdso_info vdso_info;
    27	#ifdef CONFIG_COMPAT
    28	extern char compat_vdso_start[], compat_vdso_end[];
    29	static struct __vdso_info compat_vdso_info;
    30	#endif
    31	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ