drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:109:37: warning: unused variable 'amdgpu_rap_debugfs_ops'
by kernel test robot
Hi Dave,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 002c0aef109067168ae68ee69b5ce67edc2e63c1
commit: 0c8d22fcae2f9590a07b000e1724f665820b77f7 Merge tag 'amd-drm-next-5.10-2020-09-03' of git://people.freedesktop.org/~agd5f/linux into drm-next
date: 12 months ago
config: arm64-randconfig-r036-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 0c8d22fcae2f9590a07b000e1724f665820b77f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c:109:37: warning: unused variable 'amdgpu_rap_debugfs_ops' [-Wunused-const-variable]
static const struct file_operations amdgpu_rap_debugfs_ops = {
^
1 warning generated.
--
>> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:41:34: warning: unused variable 'clocks' [-Wunused-const-variable]
static const struct cg_flag_name clocks[] = {
^
1 warning generated.
vim +/amdgpu_rap_debugfs_ops +109 drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c
a4322e1881bed80 Wenhui Sheng 2020-08-11 108
a4322e1881bed80 Wenhui Sheng 2020-08-11 @109 static const struct file_operations amdgpu_rap_debugfs_ops = {
a4322e1881bed80 Wenhui Sheng 2020-08-11 110 .owner = THIS_MODULE,
a4322e1881bed80 Wenhui Sheng 2020-08-11 111 .read = NULL,
a4322e1881bed80 Wenhui Sheng 2020-08-11 112 .write = amdgpu_rap_debugfs_write,
a4322e1881bed80 Wenhui Sheng 2020-08-11 113 .llseek = default_llseek
a4322e1881bed80 Wenhui Sheng 2020-08-11 114 };
a4322e1881bed80 Wenhui Sheng 2020-08-11 115
:::::: The code at line 109 was first introduced by commit
:::::: a4322e1881bed80ddb904482f0b2e948fa7fd47e drm/amdgpu: add debugfs interface for RAP test
:::::: TO: Wenhui Sheng <Wenhui.Sheng(a)amd.com>
:::::: CC: Alex Deucher <alexander.deucher(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
drivers/infiniband/core/nldev.c:2187:1: warning: unused function '__chk_RDMA_NL_NLDEV'
by kernel test robot
Hi Eric,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 002c0aef109067168ae68ee69b5ce67edc2e63c1
commit: 919067cc845f323a80b6fe987b64238bd82d309e net: add CONFIG_PCPU_DEV_REFCNT
date: 5 months ago
config: mips-randconfig-r013-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 919067cc845f323a80b6fe987b64238bd82d309e
# 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/infiniband/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/infiniband/core/nldev.c:2187:1: warning: unused function '__chk_RDMA_NL_NLDEV'
MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);
^
include/rdma/rdma_netlink.h:33:21: note: expanded from macro 'MODULE_ALIAS_RDMA_NETLINK'
static inline void __chk_##_index(void) ^
<scratch space>:42:1: note: expanded from here
__chk_RDMA_NL_NLDEV
^
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/atomic.h", .line = 154, $); 0x00 ) != -1)) : $))) ) && ( 0 ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif
1: ll $1, $2 # atomic_fetch_sub
subu $0, $1, $3
sc $0, $2
beqz $0, 1b
.set pop
move $0, $1
'
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 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-9e9d70591e/bin
clang-14: note: diagnostic msg:
Makefile arch drivers include kernel mm net nr_bisected scripts source usr
vim +/__chk_RDMA_NL_NLDEV +2187 drivers/infiniband/core/nldev.c
e3bf14bdc17a8e Jason Gunthorpe 2017-08-14 2186
e3bf14bdc17a8e Jason Gunthorpe 2017-08-14 @2187 MODULE_ALIAS_RDMA_NETLINK(RDMA_NL_NLDEV, 5);
:::::: The code at line 2187 was first introduced by commit
:::::: e3bf14bdc17a8e917f337760cc7cacf3232d7dbc rdma: Autoload netlink client modules
:::::: TO: Jason Gunthorpe <jgunthorpe(a)obsidianresearch.com>
:::::: CC: Doug Ledford <dledford(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[android-common:android12-5.10 1/1] include/trace/hooks/ipv4.h:12:1: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 81c8161bed77ae0da88c78ff822220ba1a2a7a8a
commit: 81c8161bed77ae0da88c78ff822220ba1a2a7a8a [1/1] ANDROID: vendor_hooks: Add hooks to tcp/udp send/recv msg functions.
config: x86_64-randconfig-s021-20210821 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 81c8161bed77ae0da88c78ff822220ba1a2a7a8a
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
net/ipv4/tcp.c: note: in included file (through include/net/inet_sock.h, include/net/ip.h, include/linux/errqueue.h):
include/net/sock.h:1621:31: sparse: sparse: context imbalance in 'tcp_ioctl' - unexpected unlock
net/ipv4/tcp.c: note: in included file:
>> include/trace/hooks/ipv4.h:12:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/ipv4.h:12:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/ipv4.h:12:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/ipv4.h:16:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/ipv4.h:16:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/ipv4.h:16:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/ipv4.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/ipv4.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/ipv4.h:28:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
net/ipv4/tcp.c: note: in included file (through include/net/inet_sock.h, include/net/ip.h, include/linux/errqueue.h):
include/net/sock.h:1621:31: sparse: sparse: context imbalance in 'tcp_get_info' - unexpected unlock
vim +12 include/trace/hooks/ipv4.h
11
> 12 DECLARE_RESTRICTED_HOOK(android_rvh_tcp_sendmsg_locked,
13 TP_PROTO(struct sock *sk, int size),
14 TP_ARGS(sk, size), 1);
15
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[frank-w-bpi-r2-4.14:5.14-rc 6/24] drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.14-rc
head: 15ab19c94d88070dd93ad282b83ff856be6092fc
commit: 6c7a57f4d7a96ee09d6aacbdac04d2f3b3da24f6 [6/24] mt6625l: include wifi-code
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
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
# https://github.com/frank-w/BPI-R2-4.14/commit/6c7a57f4d7a96ee09d6aacbdac0...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-rc
git checkout 6c7a57f4d7a96ee09d6aacbdac04d2f3b3da24f6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/mtk_btif.c:37:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'mtk_btif_restore_noirq':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:379:13: warning: variable 'i_ret' set but not used [-Wunused-but-set-variable]
379 | int i_ret = 0;
| ^~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'flag_store':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:773:13: warning: variable 'result' set but not used [-Wunused-but-set-variable]
773 | int result = 0;
| ^~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'btif_log_buf_dmp_out':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:3029:24: warning: variable 'p_buf' set but not used [-Wunused-but-set-variable]
3029 | unsigned char *p_buf = NULL;
| ^~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:37,
from drivers/misc/mediatek/btif/common/mtk_btif_exp.c:20:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_pub.h:19,
from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_priv.h:18,
from drivers/misc/mediatek/btif/common/btif_dma_plat.c:22:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_dma_plat.c: In function 'hal_dma_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_dma_plat.c:1313:38: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1313 | unsigned int flag = 0;
| ^~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/btif_plat.c:21:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:9: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_hw_init':
>> drivers/misc/mediatek/btif/common/btif_plat.c:516:39: warning: implicit conversion from 'enum <anonymous>' to 'ENUM_BTIF_MODE' {aka 'enum _ENUM_BTIF_MODE_'} [-Wenum-conversion]
516 | hal_btif_tx_mode_ctrl(p_btif, false);
| ^~~~~
drivers/misc/mediatek/btif/common/btif_plat.c:518:39: warning: implicit conversion from 'enum <anonymous>' to 'ENUM_BTIF_MODE' {aka 'enum _ENUM_BTIF_MODE_'} [-Wenum-conversion]
518 | hal_btif_rx_mode_ctrl(p_btif, false);
| ^~~~~
drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_plat.c:1343:38: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1343 | unsigned int flag = 0;
| ^~~~
vim +64 drivers/misc/mediatek/btif/common/plat_inc/plat_common.h
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 56
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 57 /*Log defination*/
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 58 static int hal_log_print(const char *str, ...)
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 59 {
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 60 va_list args;
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 61 char temp_sring[DBG_LOG_STR_SIZE];
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 62
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 63 va_start(args, str);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 @64 vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 65 va_end(args);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 66
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 67 pr_err("%s", temp_sring);
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 68
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 69 return 0;
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 70 }
eca6cb9d1200e7 Frank Wunderlich 2021-07-12 71
:::::: The code at line 64 was first introduced by commit
:::::: eca6cb9d1200e774a42a7dd581e3ce064081bdec mt6625l: add driver folder from 5.13
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[linux-next:master 9509/9522] drivers/char/tpm/tpm_ibmvtpm.c:366:30: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 86ed57fd8c93fdfaabb4f58e78455180fa7d8a84
commit: a389ba5e5df26c9b904434677fd00cde641e4745 [9509/9522] slab: clean up function declarations
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout a389ba5e5df26c9b904434677fd00cde641e4745
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/char/tpm/tpm_ibmvtpm.c:125:30: sparse: sparse: cast removes address space '__iomem' of expression
drivers/char/tpm/tpm_ibmvtpm.c:126:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *p @@ got void [noderef] __iomem *rtce_buf @@
drivers/char/tpm/tpm_ibmvtpm.c:126:23: sparse: expected void *p
drivers/char/tpm/tpm_ibmvtpm.c:126:23: sparse: got void [noderef] __iomem *rtce_buf
drivers/char/tpm/tpm_ibmvtpm.c:229:17: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/char/tpm/tpm_ibmvtpm.c:366:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *objp @@ got void [noderef] __iomem *rtce_buf @@
drivers/char/tpm/tpm_ibmvtpm.c:366:30: sparse: expected void const *objp
drivers/char/tpm/tpm_ibmvtpm.c:366:30: sparse: got void [noderef] __iomem *rtce_buf
drivers/char/tpm/tpm_ibmvtpm.c:525:43: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *rtce_buf @@ got void * @@
drivers/char/tpm/tpm_ibmvtpm.c:525:43: sparse: expected void [noderef] __iomem *rtce_buf
drivers/char/tpm/tpm_ibmvtpm.c:525:43: sparse: got void *
drivers/char/tpm/tpm_ibmvtpm.c:532:52: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *ptr @@ got void [noderef] __iomem *rtce_buf @@
drivers/char/tpm/tpm_ibmvtpm.c:532:52: sparse: expected void *ptr
drivers/char/tpm/tpm_ibmvtpm.c:532:52: sparse: got void [noderef] __iomem *rtce_buf
drivers/char/tpm/tpm_ibmvtpm.c:538:46: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *objp @@ got void [noderef] __iomem *rtce_buf @@
drivers/char/tpm/tpm_ibmvtpm.c:538:46: sparse: expected void const *objp
drivers/char/tpm/tpm_ibmvtpm.c:538:46: sparse: got void [noderef] __iomem *rtce_buf
vim +366 drivers/char/tpm/tpm_ibmvtpm.c
132f76294744244 Ashley Lai 2012-08-22 336
132f76294744244 Ashley Lai 2012-08-22 337 /**
132f76294744244 Ashley Lai 2012-08-22 338 * tpm_ibmvtpm_remove - ibm vtpm remove entry point
132f76294744244 Ashley Lai 2012-08-22 339 * @vdev: vio device struct
132f76294744244 Ashley Lai 2012-08-22 340 *
93c12f293f87982 Winkler, Tomas 2016-11-23 341 * Return: Always 0.
132f76294744244 Ashley Lai 2012-08-22 342 */
386a966f5ce71a0 Uwe Kleine-König 2021-02-25 343 static void tpm_ibmvtpm_remove(struct vio_dev *vdev)
132f76294744244 Ashley Lai 2012-08-22 344 {
9e0d39d8a6a0a88 Christophe Ricard 2016-03-31 345 struct tpm_chip *chip = dev_get_drvdata(&vdev->dev);
9e0d39d8a6a0a88 Christophe Ricard 2016-03-31 346 struct ibmvtpm_dev *ibmvtpm = dev_get_drvdata(&chip->dev);
132f76294744244 Ashley Lai 2012-08-22 347 int rc = 0;
132f76294744244 Ashley Lai 2012-08-22 348
afb5abc262e9620 Jarkko Sakkinen 2014-12-12 349 tpm_chip_unregister(chip);
afb5abc262e9620 Jarkko Sakkinen 2014-12-12 350
132f76294744244 Ashley Lai 2012-08-22 351 free_irq(vdev->irq, ibmvtpm);
132f76294744244 Ashley Lai 2012-08-22 352
132f76294744244 Ashley Lai 2012-08-22 353 do {
132f76294744244 Ashley Lai 2012-08-22 354 if (rc)
132f76294744244 Ashley Lai 2012-08-22 355 msleep(100);
132f76294744244 Ashley Lai 2012-08-22 356 rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address);
132f76294744244 Ashley Lai 2012-08-22 357 } while (rc == H_BUSY || H_IS_LONG_BUSY(rc));
132f76294744244 Ashley Lai 2012-08-22 358
132f76294744244 Ashley Lai 2012-08-22 359 dma_unmap_single(ibmvtpm->dev, ibmvtpm->crq_dma_handle,
132f76294744244 Ashley Lai 2012-08-22 360 CRQ_RES_BUF_SIZE, DMA_BIDIRECTIONAL);
132f76294744244 Ashley Lai 2012-08-22 361 free_page((unsigned long)ibmvtpm->crq_queue.crq_addr);
132f76294744244 Ashley Lai 2012-08-22 362
132f76294744244 Ashley Lai 2012-08-22 363 if (ibmvtpm->rtce_buf) {
132f76294744244 Ashley Lai 2012-08-22 364 dma_unmap_single(ibmvtpm->dev, ibmvtpm->rtce_dma_handle,
132f76294744244 Ashley Lai 2012-08-22 365 ibmvtpm->rtce_size, DMA_BIDIRECTIONAL);
132f76294744244 Ashley Lai 2012-08-22 @366 kfree(ibmvtpm->rtce_buf);
132f76294744244 Ashley Lai 2012-08-22 367 }
132f76294744244 Ashley Lai 2012-08-22 368
132f76294744244 Ashley Lai 2012-08-22 369 kfree(ibmvtpm);
31574d321c70f6d Hon Ching \(Vicky\ Lo 2017-03-15 370) /* For tpm_ibmvtpm_get_desired_dma */
31574d321c70f6d Hon Ching \(Vicky\ Lo 2017-03-15 371) dev_set_drvdata(&vdev->dev, NULL);
132f76294744244 Ashley Lai 2012-08-22 372 }
132f76294744244 Ashley Lai 2012-08-22 373
:::::: The code at line 366 was first introduced by commit
:::::: 132f7629474424418a5cdd666796ad3cfa4dc0c5 drivers/char/tpm: Add new device driver to support IBM vTPM
:::::: TO: Ashley Lai <adlai(a)linux.vnet.ibm.com>
:::::: CC: Kent Yoder <key(a)linux.vnet.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
by kernel test robot
Hi Geert,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fa54d366a6e4fe3e16322abdb8b5115f8be0da8b
commit: ade896460e4a62f5e4a892a98d254937f6f5b64c drm: DRM_KMB_DISPLAY should depend on ARCH_KEEMBAY
date: 9 months ago
config: mips-randconfig-r013-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ade896460e4a62f5e4a892a98d254937f6f5b64c
# 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/gpu/drm/kmb/ drivers/infiniband/core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/kmb/kmb_dsi.c:812:2: warning: unused function 'set_test_mode_src_osc_freq_target_low_bits'
set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi
^
>> drivers/gpu/drm/kmb/kmb_dsi.c:824:2: warning: unused function 'set_test_mode_src_osc_freq_target_hi_bits'
set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi
^
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 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-9e9d70591e/bin
clang-14: note: diagnostic msg:
Makefile arch drivers include kernel mm net nr_bisected scripts source usr
vim +/set_test_mode_src_osc_freq_target_low_bits +812 drivers/gpu/drm/kmb/kmb_dsi.c
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 810
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 811 static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @812 set_test_mode_src_osc_freq_target_low_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 813 u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 814 u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 815 {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 816 /* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 817 * sr_osc_freq_target[7:0]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 818 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 819 test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 820 (freq & 0x7f));
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 821 }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 822
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 823 static inline void
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 @824 set_test_mode_src_osc_freq_target_hi_bits(struct kmb_dsi *kmb_dsi,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 825 u32 dphy_no,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 826 u32 freq)
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 827 {
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 828 u32 data;
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 829
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 830 /* Flag this as high nibble */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 831 data = ((freq >> 6) & 0x1f) | (1 << 7);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 832
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 833 /* Typical rise/fall time=166, refer Table 1207 databook,
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 834 * sr_osc_freq_target[11:7]
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 835 */
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 836 test_mode_send(kmb_dsi, dphy_no, TEST_CODE_SLEW_RATE_DDL_CYCLES, data);
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 837 }
98521f4d4b4cb2 Anitha Chrisanthus 2020-11-04 838
:::::: The code at line 812 was first introduced by commit
:::::: 98521f4d4b4cb265374a4b1e13b41287a1960243 drm/kmb: Mipi DSI part of the display driver
:::::: TO: Anitha Chrisanthus <anitha.chrisanthus(a)intel.com>
:::::: CC: Sam Ravnborg <sam(a)ravnborg.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year
[jimc:dd-drm-next 2/11] lib/dynamic_debug.c:609:68: error: invalid use of undefined type 'struct module'
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm-next
head: 334f24cc73a3d5051217851d4616cb89c2d152dc
commit: 0322252e3c15fa80be1780ca68dde765a57f2c4b [2/11] dyndbg: add DEFINE_DYNAMIC_DEBUG_CATEGORIES and callbacks
config: s390-randconfig-r035-20210820 (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.0
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
# https://github.com/jimc/linux/commit/0322252e3c15fa80be1780ca68dde765a57f...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout 0322252e3c15fa80be1780ca68dde765a57f2c4b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
lib/dynamic_debug.c: In function 'param_set_dyndbg':
>> lib/dynamic_debug.c:609:68: error: invalid use of undefined type 'struct module'
609 | matches = dynamic_debug_exec_queries(query, kp->mod->name);
| ^~
vim +609 lib/dynamic_debug.c
579
580 #define FMT_QUERY_SIZE 128 /* typically need <40 */
581 /**
582 * param_set_dyndbg() - drm.debug style bits=>categories setter
583 * @instr: string echo>d to sysfs
584 * @kp: struct kernel_param* ->data has bitmap
585 * Exported to support DEFINE_DYNAMIC_DEBUG_CATEGORIES
586 */
587 int param_set_dyndbg(const char *instr, const struct kernel_param *kp)
588 {
589 unsigned long inbits;
590 int rc, i, matches = 0, totct = 0;
591 char query[FMT_QUERY_SIZE];
592 const struct dyndbg_bitdesc *bitmap = kp->data;
593
594 if (!bitmap) {
595 pr_err("set_dyndbg: no bits=>queries map\n");
596 return -EINVAL;
597 }
598 rc = kstrtoul(instr, 0, &inbits);
599 if (rc) {
600 pr_err("set_dyndbg: failed\n");
601 return rc;
602 }
603 vpr_info("set_dyndbg: input 0x%lx\n", inbits);
604
605 for (i = 0; bitmap->prefix; i++, bitmap++) {
606 snprintf(query, FMT_QUERY_SIZE, "format '^%s' %cp", bitmap->prefix,
607 test_bit(i, &inbits) ? '+' : '-');
608
> 609 matches = dynamic_debug_exec_queries(query, kp->mod->name);
610
611 v2pr_info("bit-%d: %d matches on '%s'\n", i, matches, query);
612 totct += matches;
613 }
614 vpr_info("total matches: %d\n", totct);
615 return 0;
616 }
617 EXPORT_SYMBOL(param_set_dyndbg);
618
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v4 2/6] iio: kfifo-buffer: Add output buffer support
by kernel test robot
Hi Mihail,
I love your patch! Perhaps something to improve:
[auto build test WARNING on 94a853eca720ac9e385e59f27e859b4a01123f58]
url: https://github.com/0day-ci/linux/commits/Mihail-Chindris/iio-Add-output-b...
base: 94a853eca720ac9e385e59f27e859b4a01123f58
config: mips-randconfig-s031-20210821 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/0day-ci/linux/commit/4ad051f1e5a488f51842037c42fa17b5a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mihail-Chindris/iio-Add-output-buffer-support-and-DAC-example/20210821-010349
git checkout 4ad051f1e5a488f51842037c42fa17b5a1ce1d38
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=mips SHELL=/bin/bash drivers/iio/buffer/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
>> drivers/iio/buffer/kfifo_buf.c:165:9: sparse: sparse: cast to restricted __poll_t
vim +165 drivers/iio/buffer/kfifo_buf.c
152
153 static int iio_kfifo_remove_from(struct iio_buffer *r, void *data)
154 {
155 int ret;
156 struct iio_kfifo *kf = iio_to_kfifo(r);
157
158 if (kfifo_size(&kf->kf) < 1)
159 return -EBUSY;
160
161 ret = kfifo_out(&kf->kf, data, 1);
162 if (ret != 1)
163 return -EBUSY;
164
> 165 wake_up_interruptible_poll(&r->pollq, POLLOUT | POLLWRNORM);
166
167 return 0;
168 }
169
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH 15/27] drm/i915/guc: Implement multi-lrc submission
by kernel test robot
Hi Matthew,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm-tip/drm-tip next-20210820]
[cannot apply to drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master drm/drm-next v5.14-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Matthew-Brost/Parallel-submissio...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-buildonly-randconfig-r002-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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
# https://github.com/0day-ci/linux/commit/55917f6ee7575ffb033e6b19a9eb38c32...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Brost/Parallel-submission-aka-multi-bb-execbuf/20210821-065348
git checkout 55917f6ee7575ffb033e6b19a9eb38c3210e14db
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:1467:6: warning: no previous prototype for function 'need_tasklet' [-Wmissing-prototypes]
bool need_tasklet(struct intel_guc *guc, struct i915_request *rq)
^
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:1467:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool need_tasklet(struct intel_guc *guc, struct i915_request *rq)
^
static
1 warning generated.
vim +/need_tasklet +1467 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
1466
> 1467 bool need_tasklet(struct intel_guc *guc, struct i915_request *rq)
1468 {
1469 struct i915_sched_engine *sched_engine = rq->engine->sched_engine;
1470 struct intel_context *ce = request_to_scheduling_context(rq);
1471
1472 return submission_disabled(guc) || guc->stalled_request ||
1473 !i915_sched_engine_is_empty(sched_engine) ||
1474 !lrc_desc_registered(guc, ce->guc_id.id);
1475 }
1476
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month