[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109051732.PmdsMUD9-lkp@intel.com>
Date: Sun, 5 Sep 2021 17:06:41 +0800
From: kernel test robot <lkp@...el.com>
To: Robert Foss <robert.foss@...aro.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media@...r.kernel.org,
Andrey Konovalov <andrey.konovalov@...aro.org>,
Hans Verkuil <hverkuil@...all.nl>
Subject: drivers/media/platform/qcom/camss/camss-vfe-170.c:191:20: warning:
unused function 'vfe_reg_clr'
Hi Robert,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 49624efa65ac9889f4e7c7b2452b2e6ce42ba37d
commit: 7319cdf189bb643c6d56e5898ef89ad7c3ef6c31 media: camss: Add support for VFE hardware version Titan 170
date: 6 months ago
config: mips-randconfig-r003-20210904 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a)
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=7319cdf189bb643c6d56e5898ef89ad7c3ef6c31
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7319cdf189bb643c6d56e5898ef89ad7c3ef6c31
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/media/platform/qcom/camss/ kernel/time/
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/media/platform/qcom/camss/camss-vfe-170.c:191:20: warning: unused function 'vfe_reg_clr'
static inline void vfe_reg_clr(struct vfe_device u32 reg, u32 clr_bits)
^
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 6fe2beba7d2a41964af658c8c59dd172683ef739)
Target: mips-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-6fe2beba7d/bin
clang-14: note: diagnostic msg:
Makefile arch drivers include kernel net scripts security sound source usr
vim +/vfe_reg_clr +191 drivers/media/platform/qcom/camss/camss-vfe-170.c
190
> 191 static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
192 {
193 u32 bits = readl_relaxed(vfe->base + reg);
194
195 writel_relaxed(bits & ~clr_bits, vfe->base + reg);
196 }
197
---
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" (37531 bytes)
Powered by blists - more mailing lists