Messages in this thread | | | Date | Fri, 12 Feb 2021 13:27:10 +0800 | From | kernel test robot <> | Subject | drivers/mmc/host/sdhci-esdhc-imx.c:343:19: warning: unused function 'is_imx6q_usdhc' |
| |
Hi Krzysztof,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 291009f656e8eaebbdfd3a8d99f6b190a9ce9deb commit: 54d8454436a205682bd89d66d8d9eedbc8452d15 mmc: host: Enable compile testing of multiple drivers date: 5 months ago config: mips-randconfig-r036-20210212 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476) 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=54d8454436a205682bd89d66d8d9eedbc8452d15 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 54d8454436a205682bd89d66d8d9eedbc8452d15 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mmc/host/sdhci-esdhc-imx.c:343:19: warning: unused function 'is_imx6q_usdhc' static inline int is_imx6q_usdhc(struct pltfm_imx_data ^ 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-12: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 12.0.0 (git://gitmirror/llvm_project c9439ca36342fb6013187d0a69aef92736951476) Target: mipsel-unknown-linux-gnu Thread model: posix InstalledDir: /opt/cross/clang-c9439ca363/bin clang-12: note: diagnostic msg: Makefile arch drivers fs include kernel mm scripts source usr -- >> drivers/mmc/host/sdhci-sprd.c:134:20: warning: unused function 'sdhci_sprd_writew' static inline void sdhci_sprd_writew(struct sdhci_host u16 val, int 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-12: error: clang frontend command failed with exit code 70 (use -v to see invocation) clang version 12.0.0 (git://gitmirror/llvm_project c9439ca36342fb6013187d0a69aef92736951476) Target: mipsel-unknown-linux-gnu Thread model: posix InstalledDir: /opt/cross/clang-c9439ca363/bin clang-12: note: diagnostic msg: Makefile arch drivers fs include kernel mm scripts source usr
vim +/is_imx6q_usdhc +343 drivers/mmc/host/sdhci-esdhc-imx.c
57ed3314e0bfa9 Shawn Guo 2011-06-30 342 95a2482a9baaf5 Shawn Guo 2011-09-19 @343 static inline int is_imx6q_usdhc(struct pltfm_imx_data *data) 95a2482a9baaf5 Shawn Guo 2011-09-19 344 { f47c4bbfa283df Shawn Guo 2013-10-17 345 return data->socdata == &usdhc_imx6q_data; 95a2482a9baaf5 Shawn Guo 2011-09-19 346 } 95a2482a9baaf5 Shawn Guo 2011-09-19 347
:::::: The code at line 343 was first introduced by commit :::::: 95a2482a9baaf55a3403d2e76f2abd7c0a32298c mmc: sdhci-esdhc-imx: add basic imx6q usdhc support
:::::: TO: Shawn Guo <shawn.guo@linaro.org> :::::: CC: Chris Ball <cjb@laptop.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |