[linux-stable-rc:linux-4.4.y 7532/9999] include/linux/compiler-gcc.h:64:28: error: implicit declaration of function 'BUILD_BUG_ON_ZERO'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head: 95a3867e897abd7811196123f81a119a75aba863
commit: 7a5c21af789d6871de3f05185e221fb7eea6804b [7532/9999] MIPS: fw: sni: Fix out of bounds init of o32 stack
config: mips-randconfig-r016-20210209 (attached as .config)
compiler: mips64-linux-gcc (GCC) 7.5.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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.4.y
git checkout 7a5c21af789d6871de3f05185e221fb7eea6804b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=mips
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 >>):
arch/mips/fw/sni/sniprom.c:67:6: warning: no previous prototype for 'prom_putchar' [-Wmissing-prototypes]
void prom_putchar(char c)
^~~~~~~~~~~~
In file included from include/linux/compiler.h:72:0,
from include/linux/linkage.h:4,
from include/linux/kernel.h:6,
from arch/mips/fw/sni/sniprom.c:12:
arch/mips/fw/sni/sniprom.c: In function 'prom_putchar':
>> include/linux/compiler-gcc.h:64:28: error: implicit declaration of function 'BUILD_BUG_ON_ZERO' [-Werror=implicit-function-declaration]
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
^
include/linux/kernel.h:54:59: note: in expansion of macro '__must_be_array'
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
^~~~~~~~~~~~~~~
arch/mips/fw/sni/sniprom.c:45:29: note: in expansion of macro 'ARRAY_SIZE'
#define O32_STK (&o32_stk[ARRAY_SIZE(o32_stk)])
^~~~~~~~~~
arch/mips/fw/sni/sniprom.c:55:62: note: in expansion of macro 'O32_STK'
#define _prom_putchar(x) __prom_putchar(___prom_putchar, O32_STK, x)
^~~~~~~
arch/mips/fw/sni/sniprom.c:69:2: note: in expansion of macro '_prom_putchar'
_prom_putchar(c);
^~~~~~~~~~~~~
arch/mips/fw/sni/sniprom.c: At top level:
arch/mips/fw/sni/sniprom.c:78:7: warning: no previous prototype for 'prom_get_hwconf' [-Wmissing-prototypes]
void *prom_get_hwconf(void)
^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/BUILD_BUG_ON_ZERO +64 include/linux/compiler-gcc.h
a1365647022eb0 Andrew Morton 2006-01-08 55
fe8c8a126806fe Cesar Eduardo Barros 2013-11-25 56 /* Make the optimizer believe the variable can be manipulated arbitrarily. */
f6d133f877c8bb Joe Perches 2015-06-25 57 #define OPTIMIZER_HIDE_VAR(var) \
f6d133f877c8bb Joe Perches 2015-06-25 58 __asm__ ("" : "=r" (var) : "0" (var))
fe8c8a126806fe Cesar Eduardo Barros 2013-11-25 59
5bd7e6a30e1eb3 KOSAKI Motohiro 2011-05-24 60 #ifdef __CHECKER__
f6d133f877c8bb Joe Perches 2015-06-25 61 #define __must_be_array(a) 0
5bd7e6a30e1eb3 KOSAKI Motohiro 2011-05-24 62 #else
c5e631cf65f4d6 Rusty Russell 2007-05-06 63 /* &a[0] degrades to a pointer: a different type from an array */
ea6b101d8a3ea4 Rusty Russell 2010-08-09 @64 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
5bd7e6a30e1eb3 KOSAKI Motohiro 2011-05-24 65 #endif
a1365647022eb0 Andrew Morton 2006-01-08 66
:::::: The code at line 64 was first introduced by commit
:::::: ea6b101d8a3ea4e1dec29df31188c2f9852296fe include/linux/compiler-gcc.h: use __same_type() in __must_be_array()
:::::: TO: Rusty Russell <rusty(a)rustcorp.com.au>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[sashal-linux-stable:queue-4.4 7/9] lib/string.c:286:29: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'int'} and 'size_t' {aka 'unsigned int'}
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.4
head: 1b1f51f356b83b52e29cb6c196b8d2c26fd6f6a9
commit: 322fc73a4c278c1ffb086f99f2e35c318d5a4baa [7/9] lib/string: Add strscpy_pad() function
config: arc-allyesconfig (attached as .config)
compiler: arceb-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
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.4
git checkout 322fc73a4c278c1ffb086f99f2e35c318d5a4baa
# 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: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
lib/string.c: In function 'strscpy_pad':
>> lib/string.c:286:29: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'int'} and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
286 | if (written < 0 || written == count - 1)
| ^~
vim +286 lib/string.c
261
262 /**
263 * strscpy_pad() - Copy a C-string into a sized buffer
264 * @dest: Where to copy the string to
265 * @src: Where to copy the string from
266 * @count: Size of destination buffer
267 *
268 * Copy the string, or as much of it as fits, into the dest buffer. The
269 * behavior is undefined if the string buffers overlap. The destination
270 * buffer is always %NUL terminated, unless it's zero-sized.
271 *
272 * If the source string is shorter than the destination buffer, zeros
273 * the tail of the destination buffer.
274 *
275 * For full explanation of why you may want to consider using the
276 * 'strscpy' functions please see the function docstring for strscpy().
277 *
278 * Return: The number of characters copied (not including the trailing
279 * %NUL) or -E2BIG if the destination buffer wasn't big enough.
280 */
281 ssize_t strscpy_pad(char *dest, const char *src, size_t count)
282 {
283 ssize_t written;
284
285 written = strscpy(dest, src, count);
> 286 if (written < 0 || written == count - 1)
287 return written;
288
289 memset(dest + written + 1, 0, count - written - 1);
290
291 return written;
292 }
293 EXPORT_SYMBOL(strscpy_pad);
294
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH v7 3/4] x509: Add support for parsing x509 certs with ECDSA keys
by kernel test robot
Hi Stefan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on cryptodev/master]
[also build test ERROR on crypto/master security/next-testing v5.11-rc7 next-20210125]
[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/Stefan-Berger/Add-support-for-x5...
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-randconfig-a011-20200911 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/6e1523b0e77785c263bcb639b87a862ae...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Stefan-Berger/Add-support-for-x509-certs-with-NIST-p256-and-p192-keys/20210201-232803
git checkout 6e1523b0e77785c263bcb639b87a862ae59731a4
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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: crypto/asymmetric_keys/public_key.o: in function `software_key_determine_akcipher':
>> crypto/asymmetric_keys/public_key.c:97: undefined reference to `parse_OID'
vim +97 crypto/asymmetric_keys/public_key.c
61
62 /*
63 * Determine the crypto algorithm name.
64 */
65 static
66 int software_key_determine_akcipher(const char *encoding,
67 const char *hash_algo,
68 const struct public_key *pkey,
69 char alg_name[CRYPTO_MAX_ALG_NAME])
70 {
71 int n;
72
73 if (strcmp(encoding, "pkcs1") == 0) {
74 /* The data wangled by the RSA algorithm is typically padded
75 * and encoded in some manner, such as EMSA-PKCS1-1_5 [RFC3447
76 * sec 8.2].
77 */
78 if (!hash_algo)
79 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME,
80 "pkcs1pad(%s)",
81 pkey->pkey_algo);
82 else
83 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME,
84 "pkcs1pad(%s,%s)",
85 pkey->pkey_algo, hash_algo);
86 return n >= CRYPTO_MAX_ALG_NAME ? -EINVAL : 0;
87 }
88
89 if (strcmp(encoding, "raw") == 0) {
90 strcpy(alg_name, pkey->pkey_algo);
91 return 0;
92 }
93
94 if (strcmp(encoding, "x962") == 0) {
95 enum OID oid;
96
> 97 if (parse_OID(pkey->params, pkey->paramlen, &oid) != 0)
98 return -EBADMSG;
99
100 switch (oid) {
101 case OID_id_prime192v1:
102 strcpy(alg_name, "ecdsa-nist-p192");
103 return 0;
104 case OID_id_prime256v1:
105 strcpy(alg_name, "ecdsa-nist-p256");
106 return 0;
107 default:
108 return -EINVAL;
109 }
110 }
111
112 return -ENOPKG;
113 }
114
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[rdma-rdma:wip/for-testing 1/1] drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: use of undeclared identifier 'rdev'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git wip/for-testing
head: a8ef74e70f50f10d741bb64757dd205318dfd9c7
commit: a8ef74e70f50f10d741bb64757dd205318dfd9c7 [1/1] Merge branch 'k.o/for-next' into k.o/wip/for-testing
config: x86_64-randconfig-a014-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git/commit/?id=...
git remote add rdma-rdma https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git
git fetch --no-tags rdma-rdma wip/for-testing
git checkout a8ef74e70f50f10d741bb64757dd205318dfd9c7
# 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 errors (new ones prefixed by >>):
>> drivers/infiniband/sw/rxe/rxe_net.c:164:26: error: use of undeclared identifier 'rdev'; did you mean 'ndev'?
if (!rxe && is_vlan_dev(rdev))
^~~~
ndev
drivers/infiniband/sw/rxe/rxe_net.c:157:21: note: 'ndev' declared here
struct net_device *ndev = skb->dev;
^
1 error generated.
vim +164 drivers/infiniband/sw/rxe/rxe_net.c
152
153 static int rxe_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
154 {
155 struct udphdr *udph;
156 struct rxe_dev *rxe;
157 struct net_device *ndev = skb->dev;
158 struct rxe_pkt_info *pkt = SKB_TO_PKT(skb);
159
160 /* takes a reference on rxe->ib_dev
161 * drop when skb is freed
162 */
163 rxe = rxe_get_dev_from_net(ndev);
> 164 if (!rxe && is_vlan_dev(rdev))
165 rxe = rxe_get_dev_from_net(vlan_dev_real_dev(ndev));
166 if (!rxe)
167 goto drop;
168
169 if (skb_linearize(skb)) {
170 pr_err("skb_linearize failed\n");
171 ib_device_put(&rxe->ib_dev);
172 goto drop;
173 }
174
175 udph = udp_hdr(skb);
176 pkt->rxe = rxe;
177 pkt->port_num = 1;
178 pkt->hdr = (u8 *)(udph + 1);
179 pkt->mask = RXE_GRH_MASK;
180 pkt->paylen = be16_to_cpu(udph->len) - sizeof(*udph);
181
182 rxe_rcv(skb);
183
184 return 0;
185 drop:
186 kfree_skb(skb);
187
188 return 0;
189 }
190
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
drivers/gpu/drm/i915/gt/intel_gtt.c:161:18: error: use of undeclared identifier 'pages'; did you mean
by kernel test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210210-181758/Chris-Wil...
head: 1f7d2908ed9121500324cfa7c81236dbf5f0d20d
commit: 1f7d2908ed9121500324cfa7c81236dbf5f0d20d drm/i915: Check for scratch page scribbling
date: 20 hours ago
config: x86_64-randconfig-a013-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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
# https://github.com/0day-ci/linux/commit/1f7d2908ed9121500324cfa7c81236dbf...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210210-181758/Chris-Wilson/drm-i915-Check-for-scratch-page-scribbling/20210210-180810
git checkout 1f7d2908ed9121500324cfa7c81236dbf5f0d20d
# 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 errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gt/intel_gtt.c:161:18: error: use of undeclared identifier 'pages'; did you mean 'page'?
set_page_dirty(pages); /* keep the poisoned contents */
^~~~~
page
drivers/gpu/drm/i915/gt/intel_gtt.c:149:15: note: 'page' declared here
struct page *page;
^
1 error generated.
vim +161 drivers/gpu/drm/i915/gt/intel_gtt.c
145
146 static void poison_scratch_page(struct drm_i915_gem_object *scratch)
147 {
148 struct sgt_iter sgt;
149 struct page *page;
150 u8 val;
151
152 val = 0;
153 if (IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
154 val = POISON_FREE;
155
156 for_each_sgt_page(page, sgt, scratch->mm.pages) {
157 void *vaddr;
158
159 vaddr = kmap(page);
160 memset(vaddr, val, PAGE_SIZE);
> 161 set_page_dirty(pages); /* keep the poisoned contents */
162 kunmap(page);
163 }
164 }
165
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-stable-rc:linux-4.19.y 2158/3140] arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: 54354bc5e2a599518c25769b56d76eabe94e67c9
commit: 31ebc2fe02df202566d0e36c1106b4902d6e2f8c [2158/3140] powerpc/64s: flush L1D after user accesses
config: powerpc64-randconfig-r032-20210209 (attached as .config)
compiler: powerpc64le-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
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout 31ebc2fe02df202566d0e36c1106b4902d6e2f8c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:24,
from arch/powerpc/include/asm/book3s/64/mmu.h:30,
from arch/powerpc/include/asm/mmu.h:313,
from arch/powerpc/include/asm/lppaca.h:36,
from arch/powerpc/include/asm/paca.h:21,
from arch/powerpc/include/asm/hw_irq.h:64,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/linux/spinlock.h:54,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/compat.h:12,
from arch/powerpc/kernel/asm-offsets.c:16:
arch/powerpc/include/asm/book3s/64/pgtable.h:1292:15: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
1292 | static inline const int pud_pfn(pud_t pud)
| ^~~~~
In file included from arch/powerpc/include/asm/kup.h:10,
from arch/powerpc/include/asm/uaccess.h:9,
from include/linux/uaccess.h:14,
from include/linux/compat.h:19,
from arch/powerpc/kernel/asm-offsets.c:16:
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: warning: data definition has no type or storage class
5 | DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int]
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: warning: parameter names (without types) in function declaration
arch/powerpc/include/asm/book3s/64/kup-radix.h: In function 'prevent_user_access':
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:18:6: error: implicit declaration of function 'static_branch_unlikely' [-Werror=implicit-function-declaration]
18 | if (static_branch_unlikely(&uaccess_flush_key))
| ^~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: error: 'uaccess_flush_key' undeclared (first use in this function)
18 | if (static_branch_unlikely(&uaccess_flush_key))
| ^~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
--
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:24,
from arch/powerpc/include/asm/book3s/64/mmu.h:30,
from arch/powerpc/include/asm/mmu.h:313,
from arch/powerpc/include/asm/lppaca.h:36,
from arch/powerpc/include/asm/paca.h:21,
from arch/powerpc/include/asm/hw_irq.h:64,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/linux/spinlock.h:54,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/compat.h:12,
from arch/powerpc/kernel/asm-offsets.c:16:
arch/powerpc/include/asm/book3s/64/pgtable.h:1292:15: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
1292 | static inline const int pud_pfn(pud_t pud)
| ^~~~~
In file included from arch/powerpc/include/asm/kup.h:10,
from arch/powerpc/include/asm/uaccess.h:9,
from include/linux/uaccess.h:14,
from include/linux/compat.h:19,
from arch/powerpc/kernel/asm-offsets.c:16:
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: warning: data definition has no type or storage class
5 | DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: error: type defaults to 'int' in declaration of 'DECLARE_STATIC_KEY_FALSE' [-Werror=implicit-int]
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:5:1: warning: parameter names (without types) in function declaration
arch/powerpc/include/asm/book3s/64/kup-radix.h: In function 'prevent_user_access':
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:18:6: error: implicit declaration of function 'static_branch_unlikely' [-Werror=implicit-function-declaration]
18 | if (static_branch_unlikely(&uaccess_flush_key))
| ^~~~~~~~~~~~~~~~~~~~~~
>> arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: error: 'uaccess_flush_key' undeclared (first use in this function)
18 | if (static_branch_unlikely(&uaccess_flush_key))
| ^~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/book3s/64/kup-radix.h:18:30: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [./Kbuild:56: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1123: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:146: sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +5 arch/powerpc/include/asm/book3s/64/kup-radix.h
4
> 5 DECLARE_STATIC_KEY_FALSE(uaccess_flush_key);
6
7 /* Prototype for function defined in exceptions-64s.S */
8 void do_uaccess_flush(void);
9
10 static __always_inline void allow_user_access(void __user *to, const void __user *from,
11 unsigned long size)
12 {
13 }
14
15 static inline void prevent_user_access(void __user *to, const void __user *from,
16 unsigned long size)
17 {
> 18 if (static_branch_unlikely(&uaccess_flush_key))
19 do_uaccess_flush();
20 }
21
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[snitzer:wip 30/30] drivers/md/dm-flakey.c:487:3: error: 'struct target_type' has no member named 'report_zones'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git wip
head: 7defd0da9dd27ae6261617d0518d8b6c421703d1
commit: 7defd0da9dd27ae6261617d0518d8b6c421703d1 [30/30] dm: simplify target code conditional on CONFIG_BLK_DEV_ZONED
config: x86_64-randconfig-s022-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/commit/...
git remote add snitzer https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git
git fetch --no-tags snitzer wip
git checkout 7defd0da9dd27ae6261617d0518d8b6c421703d1
# 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>
All errors (new ones prefixed by >>):
>> drivers/md/dm-flakey.c:487:3: error: 'struct target_type' has no member named 'report_zones'
487 | .report_zones = flakey_report_zones,
| ^~~~~~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from include/linux/export.h:43,
from include/linux/linkage.h:7,
from include/linux/fs.h:5,
from include/linux/highmem.h:5,
from include/linux/bio.h:8,
from include/linux/device-mapper.h:11,
from drivers/md/dm-flakey.c:8:
include/linux/stddef.h:8:14: warning: initialized field overwritten [-Woverride-init]
8 | #define NULL ((void *)0)
| ^
drivers/md/dm-flakey.c:473:29: note: in expansion of macro 'NULL'
473 | #define flakey_report_zones NULL
| ^~~~
drivers/md/dm-flakey.c:487:18: note: in expansion of macro 'flakey_report_zones'
487 | .report_zones = flakey_report_zones,
| ^~~~~~~~~~~~~~~~~~~
include/linux/stddef.h:8:14: note: (near initialization for 'flakey_target.name')
8 | #define NULL ((void *)0)
| ^
drivers/md/dm-flakey.c:473:29: note: in expansion of macro 'NULL'
473 | #define flakey_report_zones NULL
| ^~~~
drivers/md/dm-flakey.c:487:18: note: in expansion of macro 'flakey_report_zones'
487 | .report_zones = flakey_report_zones,
| ^~~~~~~~~~~~~~~~~~~
vim +487 drivers/md/dm-flakey.c
3407ef5262b55c Josef Bacik 2011-03-24 482
3407ef5262b55c Josef Bacik 2011-03-24 483 static struct target_type flakey_target = {
3407ef5262b55c Josef Bacik 2011-03-24 484 .name = "flakey",
124c44546d0cbf Damien Le Moal 2017-05-08 485 .version = {1, 5, 0},
7e28f37ea16671 Satya Tangirala 2021-02-01 486 .features = DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
e76239a3748c90 Christoph Hellwig 2018-10-12 @487 .report_zones = flakey_report_zones,
3407ef5262b55c Josef Bacik 2011-03-24 488 .module = THIS_MODULE,
3407ef5262b55c Josef Bacik 2011-03-24 489 .ctr = flakey_ctr,
3407ef5262b55c Josef Bacik 2011-03-24 490 .dtr = flakey_dtr,
3407ef5262b55c Josef Bacik 2011-03-24 491 .map = flakey_map,
a3998799fb4df0 Mike Snitzer 2011-08-02 492 .end_io = flakey_end_io,
3407ef5262b55c Josef Bacik 2011-03-24 493 .status = flakey_status,
e56f81e0b01ef4 Christoph Hellwig 2015-10-15 494 .prepare_ioctl = flakey_prepare_ioctl,
3407ef5262b55c Josef Bacik 2011-03-24 495 .iterate_devices = flakey_iterate_devices,
3407ef5262b55c Josef Bacik 2011-03-24 496 };
3407ef5262b55c Josef Bacik 2011-03-24 497
:::::: The code at line 487 was first introduced by commit
:::::: e76239a3748c90a8b0e197f8f4544a8ce52f126e block: add a report_zones method
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months