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]
Date:   Sat, 6 Nov 2021 03:32:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Paul Cercueil <paul@...pouillou.net>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Subject: drivers/pcmcia/yenta_socket.c:147:18: warning: unused function
 'exca_readw'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: c434b9f80b0923e6460031b0fd964f8b0bf3c6a6 MIPS: Kconfig: add MIPS_GENERIC_KERNEL symbol
date:   1 year, 2 months ago
config: mips-randconfig-r021-20211017 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 8ca4b3ef19fe82d7ad6a6e1515317dcc01b41515)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c434b9f80b0923e6460031b0fd964f8b0bf3c6a6
        # 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/cpufreq/ drivers/mmc/host/ drivers/pcmcia/ drivers/video/fbdev/ sound/pci/ymfpci/

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/pcmcia/yenta_socket.c:147:18: warning: unused function 'exca_readw'
   static inline u8 exca_readw(struct yenta_socket unsigned reg)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts sound source usr
--
>> drivers/mmc/host/sdricoh_cs.c:104:28: warning: unused function 'sdricoh_readw'
   static inline unsigned int sdricoh_readw(struct sdricoh_host
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts sound source usr
--
>> drivers/video/fbdev/tridentfb.c:1127:20: warning: unused function 'shadowmode_off'
   static inline void shadowmode_off(struct tridentfb_par
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts sound source usr
--
>> sound/pci/ymfpci/ymfpci_main.c:34:18: warning: unused function 'snd_ymfpci_readb'
   static inline u8 snd_ymfpci_readb(struct snd_ymfpci u32 offset)
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts sound source usr
--
>> drivers/video/fbdev/aty/aty128fb.c:525:18: warning: unused function '_aty_ld_8'
   static inline u8 _aty_ld_8(unsigned int regindex,
   ^
   fatal error: error in backend: Nested variants found in inline asm string: '.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/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
   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: mips-unknown-linux
   Thread model: posix
   InstalledDir: /opt/cross/clang-847a680733/bin
   clang-14: note: diagnostic msg:
   Makefile arch drivers include kernel nr_bisected scripts sound source usr


vim +/exca_readw +147 drivers/pcmcia/yenta_socket.c

^1da177e4c3f415 Linus Torvalds    2005-04-16  146  
^1da177e4c3f415 Linus Torvalds    2005-04-16 @147  static inline u8 exca_readw(struct yenta_socket *socket, unsigned reg)
^1da177e4c3f415 Linus Torvalds    2005-04-16  148  {
^1da177e4c3f415 Linus Torvalds    2005-04-16  149  	u16 val;
^1da177e4c3f415 Linus Torvalds    2005-04-16  150  	val = readb(socket->base + 0x800 + reg);
^1da177e4c3f415 Linus Torvalds    2005-04-16  151  	val |= readb(socket->base + 0x800 + reg + 1) << 8;
dd797d81d3d7da3 Dominik Brodowski 2008-08-02  152  	debug("%04x %04x\n", socket, reg, val);
^1da177e4c3f415 Linus Torvalds    2005-04-16  153  	return val;
^1da177e4c3f415 Linus Torvalds    2005-04-16  154  }
^1da177e4c3f415 Linus Torvalds    2005-04-16  155  

:::::: The code at line 147 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@...970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@...970.osdl.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ