[linux-next:master 11209/13751] arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f2e19fd15bd7cba347ce50be71955f5cd28a6019
commit: b929926f01f2d14635345d22eafcf60feed1085e [11209/13751] sh: define __BIG_ENDIAN for math-emu
config: sh-buildonly-randconfig-r005-20211028 (attached as .config)
compiler: sh4-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://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 b929926f01f2d14635345d22eafcf60feed1085e
# 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=sh SHELL=/bin/bash
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 include/math-emu/soft-fp.h:27,
from arch/sh/math-emu/math.c:22:
>> arch/sh/include/asm/sfp-machine.h:17: warning: "__BYTE_ORDER" redefined
17 | #define __BYTE_ORDER __BIG_ENDIAN
|
In file included from arch/sh/math-emu/math.c:21:
arch/sh/math-emu/sfp-util.h:71: note: this is the location of the previous definition
71 | #define __BYTE_ORDER __LITTLE_ENDIAN
|
arch/sh/math-emu/math.c:54: warning: "WRITE" redefined
54 | #define WRITE(d,a) ({if(put_user(d, (typeof (d) __user *)a)) return -EFAULT;})
|
In file included from arch/sh/math-emu/math.c:10:
include/linux/kernel.h:38: note: this is the location of the previous definition
38 | #define WRITE 1
|
arch/sh/math-emu/math.c:55: warning: "READ" redefined
55 | #define READ(d,a) ({if(get_user(d, (typeof (d) __user *)a)) return -EFAULT;})
|
In file included from arch/sh/math-emu/math.c:10:
include/linux/kernel.h:37: note: this is the location of the previous definition
37 | #define READ 0
|
In file included from include/math-emu/soft-fp.h:187,
from arch/sh/math-emu/math.c:22:
arch/sh/math-emu/math.c: In function 'fcmp_gt':
arch/sh/math-emu/math.c:69:40: warning: variable 'Fn_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:27: note: in expansion of macro 'FP_DECL_D'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:34: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c:69:22: warning: variable 'Fm_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:9: note: in expansion of macro 'FP_DECL_D'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:34: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c:69:40: warning: variable 'Fn_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:27: note: in expansion of macro 'FP_DECL_S'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:56: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c:69:22: warning: variable 'Fm_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
28 | _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \
| ^
arch/sh/math-emu/math.c:69:9: note: in expansion of macro 'FP_DECL_S'
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~~~~~~~
arch/sh/math-emu/math.c:66:56: note: in expansion of macro 'CMP_X'
66 | FP_DECL_EX; if(FPSCR_PR) op(D,x,DRm,DRn); else op(S,x,FRm,FRn);
| ^~
arch/sh/math-emu/math.c:76:27: note: in expansion of macro 'BOTH_PRmn'
76 | #define CMP(OP) ({ int r; BOTH_PRmn(OP##_X,r); r; })
| ^~~~~~~~~
arch/sh/math-emu/math.c:81:13: note: in expansion of macro 'CMP'
81 | if (CMP(CMP) > 0)
| ^~~
arch/sh/math-emu/math.c: In function 'fcmp_eq':
arch/sh/math-emu/math.c:69:40: warning: variable 'Fn_c' set but not used [-Wunused-but-set-variable]
69 | FP_DECL_##SZ(Fm); FP_DECL_##SZ(Fn); \
| ^~
include/math-emu/op-common.h:28:14: note: in definition of macro '_FP_DECL'
vim +/__BYTE_ORDER +17 arch/sh/include/asm/sfp-machine.h
15
16 #ifdef __BIG_ENDIAN__
> 17 #define __BYTE_ORDER __BIG_ENDIAN
18 #define __LITTLE_ENDIAN 0
19 #else
20 #define __BYTE_ORDER __LITTLE_ENDIAN
21 #define __BIG_ENDIAN 0
22 #endif
23
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH 13/24] crypto: qat - add pfvf_ops
by kernel test robot
Hi Giovanni,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on herbert-cryptodev-2.6/master]
[also build test ERROR on herbert-crypto-2.6/master linus/master next-20211112]
[cannot apply to v5.15]
[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/Giovanni-Cabiddu/crypto-qat-PFVF...
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-randconfig-a002-20210928 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/3c769abfb3bc46aebd23323b3ed4ac362...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Giovanni-Cabiddu/crypto-qat-PFVF-refactoring/20211111-045418
git checkout 3c769abfb3bc46aebd23323b3ed4ac36216dd51a
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 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 >>):
ld: drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.o: in function `disable_vf2pf_interrupts':
>> drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:151: undefined reference to `adf_gen2_disable_vf2pf_interrupts'
ld: drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.o: in function `enable_vf2pf_interrupts':
>> drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:137: undefined reference to `adf_gen2_enable_vf2pf_interrupts'
ld: drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.o: in function `get_vf2pf_sources':
>> drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c:120: undefined reference to `adf_gen2_get_vf2pf_sources'
vim +151 drivers/crypto/qat/qat_dh895xcc/adf_dh895xcc_hw_data.c
22e4dda06dd0fa2 Allan, Bruce W 2015-01-09 115
993161d36ab5f0f Marco Chiappero 2021-09-28 116 static u32 get_vf2pf_sources(void __iomem *pmisc_bar)
993161d36ab5f0f Marco Chiappero 2021-09-28 117 {
993161d36ab5f0f Marco Chiappero 2021-09-28 118 u32 errsou5, errmsk5, vf_int_mask;
993161d36ab5f0f Marco Chiappero 2021-09-28 119
993161d36ab5f0f Marco Chiappero 2021-09-28 @120 vf_int_mask = adf_gen2_get_vf2pf_sources(pmisc_bar);
993161d36ab5f0f Marco Chiappero 2021-09-28 121
993161d36ab5f0f Marco Chiappero 2021-09-28 122 /* Get the interrupt sources triggered by VFs, but to avoid duplicates
993161d36ab5f0f Marco Chiappero 2021-09-28 123 * in the work queue, clear vf_int_mask_sets bits that are already
993161d36ab5f0f Marco Chiappero 2021-09-28 124 * masked in ERRMSK register.
993161d36ab5f0f Marco Chiappero 2021-09-28 125 */
993161d36ab5f0f Marco Chiappero 2021-09-28 126 errsou5 = ADF_CSR_RD(pmisc_bar, ADF_GEN2_ERRSOU5);
993161d36ab5f0f Marco Chiappero 2021-09-28 127 errmsk5 = ADF_CSR_RD(pmisc_bar, ADF_GEN2_ERRMSK5);
993161d36ab5f0f Marco Chiappero 2021-09-28 128 vf_int_mask |= ADF_DH895XCC_ERR_REG_VF2PF_U(errsou5);
993161d36ab5f0f Marco Chiappero 2021-09-28 129 vf_int_mask &= ~ADF_DH895XCC_ERR_REG_VF2PF_U(errmsk5);
993161d36ab5f0f Marco Chiappero 2021-09-28 130
993161d36ab5f0f Marco Chiappero 2021-09-28 131 return vf_int_mask;
993161d36ab5f0f Marco Chiappero 2021-09-28 132 }
993161d36ab5f0f Marco Chiappero 2021-09-28 133
993161d36ab5f0f Marco Chiappero 2021-09-28 134 static void enable_vf2pf_interrupts(void __iomem *pmisc_addr, u32 vf_mask)
993161d36ab5f0f Marco Chiappero 2021-09-28 135 {
993161d36ab5f0f Marco Chiappero 2021-09-28 136 /* Enable VF2PF Messaging Ints - VFs 0 through 15 per vf_mask[15:0] */
993161d36ab5f0f Marco Chiappero 2021-09-28 @137 adf_gen2_enable_vf2pf_interrupts(pmisc_addr, vf_mask);
993161d36ab5f0f Marco Chiappero 2021-09-28 138
993161d36ab5f0f Marco Chiappero 2021-09-28 139 /* Enable VF2PF Messaging Ints - VFs 16 through 31 per vf_mask[31:16] */
993161d36ab5f0f Marco Chiappero 2021-09-28 140 if (vf_mask >> 16) {
993161d36ab5f0f Marco Chiappero 2021-09-28 141 u32 val = ADF_CSR_RD(pmisc_addr, ADF_GEN2_ERRMSK5)
993161d36ab5f0f Marco Chiappero 2021-09-28 142 & ~ADF_DH895XCC_ERR_MSK_VF2PF_U(vf_mask);
993161d36ab5f0f Marco Chiappero 2021-09-28 143
993161d36ab5f0f Marco Chiappero 2021-09-28 144 ADF_CSR_WR(pmisc_addr, ADF_GEN2_ERRMSK5, val);
993161d36ab5f0f Marco Chiappero 2021-09-28 145 }
993161d36ab5f0f Marco Chiappero 2021-09-28 146 }
993161d36ab5f0f Marco Chiappero 2021-09-28 147
993161d36ab5f0f Marco Chiappero 2021-09-28 148 static void disable_vf2pf_interrupts(void __iomem *pmisc_addr, u32 vf_mask)
993161d36ab5f0f Marco Chiappero 2021-09-28 149 {
993161d36ab5f0f Marco Chiappero 2021-09-28 150 /* Disable VF2PF interrupts for VFs 0 through 15 per vf_mask[15:0] */
993161d36ab5f0f Marco Chiappero 2021-09-28 @151 adf_gen2_disable_vf2pf_interrupts(pmisc_addr, vf_mask);
993161d36ab5f0f Marco Chiappero 2021-09-28 152
993161d36ab5f0f Marco Chiappero 2021-09-28 153 /* Disable VF2PF interrupts for VFs 16 through 31 per vf_mask[31:16] */
993161d36ab5f0f Marco Chiappero 2021-09-28 154 if (vf_mask >> 16) {
993161d36ab5f0f Marco Chiappero 2021-09-28 155 u32 val = ADF_CSR_RD(pmisc_addr, ADF_GEN2_ERRMSK5)
993161d36ab5f0f Marco Chiappero 2021-09-28 156 | ADF_DH895XCC_ERR_MSK_VF2PF_U(vf_mask);
993161d36ab5f0f Marco Chiappero 2021-09-28 157
993161d36ab5f0f Marco Chiappero 2021-09-28 158 ADF_CSR_WR(pmisc_addr, ADF_GEN2_ERRMSK5, val);
993161d36ab5f0f Marco Chiappero 2021-09-28 159 }
993161d36ab5f0f Marco Chiappero 2021-09-28 160 }
993161d36ab5f0f Marco Chiappero 2021-09-28 161
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[allisonhenderson-xfs-work:new_err_tags 22/31] fs/xfs/libxfs/xfs_parent.c:55:1: error: no previous prototype for function 'xfs_init_parent_name_rec'
by kernel test robot
tree: https://github.com/allisonhenderson/xfs_work.git new_err_tags
head: 3554121fcb4bc5485ef3000ece82abab632a2f4d
commit: 8d9e3a8a6b82326c708da362608f5044c1b7bd91 [22/31] xfs: parent pointer attribute creation
config: riscv-buildonly-randconfig-r004-20211111 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/allisonhenderson/xfs_work/commit/8d9e3a8a6b82326c708da...
git remote add allisonhenderson-xfs-work https://github.com/allisonhenderson/xfs_work.git
git fetch --no-tags allisonhenderson-xfs-work new_err_tags
git checkout 8d9e3a8a6b82326c708da362608f5044c1b7bd91
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 >>):
>> fs/xfs/libxfs/xfs_parent.c:55:1: error: no previous prototype for function 'xfs_init_parent_name_rec' [-Werror,-Wmissing-prototypes]
xfs_init_parent_name_rec(
^
fs/xfs/libxfs/xfs_parent.c:54:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
>> fs/xfs/libxfs/xfs_parent.c:70:1: error: no previous prototype for function 'xfs_init_parent_name_irec' [-Werror,-Wmissing-prototypes]
xfs_init_parent_name_irec(
^
fs/xfs/libxfs/xfs_parent.c:69:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
2 errors generated.
vim +/xfs_init_parent_name_rec +55 fs/xfs/libxfs/xfs_parent.c
35
36 /*
37 * Parent pointer attribute handling.
38 *
39 * Because the attribute value is a filename component, it will never be longer
40 * than 255 bytes. This means the attribute will always be a local format
41 * attribute as it is xfs_attr_leaf_entsize_local_max() for v5 filesystems will
42 * always be larger than this (max is 75% of block size).
43 *
44 * Creating a new parent attribute will always create a new attribute - there
45 * should never, ever be an existing attribute in the tree for a new inode.
46 * ENOSPC behavior is problematic - creating the inode without the parent
47 * pointer is effectively a corruption, so we allow parent attribute creation
48 * to dip into the reserve block pool to avoid unexpected ENOSPC errors from
49 * occurring.
50 */
51
52
53 /* Initializes a xfs_parent_name_rec to be stored as an attribute name */
54 void
> 55 xfs_init_parent_name_rec(
56 struct xfs_parent_name_rec *rec,
57 struct xfs_inode *ip,
58 uint32_t p_diroffset)
59 {
60 xfs_ino_t p_ino = ip->i_ino;
61 uint32_t p_gen = VFS_I(ip)->i_generation;
62
63 rec->p_ino = cpu_to_be64(p_ino);
64 rec->p_gen = cpu_to_be32(p_gen);
65 rec->p_diroffset = cpu_to_be32(p_diroffset);
66 }
67
68 /* Initializes a xfs_parent_name_irec from an xfs_parent_name_rec */
69 void
> 70 xfs_init_parent_name_irec(
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v2 bpf-next 2/2] bpf: introduce btf_tracing_ids
by kernel test robot
Hi Song,
I love your patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Song-Liu/introduce-btf_tracing_i...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: m68k-defconfig (attached as .config)
compiler: m68k-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/0day-ci/linux/commit/44d18dd3ca4645c999b4c0ec9ae232de7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Song-Liu/introduce-btf_tracing_ids/20211112-150610
git checkout 44d18dd3ca4645c999b4c0ec9ae232de79648286
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
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 >>):
kernel/bpf/task_iter.c: In function 'task_iter_init':
>> kernel/bpf/task_iter.c:655:46: warning: assignment to 'u32' {aka 'unsigned int'} from 'u32 *' {aka 'unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
655 | task_reg_info.ctx_arg_info[0].btf_id = &btf_tracing_ids[BTF_TRACING_TYPE_TASK];
| ^
kernel/bpf/task_iter.c:660:51: warning: assignment to 'u32' {aka 'unsigned int'} from 'u32 *' {aka 'unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
660 | task_file_reg_info.ctx_arg_info[0].btf_id = &btf_tracing_ids[BTF_TRACING_TYPE_TASK];
| ^
kernel/bpf/task_iter.c:661:51: warning: assignment to 'u32' {aka 'unsigned int'} from 'u32 *' {aka 'unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
661 | task_file_reg_info.ctx_arg_info[1].btf_id = &btf_tracing_ids[BTF_TRACING_TYPE_FILE];
| ^
kernel/bpf/task_iter.c:666:50: warning: assignment to 'u32' {aka 'unsigned int'} from 'u32 *' {aka 'unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
666 | task_vma_reg_info.ctx_arg_info[0].btf_id = &btf_tracing_ids[BTF_TRACING_TYPE_TASK];
| ^
kernel/bpf/task_iter.c:667:50: warning: assignment to 'u32' {aka 'unsigned int'} from 'u32 *' {aka 'unsigned int *'} makes integer from pointer without a cast [-Wint-conversion]
667 | task_vma_reg_info.ctx_arg_info[1].btf_id = &btf_tracing_ids[BTF_TRACING_TYPE_VMA];
| ^
vim +655 kernel/bpf/task_iter.c
644
645 static int __init task_iter_init(void)
646 {
647 struct mmap_unlock_irq_work *work;
648 int ret, cpu;
649
650 for_each_possible_cpu(cpu) {
651 work = per_cpu_ptr(&mmap_unlock_work, cpu);
652 init_irq_work(&work->irq_work, do_mmap_read_unlock);
653 }
654
> 655 task_reg_info.ctx_arg_info[0].btf_id = &btf_tracing_ids[BTF_TRACING_TYPE_TASK];
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
sound/pci/cmipci.c:3235:2: warning: Value stored to 'cm' is never read [clang-analyzer-deadcode.DeadStores]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6b75d88fa81b122cce37ebf17428a849ccd3d0f1
commit: 87e082ad84a7e1f022be168396ff1cb93a80c557 ALSA: cmipci: Allocate resources with device-managed APIs
date: 4 months ago
config: i386-randconfig-c001-20211012 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dcf39554dbea780d6cb7e12239451ba47a2668)
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://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 87e082ad84a7e1f022be168396ff1cb93a80c557
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
>> sound/pci/cmipci.c:3235:2: warning: Value stored to 'cm' is never read [clang-analyzer-deadcode.DeadStores]
cm = card->private_data;
^ ~~~~~~~~~~~~~~~~~~
vim +/cm +3235 sound/pci/cmipci.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 3215
e23e7a14362072 Bill Pemberton 2012-12-06 3216 static int snd_cmipci_probe(struct pci_dev *pci,
^1da177e4c3f41 Linus Torvalds 2005-04-16 3217 const struct pci_device_id *pci_id)
^1da177e4c3f41 Linus Torvalds 2005-04-16 3218 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 3219 static int dev;
2cbdb686dd8df8 Takashi Iwai 2005-11-17 3220 struct snd_card *card;
2cbdb686dd8df8 Takashi Iwai 2005-11-17 3221 struct cmipci *cm;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3222 int err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3223
^1da177e4c3f41 Linus Torvalds 2005-04-16 3224 if (dev >= SNDRV_CARDS)
^1da177e4c3f41 Linus Torvalds 2005-04-16 3225 return -ENODEV;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3226 if (! enable[dev]) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 3227 dev++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3228 return -ENOENT;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3229 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 3230
87e082ad84a7e1 Takashi Iwai 2021-07-15 3231 err = snd_devm_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE,
87e082ad84a7e1 Takashi Iwai 2021-07-15 3232 sizeof(*cm), &card);
e58de7baf7de11 Takashi Iwai 2008-12-28 3233 if (err < 0)
e58de7baf7de11 Takashi Iwai 2008-12-28 3234 return err;
87e082ad84a7e1 Takashi Iwai 2021-07-15 @3235 cm = card->private_data;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3236
^1da177e4c3f41 Linus Torvalds 2005-04-16 3237 switch (pci->device) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 3238 case PCI_DEVICE_ID_CMEDIA_CM8738:
^1da177e4c3f41 Linus Torvalds 2005-04-16 3239 case PCI_DEVICE_ID_CMEDIA_CM8738B:
^1da177e4c3f41 Linus Torvalds 2005-04-16 3240 strcpy(card->driver, "CMI8738");
^1da177e4c3f41 Linus Torvalds 2005-04-16 3241 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3242 case PCI_DEVICE_ID_CMEDIA_CM8338A:
^1da177e4c3f41 Linus Torvalds 2005-04-16 3243 case PCI_DEVICE_ID_CMEDIA_CM8338B:
^1da177e4c3f41 Linus Torvalds 2005-04-16 3244 strcpy(card->driver, "CMI8338");
^1da177e4c3f41 Linus Torvalds 2005-04-16 3245 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3246 default:
^1da177e4c3f41 Linus Torvalds 2005-04-16 3247 strcpy(card->driver, "CMIPCI");
^1da177e4c3f41 Linus Torvalds 2005-04-16 3248 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3249 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 3250
87e082ad84a7e1 Takashi Iwai 2021-07-15 3251 err = snd_cmipci_create(card, pci, dev);
e17a85eccfa0b7 Markus Elfring 2017-08-22 3252 if (err < 0)
87e082ad84a7e1 Takashi Iwai 2021-07-15 3253 return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3254
e17a85eccfa0b7 Markus Elfring 2017-08-22 3255 err = snd_card_register(card);
e17a85eccfa0b7 Markus Elfring 2017-08-22 3256 if (err < 0)
87e082ad84a7e1 Takashi Iwai 2021-07-15 3257 return err;
e17a85eccfa0b7 Markus Elfring 2017-08-22 3258
^1da177e4c3f41 Linus Torvalds 2005-04-16 3259 pci_set_drvdata(pci, card);
^1da177e4c3f41 Linus Torvalds 2005-04-16 3260 dev++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3261 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 3262 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 3263
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/media/platform/qcom/venus/core.c:377:2: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6b75d88fa81b122cce37ebf17428a849ccd3d0f1
commit: 9e8efdb5787986cc0d0134925cf5c4f001bb3f2e media: venus: core: vote for video-mem path
date: 12 months ago
config: riscv-randconfig-c006-20211001 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 962e503cc8bc411f7523cc393acae8aae425b1c4)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-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 9e8efdb5787986cc0d0134925cf5c4f001bb3f2e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
>> drivers/media/platform/qcom/venus/core.c:377:2: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage]
pm_ops->core_power(dev, POWER_ON);
^~~~~~~~~~~~~~~~~~
drivers/media/platform/qcom/venus/core.c:358:6: note: Assuming field 'core_power' is null
if (pm_ops->core_power) {
^~~~~~~~~~~~~~~~~~
drivers/media/platform/qcom/venus/core.c:358:2: note: Taking false branch
if (pm_ops->core_power) {
^
drivers/media/platform/qcom/venus/core.c:365:6: note: Assuming 'ret' is not equal to 0
if (ret)
^~~
drivers/media/platform/qcom/venus/core.c:365:2: note: Taking true branch
if (ret)
^
drivers/media/platform/qcom/venus/core.c:366:3: note: Control jumps to line 377
goto err_cpucfg_path;
^
drivers/media/platform/qcom/venus/core.c:377:2: note: Called function pointer is null (null dereference)
pm_ops->core_power(dev, POWER_ON);
^~~~~~~~~~~~~~~~~~
vim +377 drivers/media/platform/qcom/venus/core.c
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 347
eb918f915f5bdf Arnd Bergmann 2017-07-17 348 static __maybe_unused int venus_runtime_suspend(struct device *dev)
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 349 {
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 350 struct venus_core *core = dev_get_drvdata(dev);
7482a983dea3b8 Stanimir Varbanov 2019-12-05 351 const struct venus_pm_ops *pm_ops = core->pm_ops;
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 352 int ret;
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 353
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 354 ret = hfi_core_suspend(core);
7482a983dea3b8 Stanimir Varbanov 2019-12-05 355 if (ret)
7482a983dea3b8 Stanimir Varbanov 2019-12-05 356 return ret;
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 357
21926d466e3a4f Mansur Alisha Shaik 2020-10-19 358 if (pm_ops->core_power) {
21926d466e3a4f Mansur Alisha Shaik 2020-10-19 359 ret = pm_ops->core_power(dev, POWER_OFF);
07f8f22a33a9e3 Mansur Alisha Shaik 2020-04-10 360 if (ret)
07f8f22a33a9e3 Mansur Alisha Shaik 2020-04-10 361 return ret;
21926d466e3a4f Mansur Alisha Shaik 2020-10-19 362 }
07f8f22a33a9e3 Mansur Alisha Shaik 2020-04-10 363
21926d466e3a4f Mansur Alisha Shaik 2020-10-19 364 ret = icc_set_bw(core->cpucfg_path, 0, 0);
21926d466e3a4f Mansur Alisha Shaik 2020-10-19 365 if (ret)
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 366 goto err_cpucfg_path;
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 367
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 368 ret = icc_set_bw(core->video_path, 0, 0);
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 369 if (ret)
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 370 goto err_video_path;
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 371
21926d466e3a4f Mansur Alisha Shaik 2020-10-19 372 return ret;
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 373
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 374 err_video_path:
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 375 icc_set_bw(core->cpucfg_path, kbps_to_icc(1000), 0);
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 376 err_cpucfg_path:
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 @377 pm_ops->core_power(dev, POWER_ON);
9e8efdb5787986 Mansur Alisha Shaik 2020-10-19 378
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 379 return ret;
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 380 }
af2c3834c8ca7c Stanimir Varbanov 2017-06-15 381
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:2393:5: warning: no previous prototype for 'mt7915_mcu_set_fixed_rate'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: 9a93364d6595358a11d07e7f4261ae263ae2a02a mt76: mt7915: rework debugfs fixed-rate knob
date: 3 weeks ago
config: ia64-randconfig-c003-20211025 (attached as .config)
compiler: ia64-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://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 9a93364d6595358a11d07e7f4261ae263ae2a02a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64
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/net/wireless/mediatek/mt76/mt7915/mcu.c:2393:5: warning: no previous prototype for 'mt7915_mcu_set_fixed_rate' [-Wmissing-prototypes]
2393 | int mt7915_mcu_set_fixed_rate(struct mt7915_dev *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/mt7915_mcu_set_fixed_rate +2393 drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
e57b7901469fc0 Ryder Lee 2020-04-25 2392
9fac3c81eebd81 Ryder Lee 2020-04-25 @2393 int mt7915_mcu_set_fixed_rate(struct mt7915_dev *dev,
9fac3c81eebd81 Ryder Lee 2020-04-25 2394 struct ieee80211_sta *sta, u32 rate)
9fac3c81eebd81 Ryder Lee 2020-04-25 2395 {
9fac3c81eebd81 Ryder Lee 2020-04-25 2396 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv;
9fac3c81eebd81 Ryder Lee 2020-04-25 2397 struct mt7915_vif *mvif = msta->vif;
9fac3c81eebd81 Ryder Lee 2020-04-25 2398 struct sta_rec_ra_fixed *ra;
9fac3c81eebd81 Ryder Lee 2020-04-25 2399 struct sk_buff *skb;
9fac3c81eebd81 Ryder Lee 2020-04-25 2400 struct tlv *tlv;
3e68af622254ba Ryder Lee 2020-05-12 2401 int len = sizeof(struct sta_req_hdr) + sizeof(*ra);
9fac3c81eebd81 Ryder Lee 2020-04-25 2402
3e68af622254ba Ryder Lee 2020-05-12 2403 skb = mt7915_mcu_alloc_sta_req(dev, mvif, msta, len);
9fac3c81eebd81 Ryder Lee 2020-04-25 2404 if (IS_ERR(skb))
9fac3c81eebd81 Ryder Lee 2020-04-25 2405 return PTR_ERR(skb);
9fac3c81eebd81 Ryder Lee 2020-04-25 2406
9fac3c81eebd81 Ryder Lee 2020-04-25 2407 tlv = mt7915_mcu_add_tlv(skb, STA_REC_RA_UPDATE, sizeof(*ra));
9fac3c81eebd81 Ryder Lee 2020-04-25 2408 ra = (struct sta_rec_ra_fixed *)tlv;
9fac3c81eebd81 Ryder Lee 2020-04-25 2409
9fac3c81eebd81 Ryder Lee 2020-04-25 2410 if (!rate) {
9fac3c81eebd81 Ryder Lee 2020-04-25 2411 ra->field = cpu_to_le32(RATE_PARAM_AUTO);
9fac3c81eebd81 Ryder Lee 2020-04-25 2412 goto out;
9fac3c81eebd81 Ryder Lee 2020-04-25 2413 }
9fac3c81eebd81 Ryder Lee 2020-04-25 2414
4d2423326de9e9 Ryder Lee 2021-08-07 2415 ra->field = cpu_to_le32(RATE_PARAM_FIXED);
9fac3c81eebd81 Ryder Lee 2020-04-25 2416 ra->phy.type = FIELD_GET(RATE_CFG_PHY_TYPE, rate);
9fac3c81eebd81 Ryder Lee 2020-04-25 2417 ra->phy.bw = FIELD_GET(RATE_CFG_BW, rate);
9fac3c81eebd81 Ryder Lee 2020-04-25 2418 ra->phy.nss = FIELD_GET(RATE_CFG_NSS, rate);
9fac3c81eebd81 Ryder Lee 2020-04-25 2419 ra->phy.mcs = FIELD_GET(RATE_CFG_MCS, rate);
9fac3c81eebd81 Ryder Lee 2020-04-25 2420 ra->phy.stbc = FIELD_GET(RATE_CFG_STBC, rate);
9fac3c81eebd81 Ryder Lee 2020-04-25 2421
9fac3c81eebd81 Ryder Lee 2020-04-25 2422 if (ra->phy.bw)
9fac3c81eebd81 Ryder Lee 2020-04-25 2423 ra->phy.ldpc = 7;
9fac3c81eebd81 Ryder Lee 2020-04-25 2424 else
9fac3c81eebd81 Ryder Lee 2020-04-25 2425 ra->phy.ldpc = FIELD_GET(RATE_CFG_LDPC, rate) * 7;
9fac3c81eebd81 Ryder Lee 2020-04-25 2426
9fac3c81eebd81 Ryder Lee 2020-04-25 2427 /* HT/VHT - SGI: 1, LGI: 0; HE - SGI: 0, MGI: 1, LGI: 2 */
4d2423326de9e9 Ryder Lee 2021-08-07 2428 if (ra->phy.type > MT_PHY_TYPE_VHT) {
4d2423326de9e9 Ryder Lee 2021-08-07 2429 ra->phy.he_ltf = FIELD_GET(RATE_CFG_HE_LTF, rate) * 85;
4d2423326de9e9 Ryder Lee 2021-08-07 2430 ra->phy.sgi = FIELD_GET(RATE_CFG_GI, rate) * 85;
4d2423326de9e9 Ryder Lee 2021-08-07 2431 } else {
4d2423326de9e9 Ryder Lee 2021-08-07 2432 ra->phy.sgi = FIELD_GET(RATE_CFG_GI, rate) * 15;
4d2423326de9e9 Ryder Lee 2021-08-07 2433 }
9fac3c81eebd81 Ryder Lee 2020-04-25 2434
9fac3c81eebd81 Ryder Lee 2020-04-25 2435 out:
fa62d0e0080bca Felix Fietkau 2020-09-30 2436 return mt76_mcu_skb_send_msg(&dev->mt76, skb,
c203dd62178084 Felix Fietkau 2021-01-06 2437 MCU_EXT_CMD(STA_REC_UPDATE), true);
9fac3c81eebd81 Ryder Lee 2020-04-25 2438 }
9fac3c81eebd81 Ryder Lee 2020-04-25 2439
:::::: The code at line 2393 was first introduced by commit
:::::: 9fac3c81eebd81bbce8b050e15b03d3490841717 mt76: mt7915: set peer Tx fixed rate through debugfs
:::::: TO: Ryder Lee <ryder.lee(a)mediatek.com>
:::::: CC: Felix Fietkau <nbd(a)nbd.name>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[hare-scsi-devel:scsi-private.v2 12/21] drivers/scsi/aacraid/aachba.c:850:16: error: 'struct scsi_cmnd' has no member named 'scsi_done'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git scsi-private.v2
head: 915b986531e666d840f72752c597fb6b4ea69d35
commit: 3747ba8b2652333b653ce8d42cfe4c3c27fe9d6e [12/21] aacraid: store target id in host_scribble
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel scsi-private.v2
git checkout 3747ba8b2652333b653ce8d42cfe4c3c27fe9d6e
# 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=arc 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 >>):
drivers/scsi/aacraid/aachba.c: In function 'aac_probe_container':
>> drivers/scsi/aacraid/aachba.c:850:16: error: 'struct scsi_cmnd' has no member named 'scsi_done'
850 | scsicmd->scsi_done = aac_probe_container_scsi_done;
| ^~
vim +850 drivers/scsi/aacraid/aachba.c
838
839 int aac_probe_container(struct aac_dev *dev, int cid)
840 {
841 struct scsi_cmnd *scsicmd = kzalloc(sizeof(*scsicmd), GFP_KERNEL);
842 struct scsi_device *scsidev = kzalloc(sizeof(*scsidev), GFP_KERNEL);
843 int status;
844
845 if (!scsicmd || !scsidev) {
846 kfree(scsicmd);
847 kfree(scsidev);
848 return -ENOMEM;
849 }
> 850 scsicmd->scsi_done = aac_probe_container_scsi_done;
851 scsicmd->host_scribble = (unsigned char *)&cid;
852
853 scsicmd->device = scsidev;
854 scsidev->sdev_state = 0;
855 scsidev->id = cid;
856 scsidev->host = dev->scsi_host_ptr;
857
858 if (_aac_probe_container(scsicmd, aac_probe_container_callback1) == 0)
859 while (scsicmd->host_scribble == (unsigned char *)&cid)
860 schedule();
861 kfree(scsidev);
862 status = scsicmd->SCp.Status;
863 kfree(scsicmd);
864 return status;
865 }
866
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1643:6: error: no previous prototype for 'a6xx_gpu_set_freq'
by kernel test robot
Hi Dave,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5833291ab6de9c3e2374336b51c814e515e8f3a5
commit: 970eae15600a883e4ad27dd0757b18871cc983ab BackMerge tag 'v5.15-rc7' into drm-next
date: 2 weeks ago
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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://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 970eae15600a883e4ad27dd0757b18871cc983ab
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
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 >>):
>> drivers/gpu/drm/msm/adreno/a6xx_gpu.c:1643:6: error: no previous prototype for 'a6xx_gpu_set_freq' [-Werror=missing-prototypes]
1643 | void a6xx_gpu_set_freq(struct msm_gpu *gpu, struct dev_pm_opp *opp)
| ^~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/a6xx_gpu_set_freq +1643 drivers/gpu/drm/msm/adreno/a6xx_gpu.c
a2c3c0a54d4ccc Sharat Masetty 2018-10-04 1642
f6f59072e82190 Rob Clark 2021-09-27 @1643 void a6xx_gpu_set_freq(struct msm_gpu *gpu, struct dev_pm_opp *opp)
f6f59072e82190 Rob Clark 2021-09-27 1644 {
f6f59072e82190 Rob Clark 2021-09-27 1645 struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu);
f6f59072e82190 Rob Clark 2021-09-27 1646 struct a6xx_gpu *a6xx_gpu = to_a6xx_gpu(adreno_gpu);
f6f59072e82190 Rob Clark 2021-09-27 1647
f6f59072e82190 Rob Clark 2021-09-27 1648 mutex_lock(&a6xx_gpu->gmu.lock);
f6f59072e82190 Rob Clark 2021-09-27 1649 a6xx_gmu_set_freq(gpu, opp);
f6f59072e82190 Rob Clark 2021-09-27 1650 mutex_unlock(&a6xx_gpu->gmu.lock);
f6f59072e82190 Rob Clark 2021-09-27 1651 }
f6f59072e82190 Rob Clark 2021-09-27 1652
:::::: The code at line 1643 was first introduced by commit
:::::: f6f59072e821901d96c791864a07d57d8ec8d312 drm/msm/a6xx: Serialize GMU communication
:::::: TO: Rob Clark <robdclark(a)chromium.org>
:::::: CC: Rob Clark <robdclark(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week