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: <202110090912.jA7qXKkq-lkp@intel.com>
Date:   Sat, 9 Oct 2021 09:28:40 +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/uaccess/rework 12/19] arch/arm64/mm/extable.c:65:6:
 warning: no previous prototype for function 'ex_handler_luz'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/uaccess/rework
head:   692de878f919de31942d0d28571b5e6f32c7135e
commit: c4b57def6a878f04d1b72cecabfb9734ebd643f4 [12/19] arm64: use fixup handler for load_unaligned_zeropad()
config: arm64-randconfig-r003-20211008 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 8ed2e8e04ff42eb4d8009999ae1fd341a30bf6c0)
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=c4b57def6a878f04d1b72cecabfb9734ebd643f4
        git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
        git fetch --no-tags mark arm64/uaccess/rework
        git checkout c4b57def6a878f04d1b72cecabfb9734ebd643f4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 

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

   arch/arm64/mm/extable.c:43:6: warning: no previous prototype for function 'ex_handler_fixup' [-Wmissing-prototypes]
   bool ex_handler_fixup(const struct exception_table_entry *ex,
        ^
   arch/arm64/mm/extable.c:43:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool ex_handler_fixup(const struct exception_table_entry *ex,
   ^
   static 
   arch/arm64/mm/extable.c:51:6: warning: no previous prototype for function 'ex_handler_efault_zero' [-Wmissing-prototypes]
   bool ex_handler_efault_zero(const struct exception_table_entry *ex,
        ^
   arch/arm64/mm/extable.c:51:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool ex_handler_efault_zero(const struct exception_table_entry *ex,
   ^
   static 
>> arch/arm64/mm/extable.c:65:6: warning: no previous prototype for function 'ex_handler_luz' [-Wmissing-prototypes]
   bool ex_handler_luz(const struct exception_table_entry *ex,
        ^
   arch/arm64/mm/extable.c:65:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool ex_handler_luz(const struct exception_table_entry *ex,
   ^
   static 
   3 warnings generated.


vim +/ex_handler_luz +65 arch/arm64/mm/extable.c

    64	
  > 65	bool ex_handler_luz(const struct exception_table_entry *ex,
    66			    struct pt_regs *regs)
    67	{
    68		int reg_data = FIELD_GET(EX_DATA_REG_DATA, ex->data);
    69		int reg_addr = FIELD_GET(EX_DATA_REG_ADDR, ex->data);
    70		unsigned long data, addr, offset;
    71	
    72		addr = pt_regs_read_reg(regs, reg_addr);
    73	
    74		offset = addr & 0x7UL;
    75		addr &= ~0x7UL;
    76	
    77		data = *(unsigned long*)addr;
    78	

---
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" (43660 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ