Hi Jonathan,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net/master]
[also build test ERROR on linus/master v5.8-rc1 next-20200618]
[cannot apply to char-misc/char-misc-testing net-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Jonathan-Lemon/netgpu-networking...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git
ef7232da6bcd4294cbb2d424bc35885721570f01
config: x86_64-randconfig-s021-20200618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-10-gc17b1b06-dirty
# save the attached .config to linux build tree
make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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 >>):
In file included from <command-line>:32:
> ./usr/include/misc/shqueue.h:10:16: error: expected ':',
',', ';', '}' or '__attribute__' before
'____cacheline_aligned_in_smp'
10 | unsigned prod
____cacheline_aligned_in_smp;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./usr/include/misc/shqueue.h: In function '__sq_load_acquire_cons':
> ./usr/include/misc/shqueue.h:38:19: error: implicit declaration
of function 'READ_ONCE' [-Werror=implicit-function-declaration]
38 |
q->cached_cons = READ_ONCE(*q->cons);
| ^~~~~~~~~
./usr/include/misc/shqueue.h: In function '__sq_store_release_cons':
> ./usr/include/misc/shqueue.h:44:2: error: implicit declaration of
function 'smp_mb' [-Werror=implicit-function-declaration]
44 |
smp_mb(); /* D, matches A */
| ^~~~~~
> ./usr/include/misc/shqueue.h:45:2: error: implicit declaration of
function 'WRITE_ONCE' [-Werror=implicit-function-declaration]
45 |
WRITE_ONCE(*q->cons, q->cached_cons);
| ^~~~~~~~~~
./usr/include/misc/shqueue.h: In function '__sq_load_acquire_prod':
> ./usr/include/misc/shqueue.h:52:2: error: implicit declaration of
function 'smp_rmb' [-Werror=implicit-function-declaration]
52 |
smp_rmb(); /* C, matches B */
| ^~~~~~~
./usr/include/misc/shqueue.h: In function '__sq_store_release_prod':
> ./usr/include/misc/shqueue.h:57:2: error: implicit declaration of
function 'smp_wmb' [-Werror=implicit-function-declaration]
57 |
smp_wmb(); /* B, matches C */
| ^~~~~~~
./usr/include/misc/shqueue.h: At top level:
> ./usr/include/misc/shqueue.h:67:19: error: unknown type name
'bool'
67 | static __inline__ bool sq_empty(struct shared_queue *q)
| ^~~~
./usr/include/misc/shqueue.h:72:19: error: unknown type name 'bool'
72 | static __inline__ bool sq_cons_empty(struct shared_queue *q)
| ^~~~
./usr/include/misc/shqueue.h:90:19: error: unknown type name 'bool'
90 | static __inline__ bool sq_cons_avail(struct shared_queue *q, unsigned count)
| ^~~~
./usr/include/misc/shqueue.h: In function 'sq_cons_avail':
> ./usr/include/misc/shqueue.h:93:10: error: 'true'
undeclared (first use in this function)
93 | return true;
| ^~~~
./usr/include/misc/shqueue.h:93:10: note: each undeclared identifier is reported only
once for each function it appears in
./usr/include/misc/shqueue.h: In function 'sq_cons_peek':
> ./usr/include/misc/shqueue.h:113:11: error: 'NULL'
undeclared (first use in this function)
113 | return NULL;
| ^~~~
./usr/include/misc/shqueue.h:1:1: note: 'NULL' is defined in header
'<stddef.h>'; did you forget to '#include <stddef.h>'?
+++ |+#include <stddef.h>
1 | #pragma once
./usr/include/misc/shqueue.h: At top level:
./usr/include/misc/shqueue.h:181:19: error: unknown type name 'bool'
181 | static __inline__ bool sq_prod_avail(struct shared_queue *q, unsigned count)
| ^~~~
./usr/include/misc/shqueue.h: In function 'sq_prod_avail':
./usr/include/misc/shqueue.h:184:10: error: 'true' undeclared (first use in
this function)
184 | return true;
| ^~~~
./usr/include/misc/shqueue.h: In function 'sq_prod_reserve':
./usr/include/misc/shqueue.h:197:10: error: 'NULL' undeclared (first use in
this function)
197 | return NULL;
| ^~~~
./usr/include/misc/shqueue.h:197:10: note: 'NULL' is defined in header
'<stddef.h>'; did you forget to '#include <stddef.h>'?
cc1: some warnings being treated as errors
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org