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: <202111060155.nIX7S32Q-lkp@intel.com>
Date:   Sat, 6 Nov 2021 01:25:11 +0800
From:   kernel test robot <lkp@...el.com>
To:     Andrew Jeffery <andrew@...id.au>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, 0day robot <lkp@...el.com>
Subject: drivers/leds/leds-pca955x.c:149:19: warning: unused function
 'pca95xx_num_led_regs'

tree:   https://github.com/0day-ci/linux/commits/Andrew-Jeffery/leds-pca955x-Expose-GPIOs-for-all-pins/20210922-122145
head:   c09828c1b9528b9e07d46e8afde8bc26456b6151
commit: 240ea6dc56b47b440fad24d4c8d83da4da37951b leds: pca955x: Make the gpiochip always expose all pins
date:   6 weeks ago
config: mips-randconfig-r013-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/0day-ci/linux/commit/240ea6dc56b47b440fad24d4c8d83da4da37951b
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Andrew-Jeffery/leds-pca955x-Expose-GPIOs-for-all-pins/20210922-122145
        git checkout 240ea6dc56b47b440fad24d4c8d83da4da37951b
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/leds/

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

>> drivers/leds/leds-pca955x.c:149:19: warning: unused function 'pca95xx_num_led_regs'
   static inline int pca95xx_num_led_regs(int bits)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: ' .set push
   .set mips64r2
   .if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/bitops.h", .line = 105, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
   1: ll $0, $1
   or $0, $2
   sc $0, $1
   beqz $0, 1b
   .set pop
   '
   clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
   clang version 14.0.0 (git://gitmirror/llvm_project 847a6807332b13f43704327c2d30103ec0347c77)
   Target: mipsel-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts source usr


vim +/pca95xx_num_led_regs +149 drivers/leds/leds-pca955x.c

f46e9203d9a100 Nate Case 2008-07-16  147  
f46e9203d9a100 Nate Case 2008-07-16  148  /* 4 bits per LED selector register */
f46e9203d9a100 Nate Case 2008-07-16 @149  static inline int pca95xx_num_led_regs(int bits)
f46e9203d9a100 Nate Case 2008-07-16  150  {
f46e9203d9a100 Nate Case 2008-07-16  151  	return (bits + 3)  / 4;
f46e9203d9a100 Nate Case 2008-07-16  152  }
f46e9203d9a100 Nate Case 2008-07-16  153  

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ