[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202101201257.6T5LoXKi-lkp@intel.com>
Date: Wed, 20 Jan 2021 12:43:09 +0800
From: kernel test robot <lkp@...el.com>
To: Joerg Roedel <jroedel@...e.de>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org
Subject: drivers/gpu/drm/rockchip/rockchip_drm_vop.c:185:20: warning: unused
function 'vop_writel'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1e2a199f6ccdc15cf111d68d212e2fd4ce65682e
commit: 56fbacc9bf23d372d78eef3809c1ac93d88e11f4 Merge branches 'arm/renesas', 'arm/qcom', 'arm/mediatek', 'arm/omap', 'arm/exynos', 'arm/smmu', 'ppc/pamu', 'x86/vt-d', 'x86/amd' and 'core' into next
date: 6 months ago
config: mips-randconfig-r022-20210120 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 22b68440e1647e16b5ee24b924986207173c02d1)
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=56fbacc9bf23d372d78eef3809c1ac93d88e11f4
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 56fbacc9bf23d372d78eef3809c1ac93d88e11f4
# 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@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/rockchip/rockchip_drm_vop.c:185:20: warning: unused function 'vop_writel'
static inline void vop_writel(struct vop uint32_t offset, uint32_t v)
^
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 22b68440e1647e16b5ee24b924986207173c02d1)
Target: mips-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-22b68440e1/bin
clang-12: note: diagnostic msg:
Makefile arch drivers include kernel mm scripts source usr
--
>> drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:320:20: warning: unused function 'dsi_set'
static inline void dsi_set(struct dw_mipi_dsi_rockchip u32 reg, u32 mask)
^
>> drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:325:20: warning: unused function 'dsi_update_bits'
static inline void dsi_update_bits(struct dw_mipi_dsi_rockchip u32 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 22b68440e1647e16b5ee24b924986207173c02d1)
Target: mips-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/cross/clang-22b68440e1/bin
clang-12: note: diagnostic msg:
Makefile arch drivers include kernel mm scripts source usr
vim +/vop_writel +185 drivers/gpu/drm/rockchip/rockchip_drm_vop.c
2048e3286f347db5 Mark Yao 2014-08-22 184
2048e3286f347db5 Mark Yao 2014-08-22 @185 static inline void vop_writel(struct vop *vop, uint32_t offset, uint32_t v)
2048e3286f347db5 Mark Yao 2014-08-22 186 {
2048e3286f347db5 Mark Yao 2014-08-22 187 writel(v, vop->regs + offset);
2048e3286f347db5 Mark Yao 2014-08-22 188 vop->regsbak[offset >> 2] = v;
2048e3286f347db5 Mark Yao 2014-08-22 189 }
2048e3286f347db5 Mark Yao 2014-08-22 190
:::::: The code at line 185 was first introduced by commit
:::::: 2048e3286f347db5667708e47448176b5329e8d8 drm: rockchip: Add basic drm driver
:::::: TO: Mark Yao <mark.yao@...k-chips.com>
:::::: CC: yzq <yzq@...k-chips.com>
---
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" (34337 bytes)
Powered by blists - more mailing lists