[riscv:for-next 13/13] drivers/soc/sifive/sifive_l2_cache.c:136:31: warning: no previous prototype for 'l2_get_priv_group'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git for-next
head: 4a3a37331248d85df9e05e9b1d8210dc5ec81f4e
commit: 4a3a37331248d85df9e05e9b1d8210dc5ec81f4e [13/13] riscv: Add support to determine no. of L2 cache way enabled
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.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
git checkout 4a3a37331248d85df9e05e9b1d8210dc5ec81f4e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/soc/sifive/sifive_l2_cache.c: In function 'l2_write':
drivers/soc/sifive/sifive_l2_cache.c:54:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
54 | if ((val >= 0 && val < 0xFF) || (val >= 0x10000 && val < 0x100FF))
| ^~
drivers/soc/sifive/sifive_l2_cache.c: At top level:
>> drivers/soc/sifive/sifive_l2_cache.c:136:31: warning: no previous prototype for 'l2_get_priv_group' [-Wmissing-prototypes]
136 | const struct attribute_group *l2_get_priv_group(struct cacheinfo *this_leaf)
| ^~~~~~~~~~~~~~~~~
vim +/l2_get_priv_group +136 drivers/soc/sifive/sifive_l2_cache.c
46
47 static ssize_t l2_write(struct file *file, const char __user *data,
48 size_t count, loff_t *ppos)
49 {
50 unsigned int val;
51
52 if (kstrtouint_from_user(data, count, 0, &val))
53 return -EINVAL;
> 54 if ((val >= 0 && val < 0xFF) || (val >= 0x10000 && val < 0x100FF))
55 writel(val, l2_base + SIFIVE_L2_ECCINJECTERR);
56 else
57 return -EINVAL;
58 return count;
59 }
60
61 static const struct file_operations l2_fops = {
62 .owner = THIS_MODULE,
63 .open = simple_open,
64 .write = l2_write
65 };
66
67 static void setup_sifive_debug(void)
68 {
69 sifive_test = debugfs_create_dir("sifive_l2_cache", NULL);
70
71 debugfs_create_file("sifive_debug_inject_error", 0200,
72 sifive_test, NULL, &l2_fops);
73 }
74 #endif
75
76 static void l2_config_read(void)
77 {
78 u32 regval, val;
79
80 regval = readl(l2_base + SIFIVE_L2_CONFIG);
81 val = regval & 0xFF;
82 pr_info("L2CACHE: No. of Banks in the cache: %d\n", val);
83 val = (regval & 0xFF00) >> 8;
84 pr_info("L2CACHE: No. of ways per bank: %d\n", val);
85 val = (regval & 0xFF0000) >> 16;
86 pr_info("L2CACHE: Sets per bank: %llu\n", (uint64_t)1 << val);
87 val = (regval & 0xFF000000) >> 24;
88 pr_info("L2CACHE: Bytes per cache block: %llu\n", (uint64_t)1 << val);
89
90 regval = readl(l2_base + SIFIVE_L2_WAYENABLE);
91 pr_info("L2CACHE: Index of the largest way enabled: %d\n", regval);
92 }
93
94 static const struct of_device_id sifive_l2_ids[] = {
95 { .compatible = "sifive,fu540-c000-ccache" },
96 { /* end of table */ },
97 };
98
99 static ATOMIC_NOTIFIER_HEAD(l2_err_chain);
100
101 int register_sifive_l2_error_notifier(struct notifier_block *nb)
102 {
103 return atomic_notifier_chain_register(&l2_err_chain, nb);
104 }
105 EXPORT_SYMBOL_GPL(register_sifive_l2_error_notifier);
106
107 int unregister_sifive_l2_error_notifier(struct notifier_block *nb)
108 {
109 return atomic_notifier_chain_unregister(&l2_err_chain, nb);
110 }
111 EXPORT_SYMBOL_GPL(unregister_sifive_l2_error_notifier);
112
113 static int l2_largest_wayenabled(void)
114 {
115 return readl(l2_base + SIFIVE_L2_WAYENABLE) & 0xFF;
116 }
117
118 static ssize_t number_of_ways_enabled_show(struct device *dev,
119 struct device_attribute *attr,
120 char *buf)
121 {
122 return sprintf(buf, "%u\n", l2_largest_wayenabled());
123 }
124
125 static DEVICE_ATTR_RO(number_of_ways_enabled);
126
127 static struct attribute *priv_attrs[] = {
128 &dev_attr_number_of_ways_enabled.attr,
129 NULL,
130 };
131
132 static const struct attribute_group priv_attr_group = {
133 .attrs = priv_attrs,
134 };
135
> 136 const struct attribute_group *l2_get_priv_group(struct cacheinfo *this_leaf)
137 {
138 /* We want to use private group for L2 cache only */
139 if (this_leaf->level == 2)
140 return &priv_attr_group;
141 else
142 return NULL;
143 }
144
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[RFC PATCH linux-next] drm/msm/dpu: dpu_setup_dspp_pcc() can be static
by kbuild test robot
Fixes: 4259ff7ae509 ("drm/msm/dpu: add support for pcc color block in dpu driver")
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
dpu_hw_dspp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c
index b5189cece3c66..a7a24539921f3 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c
@@ -22,7 +22,7 @@
#define PCC_BLUE_G_OFF 0x24
#define PCC_BLUE_B_OFF 0x30
-void dpu_setup_dspp_pcc(struct dpu_hw_dspp *ctx,
+static void dpu_setup_dspp_pcc(struct dpu_hw_dspp *ctx,
struct dpu_hw_pcc_cfg *cfg)
{
2 years, 4 months
Re: [PATCH 1/3] sunrpc: check that domain table is empty at module unload.
by kbuild test robot
Hi NeilBrown,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfsd/nfsd-next]
[also build test WARNING on nfs/linux-next cel/for-next v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/NeilBrown/SUNRPC-svc-fix-gss-fla...
base: git://linux-nfs.org/~bfields/linux.git nfsd-next
config: um-allmodconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from include/linux/uaccess.h:11:0,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/sunrpc/types.h:14,
from net/sunrpc/svcauth.c:15:
arch/um/include/asm/uaccess.h: In function '__access_ok':
arch/um/include/asm/uaccess.h:17:29: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
(((unsigned long) (addr) >= FIXADDR_USER_START) && ^
arch/um/include/asm/uaccess.h:45:3: note: in expansion of macro '__access_ok_vsyscall'
__access_ok_vsyscall(addr, size) ||
^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/kernel.h:11:0,
from include/linux/list.h:9,
from include/linux/module.h:12,
from net/sunrpc/svcauth.c:14:
include/asm-generic/fixmap.h: In function 'fix_to_virt':
include/asm-generic/fixmap.h:32:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
^
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
if (!(condition)) ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
include/asm-generic/fixmap.h:32:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
^~~~~~~~~~~~
net/sunrpc/svcauth.c: At top level:
>> net/sunrpc/svcauth.c:209:6: warning: no previous prototype for 'auth_domain_cleanup' [-Wmissing-prototypes]
void auth_domain_cleanup(void)
^~~~~~~~~~~~~~~~~~~
vim +/auth_domain_cleanup +209 net/sunrpc/svcauth.c
208
> 209 void auth_domain_cleanup(void)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 7639/10701] arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast to non-scalar
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: 7b364f0949ae2dd205d5e9afa4b82ee17030d928 [7639/10701] READ_ONCE: Drop pointer qualifiers when reading from scalar types
config: arm64-randconfig-s001-20200520 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout 7b364f0949ae2dd205d5e9afa4b82ee17030d928
# save the attached .config to linux build tree
make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast to non-scalar
>> arch/arm64/kernel/efi.c:88:21: sparse: sparse: cast from non-scalar
--
>> arch/arm64/mm/kasan_init.c:63:13: sparse: sparse: cast to non-scalar
>> arch/arm64/mm/kasan_init.c:63:13: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:71:24: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:71:24: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:70:24: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:70:24: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:77:13: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:77:13: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:84:54: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:84:54: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:84:24: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:84:24: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:90:22: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:90:22: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:114:54: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:114:54: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:126:54: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:126:54: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:138:54: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:138:54: sparse: sparse: cast from non-scalar
arch/arm64/mm/kasan_init.c:184:17: sparse: sparse: cast to non-scalar
arch/arm64/mm/kasan_init.c:184:17: sparse: sparse: cast from non-scalar
vim +88 arch/arm64/kernel/efi.c
f7d924894265794 Ard Biesheuvel 2015-11-30 84
8b1e0f81fb6fcf3 Anshuman Khandual 2019-07-11 85 static int __init set_permissions(pte_t *ptep, unsigned long addr, void *data)
bd264d046aad25e Ard Biesheuvel 2016-06-29 86 {
bd264d046aad25e Ard Biesheuvel 2016-06-29 87 efi_memory_desc_t *md = data;
20a004e7b017cce Will Deacon 2018-02-15 @88 pte_t pte = READ_ONCE(*ptep);
bd264d046aad25e Ard Biesheuvel 2016-06-29 89
bd264d046aad25e Ard Biesheuvel 2016-06-29 90 if (md->attribute & EFI_MEMORY_RO)
bd264d046aad25e Ard Biesheuvel 2016-06-29 91 pte = set_pte_bit(pte, __pgprot(PTE_RDONLY));
bd264d046aad25e Ard Biesheuvel 2016-06-29 92 if (md->attribute & EFI_MEMORY_XP)
bd264d046aad25e Ard Biesheuvel 2016-06-29 93 pte = set_pte_bit(pte, __pgprot(PTE_PXN));
bd264d046aad25e Ard Biesheuvel 2016-06-29 94 set_pte(ptep, pte);
bd264d046aad25e Ard Biesheuvel 2016-06-29 95 return 0;
bd264d046aad25e Ard Biesheuvel 2016-06-29 96 }
bd264d046aad25e Ard Biesheuvel 2016-06-29 97
:::::: The code at line 88 was first introduced by commit
:::::: 20a004e7b017cce282a46ac5d02c2b9c6b9bb1fa arm64: mm: Use READ_ONCE/WRITE_ONCE when accessing page tables
:::::: TO: Will Deacon <will.deacon(a)arm.com>
:::::: CC: Catalin Marinas <catalin.marinas(a)arm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH v4] i2c: Add i2c-pseudo driver for userspace I2C adapters.
by kbuild test robot
Hi Matthew,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on wsa/i2c/for-next]
[also build test WARNING on v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Matthew-Blecker/i2c-Add-i2c-pseu...
base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/i2c/i2c-pseudo.c:104: warning: "STR" redefined
104 | #define STR(num) STR_HELPER(num)
|
In file included from arch/m68k/include/asm/irqflags.h:8,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mutex.h:18,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from drivers/i2c/i2c-pseudo.c:10:
arch/m68k/include/asm/entry.h:244: note: this is the location of the previous definition
244 | #define STR(X) STR1(X)
|
drivers/i2c/i2c-pseudo.c: In function 'vanprintf':
>> drivers/i2c/i2c-pseudo.c:767:2: warning: function 'vanprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
767 | ret = vsnprintf(NULL, 0, fmt, ap);
| ^~~
drivers/i2c/i2c-pseudo.c:782:2: warning: function 'vanprintf' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
782 | ret = vsnprintf(buf, buf_size, fmt, args1);
| ^~~
drivers/i2c/i2c-pseudo.c: In function 'i2cp_cmd_set_timeout_cmd_completer':
>> drivers/i2c/i2c-pseudo.c:1838:27: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
1838 | if (cmd_data->timeout_ms < I2CP_TIMEOUT_MS_MIN ||
| ^
drivers/i2c/i2c-pseudo.c: In function 'i2cp_init':
drivers/i2c/i2c-pseudo.c:3130:17: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
3130 | if (i2cp_limit < I2CP_ADAPTERS_MIN || i2cp_limit > I2CP_ADAPTERS_MAX) {
| ^
vim +767 drivers/i2c/i2c-pseudo.c
756
757 /* vanprintf - See anprintf() documentation. */
758 static ssize_t vanprintf(char **out, ssize_t max_size, gfp_t gfp,
759 const char *fmt, va_list ap)
760 {
761 int ret;
762 ssize_t buf_size;
763 char *buf = NULL;
764 va_list args1;
765
766 va_copy(args1, ap);
> 767 ret = vsnprintf(NULL, 0, fmt, ap);
768 if (ret < 0)
769 goto fail_before_args1;
770 if (max_size >= 0 && ret > max_size) {
771 ret = -ERANGE;
772 goto fail_before_args1;
773 }
774
775 buf_size = ret + 1;
776 buf = kmalloc_track_caller(buf_size, gfp);
777 if (buf == NULL) {
778 ret = -ENOMEM;
779 goto fail_before_args1;
780 }
781
782 ret = vsnprintf(buf, buf_size, fmt, args1);
783 va_end(args1);
784 if (ret < 0)
785 goto fail_after_args1;
786 if (ret + 1 != buf_size) {
787 ret = -ENOTRECOVERABLE;
788 goto fail_after_args1;
789 }
790
791 *out = buf;
792 return ret;
793
794 fail_before_args1:
795 va_end(args1);
796 fail_after_args1:
797 kfree(buf);
798 if (ret >= 0)
799 ret = -ENOTRECOVERABLE;
800 return ret;
801 }
802
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[jlayton:ceph-fscache-iter 13/13] fs/ceph/util.c:258:2: warning: variable 'req' is uninitialized when used here
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-fscache-iter
head: dd30af9185f80cb37a460728ceea2c26464176b5
commit: dd30af9185f80cb37a460728ceea2c26464176b5 [13/13] ceph: add new allocator for combined fsc/osd request
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout dd30af9185f80cb37a460728ceea2c26464176b5
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> fs/ceph/util.c:258:2: warning: variable 'req' is uninitialized when used here [-Wuninitialized]
req->r_free = free_fsc_req;
^~~
fs/ceph/util.c:252:31: note: initialize the variable 'req' to silence this warning
struct ceph_osd_request *req;
^
= NULL
1 warning generated.
vim +/req +258 fs/ceph/util.c
235
236 /*
237 * Allocate an OSD request with an embedded fscache request.
238 */
239 struct ceph_fsc_request *ceph_fsc_new_request(struct ceph_osd_client *osdc,
240 struct ceph_file_layout *layout,
241 struct ceph_vino vino,
242 u64 off, u64 *plen,
243 unsigned int which, int num_ops,
244 int opcode, int flags,
245 struct ceph_snap_context *snapc,
246 u32 truncate_seq,
247 u64 truncate_size,
248 bool use_mempool)
249 {
250 int ret;
251 struct ceph_fsc_request *fscreq;
252 struct ceph_osd_request *req;
253
254 fscreq = kzalloc(struct_size(fscreq, osd_req.r_ops, num_ops), GFP_NOFS);
255 if (!fscreq)
256 return ERR_PTR(-ENOMEM);
257
> 258 req->r_free = free_fsc_req;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[dsahern-linux:xdp/devmap-prog 2/4] net/core/dev.c:5420:8: error: implicit declaration of function 'dev_map_can_have_prog'
by kbuild test robot
tree: https://github.com/dsahern/linux xdp/devmap-prog
head: b29da7596f8eaf356dea9b80b5271d50a2492cb7
commit: b3250f63529680518242eeaf9b12f3f97d134cdc [2/4] bpf: Add support to attach bpf program to a devmap
config: powerpc-ps3_defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout b3250f63529680518242eeaf9b12f3f97d134cdc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
net/core/dev.c: In function 'generic_xdp_install':
>> net/core/dev.c:5420:8: error: implicit declaration of function 'dev_map_can_have_prog' [-Werror=implicit-function-declaration]
5420 | if (dev_map_can_have_prog(new->aux->used_maps[i]))
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/dev_map_can_have_prog +5420 net/core/dev.c
5406
5407 static int generic_xdp_install(struct net_device *dev, struct netdev_bpf *xdp)
5408 {
5409 struct bpf_prog *old = rtnl_dereference(dev->xdp_prog);
5410 struct bpf_prog *new = xdp->prog;
5411 int ret = 0;
5412
5413 if (new) {
5414 u32 i;
5415
5416 /* generic XDP does not work with DEVMAPs that can
5417 * have a bpf_prog installed
5418 */
5419 for (i = 0; i < new->aux->used_map_cnt; i++) {
> 5420 if (dev_map_can_have_prog(new->aux->used_maps[i]))
5421 return -EINVAL;
5422 }
5423 }
5424
5425 switch (xdp->command) {
5426 case XDP_SETUP_PROG:
5427 rcu_assign_pointer(dev->xdp_prog, new);
5428 if (old)
5429 bpf_prog_put(old);
5430
5431 if (old && !new) {
5432 static_branch_dec(&generic_xdp_needed_key);
5433 } else if (new && !old) {
5434 static_branch_inc(&generic_xdp_needed_key);
5435 dev_disable_lro(dev);
5436 dev_disable_gro_hw(dev);
5437 }
5438 break;
5439
5440 case XDP_QUERY_PROG:
5441 xdp->prog_id = old ? old->aux->id : 0;
5442 break;
5443
5444 default:
5445 ret = -EINVAL;
5446 break;
5447 }
5448
5449 return ret;
5450 }
5451
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH v1 2/6] bus: mhi: core: Mark device inactive soon after host issues a shutdown
by kbuild test robot
Hi Bhaumik,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20200519]
[cannot apply to linus/master v5.7-rc6 v5.7-rc5 v5.7-rc4 v5.7-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Bhaumik-Bhatt/Bug-fixes-and-boot...
base: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/bus/mhi/core/main.c:397:8: error: implicit declaration of function 'mhi_is_active' [-Werror,-Wimplicit-function-declaration]
if (!mhi_is_active(mhi_cntrl)) {
^
1 error generated.
vim +/mhi_is_active +397 drivers/bus/mhi/core/main.c
371
372 irqreturn_t mhi_intvec_threaded_handler(int irq_number, void *priv)
373 {
374 struct mhi_controller *mhi_cntrl = priv;
375 struct device *dev = &mhi_cntrl->mhi_dev->dev;
376 enum mhi_state state = MHI_STATE_MAX;
377 enum mhi_pm_state pm_state = 0;
378 enum mhi_ee_type ee = 0;
379 bool handle_rddm = false;
380
381 write_lock_irq(&mhi_cntrl->pm_lock);
382 if (!MHI_REG_ACCESS_VALID(mhi_cntrl->pm_state)) {
383 write_unlock_irq(&mhi_cntrl->pm_lock);
384 goto exit_intvec;
385 }
386
387 state = mhi_get_mhi_state(mhi_cntrl);
388 ee = mhi_cntrl->ee;
389 mhi_cntrl->ee = mhi_get_exec_env(mhi_cntrl);
390 dev_dbg(dev, "local ee:%s device ee:%s dev_state:%s\n",
391 TO_MHI_EXEC_STR(mhi_cntrl->ee), TO_MHI_EXEC_STR(ee),
392 TO_MHI_STATE_STR(state));
393
394 /* If device supports RDDM don't bother processing SYS error */
395 if (mhi_cntrl->rddm_image) {
396 /* host may be performing a device power down already */
> 397 if (!mhi_is_active(mhi_cntrl)) {
398 write_unlock_irq(&mhi_cntrl->pm_lock);
399 goto exit_intvec;
400 }
401
402 if (mhi_cntrl->ee == MHI_EE_RDDM && mhi_cntrl->ee != ee) {
403 /* prevent clients from queueing any more packets */
404 pm_state = mhi_tryset_pm_state(mhi_cntrl,
405 MHI_PM_SYS_ERR_DETECT);
406 if (pm_state == MHI_PM_SYS_ERR_DETECT)
407 handle_rddm = true;
408 }
409
410 write_unlock_irq(&mhi_cntrl->pm_lock);
411
412 if (handle_rddm) {
413 dev_err(dev, "RDDM event occurred!\n");
414 mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_EE_RDDM);
415 wake_up_all(&mhi_cntrl->state_event);
416 }
417 goto exit_intvec;
418 }
419
420 if (state == MHI_STATE_SYS_ERR) {
421 dev_dbg(dev, "System error detected\n");
422 pm_state = mhi_tryset_pm_state(mhi_cntrl,
423 MHI_PM_SYS_ERR_DETECT);
424 }
425
426 write_unlock_irq(&mhi_cntrl->pm_lock);
427
428 if (pm_state == MHI_PM_SYS_ERR_DETECT) {
429 wake_up_all(&mhi_cntrl->state_event);
430
431 /* For fatal errors, we let controller decide next step */
432 if (MHI_IN_PBL(ee))
433 mhi_cntrl->status_cb(mhi_cntrl, MHI_CB_FATAL_ERROR);
434 else
435 mhi_pm_sys_err_handler(mhi_cntrl);
436 }
437
438 exit_intvec:
439
440 return IRQ_HANDLED;
441 }
442
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[RFC PATCH] optee: __optee_enumerate_devices() can be static
by kbuild test robot
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tee/optee/device.c b/drivers/tee/optee/device.c
index 8263b308efd56..d4931dad07aaa 100644
--- a/drivers/tee/optee/device.c
+++ b/drivers/tee/optee/device.c
@@ -87,7 +87,7 @@ static int optee_register_device(const uuid_t *device_uuid, u32 device_id)
return rc;
}
-int __optee_enumerate_devices(u32 func)
+static int __optee_enumerate_devices(u32 func)
{
const uuid_t pta_uuid =
UUID_INIT(0x7011a688, 0xddde, 0x4053,
2 years, 4 months
[arc:topic-zol-remove 44/49] arch/arc/kernel/ptrace.c:303:5: warning: no previous prototype for 'syscall_trace_enter'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-zol-remove
head: 3138fa6a1832fdb830784a9781e63d739c0fdef7
commit: 3a2e16e5162c3e5ed9b8521d0bfefe96d0462cc9 [44/49] ARC: entry: rework (non-functional)
config: arc-defconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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
git checkout 3a2e16e5162c3e5ed9b8521d0bfefe96d0462cc9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> arch/arc/kernel/ptrace.c:303:5: warning: no previous prototype for 'syscall_trace_enter' [-Wmissing-prototypes]
303 | int syscall_trace_enter(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~
arch/arc/kernel/ptrace.c:311:17: warning: no previous prototype for 'syscall_trace_exit' [-Wmissing-prototypes]
311 | asmlinkage void syscall_trace_exit(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~
vim +/syscall_trace_enter +303 arch/arc/kernel/ptrace.c
302
> 303 int syscall_trace_enter(struct pt_regs *regs)
304 {
305 if (tracehook_report_syscall_entry(regs))
306 return ULONG_MAX;
307
308 return regs->r8;
309 }
310
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months