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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202209250858.bchDxCiQ-lkp@intel.com>
Date:   Sun, 25 Sep 2022 09:10:41 +0800
From:   kernel test robot <lkp@...el.com>
To:     Youling Tang <tangyouling@...ngson.cn>,
        Huacai Chen <chenhuacai@...nel.org>
Cc:     kbuild-all@...ts.01.org, Ard Biesheuvel <ardb@...nel.org>,
        WANG Xuerui <kernel@...0n.name>, loongarch@...ts.linux.dev,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] LoongArch: Use generic BUG() handler

Hi Youling,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.0-rc6 next-20220923]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Youling-Tang/LoongArch-Use-generic-BUG-handler/20220922-190855
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dc164f4fb00a0abebdfff132f8bc7291a28f5401
config: loongarch-randconfig-m041-20220925
compiler: loongarch64-linux-gcc (GCC) 12.1.0
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
        # https://github.com/intel-lab-lkp/linux/commit/233fbb60106526bdb7cb8496ff5d1c735b5c975e
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Youling-Tang/LoongArch-Use-generic-BUG-handler/20220922-190855
        git checkout 233fbb60106526bdb7cb8496ff5d1c735b5c975e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash arch/loongarch/kernel/

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/loongarch/kernel/traps.c:213:6: warning: no previous prototype for 'show_registers' [-Wmissing-prototypes]
     213 | void show_registers(struct pt_regs *regs)
         |      ^~~~~~~~~~~~~~
   arch/loongarch/kernel/traps.c:276:6: warning: no previous prototype for 'force_fcsr_sig' [-Wmissing-prototypes]
     276 | void force_fcsr_sig(unsigned long fcsr, void __user *fault_addr,
         |      ^~~~~~~~~~~~~~
   arch/loongarch/kernel/traps.c:295:5: warning: no previous prototype for 'process_fpemu_return' [-Wmissing-prototypes]
     295 | int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcsr)
         |     ^~~~~~~~~~~~~~~~~~~~
   arch/loongarch/kernel/traps.c:330:25: warning: no previous prototype for 'do_fpe' [-Wmissing-prototypes]
     330 | asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr)
         |                         ^~~~~~
   arch/loongarch/kernel/traps.c:357:25: warning: no previous prototype for 'do_ade' [-Wmissing-prototypes]
     357 | asmlinkage void noinstr do_ade(struct pt_regs *regs)
         |                         ^~~~~~
   arch/loongarch/kernel/traps.c:367:25: warning: no previous prototype for 'do_ale' [-Wmissing-prototypes]
     367 | asmlinkage void noinstr do_ale(struct pt_regs *regs)
         |                         ^~~~~~
>> arch/loongarch/kernel/traps.c:379:5: warning: no previous prototype for 'is_valid_bugaddr' [-Wmissing-prototypes]
     379 | int is_valid_bugaddr(unsigned long addr)
         |     ^~~~~~~~~~~~~~~~
   arch/loongarch/kernel/traps.c:400:25: warning: no previous prototype for 'do_bp' [-Wmissing-prototypes]
     400 | asmlinkage void noinstr do_bp(struct pt_regs *regs)
         |                         ^~~~~
   arch/loongarch/kernel/traps.c:479:25: warning: no previous prototype for 'do_watch' [-Wmissing-prototypes]
     479 | asmlinkage void noinstr do_watch(struct pt_regs *regs)
         |                         ^~~~~~~~
   arch/loongarch/kernel/traps.c:484:25: warning: no previous prototype for 'do_ri' [-Wmissing-prototypes]
     484 | asmlinkage void noinstr do_ri(struct pt_regs *regs)
         |                         ^~~~~
   arch/loongarch/kernel/traps.c: In function 'do_ri':
   arch/loongarch/kernel/traps.c:487:22: warning: variable 'opcode' set but not used [-Wunused-but-set-variable]
     487 |         unsigned int opcode = 0;
         |                      ^~~~~~
   arch/loongarch/kernel/traps.c: At top level:
   arch/loongarch/kernel/traps.c:537:25: warning: no previous prototype for 'do_fpu' [-Wmissing-prototypes]
     537 | asmlinkage void noinstr do_fpu(struct pt_regs *regs)
         |                         ^~~~~~
   arch/loongarch/kernel/traps.c:552:25: warning: no previous prototype for 'do_lsx' [-Wmissing-prototypes]
     552 | asmlinkage void noinstr do_lsx(struct pt_regs *regs)
         |                         ^~~~~~
   arch/loongarch/kernel/traps.c:563:25: warning: no previous prototype for 'do_lasx' [-Wmissing-prototypes]
     563 | asmlinkage void noinstr do_lasx(struct pt_regs *regs)
         |                         ^~~~~~~
   arch/loongarch/kernel/traps.c:574:25: warning: no previous prototype for 'do_lbt' [-Wmissing-prototypes]
     574 | asmlinkage void noinstr do_lbt(struct pt_regs *regs)
         |                         ^~~~~~
   arch/loongarch/kernel/traps.c:585:25: warning: no previous prototype for 'do_reserved' [-Wmissing-prototypes]
     585 | asmlinkage void noinstr do_reserved(struct pt_regs *regs)
         |                         ^~~~~~~~~~~
   arch/loongarch/kernel/traps.c:604:17: warning: no previous prototype for 'cache_parity_error' [-Wmissing-prototypes]
     604 | asmlinkage void cache_parity_error(void)
         |                 ^~~~~~~~~~~~~~~~~~
   arch/loongarch/kernel/traps.c:613:25: warning: no previous prototype for 'handle_loongarch_irq' [-Wmissing-prototypes]
     613 | asmlinkage void noinstr handle_loongarch_irq(struct pt_regs *regs)
         |                         ^~~~~~~~~~~~~~~~~~~~
   arch/loongarch/kernel/traps.c:624:25: warning: no previous prototype for 'do_vint' [-Wmissing-prototypes]
     624 | asmlinkage void noinstr do_vint(struct pt_regs *regs, unsigned long sp)
         |                         ^~~~~~~


vim +/is_valid_bugaddr +379 arch/loongarch/kernel/traps.c

   378	
 > 379	int is_valid_bugaddr(unsigned long addr)
   380	{
   381		return 1;
   382	}
   383	

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ