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: <202206281334.Hj0eme5G-lkp@intel.com>
Date:   Tue, 28 Jun 2022 13:38:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     Arnd Bergmann <arnd@...db.de>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: arch/arm/mach-pxa/corgi_pm.c:137:15: warning: no previous prototype
 for function 'corgipm_read_devdata'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   941e3e7912696b9fbe3586083a7c2e102cee7a87
commit: 8c1fb11b8a77dc489a8ef6d96c38c1297b629d06 ARM: s3c: enable s3c24xx multiplatform support
date:   3 months ago
config: arm-buildonly-randconfig-r001-20220627 (https://download.01.org/0day-ci/archive/20220628/202206281334.Hj0eme5G-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 016342e319fd31e41cf5ed16a6140a8ea2de74dd)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8c1fb11b8a77dc489a8ef6d96c38c1297b629d06
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 8c1fb11b8a77dc489a8ef6d96c38c1297b629d06
        # 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=arm SHELL=/bin/bash

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/arm/mach-pxa/corgi_pm.c:137:15: warning: no previous prototype for function 'corgipm_read_devdata' [-Wmissing-prototypes]
   unsigned long corgipm_read_devdata(int type)
                 ^
   arch/arm/mach-pxa/corgi_pm.c:137:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   unsigned long corgipm_read_devdata(int type)
   ^
   static 
   1 warning generated.


vim +/corgipm_read_devdata +137 arch/arm/mach-pxa/corgi_pm.c

d72f25b0dfb080 Richard Purdie 2005-11-13  136  
b7557de41a0434 Richard Purdie 2006-01-05 @137  unsigned long corgipm_read_devdata(int type)
d72f25b0dfb080 Richard Purdie 2005-11-13  138  {
b7557de41a0434 Richard Purdie 2006-01-05  139  	switch(type) {
b7557de41a0434 Richard Purdie 2006-01-05  140  	case SHARPSL_STATUS_ACIN:
9bf448c66d4b4c Haojian Zhuang 2011-10-17  141  		return !gpio_get_value(CORGI_GPIO_AC_IN);
b7557de41a0434 Richard Purdie 2006-01-05  142  	case SHARPSL_STATUS_LOCK:
05732d7eb0d7f7 Eric Miao      2010-07-04  143  		return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock);
b7557de41a0434 Richard Purdie 2006-01-05  144  	case SHARPSL_STATUS_CHRGFULL:
05732d7eb0d7f7 Eric Miao      2010-07-04  145  		return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull);
b7557de41a0434 Richard Purdie 2006-01-05  146  	case SHARPSL_STATUS_FATAL:
05732d7eb0d7f7 Eric Miao      2010-07-04  147  		return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal);
b7557de41a0434 Richard Purdie 2006-01-05  148  	case SHARPSL_ACIN_VOLT:
b7557de41a0434 Richard Purdie 2006-01-05  149  		return sharpsl_pm_pxa_read_max1111(MAX1111_ACIN_VOLT);
b7557de41a0434 Richard Purdie 2006-01-05  150  	case SHARPSL_BATT_TEMP:
b7557de41a0434 Richard Purdie 2006-01-05  151  		return sharpsl_pm_pxa_read_max1111(MAX1111_BATT_TEMP);
b7557de41a0434 Richard Purdie 2006-01-05  152  	case SHARPSL_BATT_VOLT:
b7557de41a0434 Richard Purdie 2006-01-05  153  	default:
b7557de41a0434 Richard Purdie 2006-01-05  154  		return sharpsl_pm_pxa_read_max1111(MAX1111_BATT_VOLT);
b7557de41a0434 Richard Purdie 2006-01-05  155  	}
d72f25b0dfb080 Richard Purdie 2005-11-13  156  }
d72f25b0dfb080 Richard Purdie 2005-11-13  157  

:::::: The code at line 137 was first introduced by commit
:::::: b7557de41a04346cb545d4dda7088760cb96e713 [ARM] 3228/1: SharpSL: Move PM code to arch/arm/common

:::::: TO: Richard Purdie <rpurdie@...ys.net>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ