Re: [PATCH nf-next,v2 2/3] netfilter: nftables_offload: VLAN id needs host byteorder in flow dissector
by kernel test robot
Hi Pablo,
I love your patch! Perhaps something to improve:
[auto build test WARNING on nf/master]
[also build test WARNING on nf-next/master linus/master v5.12-rc7 next-20210412]
[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/Pablo-Neira-Ayuso/netfilter-nft_...
base: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf.git master
config: microblaze-randconfig-s031-20210413 (attached as .config)
compiler: microblaze-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
# apt-get install sparse
# sparse version: v0.6.3-280-g2cd6d34e-dirty
# https://github.com/0day-ci/linux/commit/10b8731b5f73d5e52f6f2e247e7f4b33e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Pablo-Neira-Ayuso/netfilter-nft_payload-fix-C-VLAN-offload-support/20210413-021535
git checkout 10b8731b5f73d5e52f6f2e247e7f4b33e4d1ddb0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> net/netfilter/nft_cmp.c:128:31: sparse: sparse: cast to restricted __be16
>> net/netfilter/nft_cmp.c:128:31: sparse: sparse: cast to restricted __be16
>> net/netfilter/nft_cmp.c:128:31: sparse: sparse: cast to restricted __be16
>> net/netfilter/nft_cmp.c:128:31: sparse: sparse: cast to restricted __be16
>> net/netfilter/nft_cmp.c:131:31: sparse: sparse: cast to restricted __be32
>> net/netfilter/nft_cmp.c:131:31: sparse: sparse: cast to restricted __be32
>> net/netfilter/nft_cmp.c:131:31: sparse: sparse: cast to restricted __be32
>> net/netfilter/nft_cmp.c:131:31: sparse: sparse: cast to restricted __be32
>> net/netfilter/nft_cmp.c:131:31: sparse: sparse: cast to restricted __be32
>> net/netfilter/nft_cmp.c:131:31: sparse: sparse: cast to restricted __be32
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
>> net/netfilter/nft_cmp.c:134:31: sparse: sparse: cast to restricted __be64
net/netfilter/nft_cmp.c: note: in included file:
include/net/netfilter/nf_tables_core.h:53:16: sparse: sparse: incorrect type in return expression (different base types) @@ expected unsigned int @@ got restricted __le32 [usertype] @@
include/net/netfilter/nf_tables_core.h:53:16: sparse: expected unsigned int
include/net/netfilter/nf_tables_core.h:53:16: sparse: got restricted __le32 [usertype]
vim +128 net/netfilter/nft_cmp.c
122
123 static void nft_payload_n2h(union nft_cmp_offload_data *data,
124 const u8 *val, u32 len)
125 {
126 switch (len) {
127 case 2:
> 128 data->val16 = ntohs(*((u16 *)val));
129 break;
130 case 4:
> 131 data->val32 = ntohl(*((u32 *)val));
132 break;
133 case 8:
> 134 data->val64 = be64_to_cpu(*((u64 *)val));
135 break;
136 default:
137 WARN_ON_ONCE(1);
138 break;
139 }
140 }
141
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH v2 1/2] perf/core: Share an event with multiple cgroups
by kernel test robot
Hi Namhyung,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/perf/core]
[also build test ERROR on tip/master linux/master linus/master v5.12-rc7 next-20210412]
[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/Namhyung-Kim/perf-core-Sharing-e...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git cface0326a6c2ae5c8f47bd466f07624b3e348a7
config: powerpc-randconfig-r025-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/0day-ci/linux/commit/c604a61fb3cfd58be50992c8284b13e59...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Namhyung-Kim/perf-core-Sharing-events-with-multiple-cgroups/20210413-124251
git checkout c604a61fb3cfd58be50992c8284b13e598312794
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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 >>):
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:265:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^
include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^
include/linux/percpu-defs.h:259:20: note: expanded from macro 'VERIFY_PERCPU_PTR'
__verify_pcpu_ptr(__p); \
^
include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:265:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^
include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^
include/linux/percpu-defs.h:260:12: note: expanded from macro 'VERIFY_PERCPU_PTR'
(typeof(*(__p)) __kernel __force *)(__p); \
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:265:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:264:38: note: expanded from macro 'raw_cpu_ptr'
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^
include/linux/percpu-defs.h:263:65: note: expanded from macro 'per_cpu_ptr'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^
include/linux/percpu-defs.h:260:38: note: expanded from macro 'VERIFY_PERCPU_PTR'
(typeof(*(__p)) __kernel __force *)(__p); \
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:18: error: incompatible pointer types passing 'typeof (*(&cgroup_exit)) *' (aka 'void (*)(struct task_struct *)') to parameter of type 'const struct list_head *' [-Werror,-Wincompatible-pointer-types]
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:265:27: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:264:26: note: expanded from macro 'raw_cpu_ptr'
#define raw_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:263:31: note: expanded from macro 'per_cpu_ptr'
#define per_cpu_ptr(ptr, cpu) ({ (void)(cpu); VERIFY_PERCPU_PTR(ptr); })
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:280:54: note: passing argument to parameter 'head' here
static inline int list_empty(const struct list_head *head)
^
>> kernel/events/core.c:3892:6: error: implicit declaration of function 'perf_cgroup_from_task' [-Werror,-Wimplicit-function-declaration]
perf_cgroup_from_task(task, NULL) !=
^
kernel/events/core.c:3892:6: note: did you mean 'perf_cgroup_match'?
kernel/events/core.c:1057:1: note: 'perf_cgroup_match' declared here
perf_cgroup_match(struct perf_event *event)
^
>> kernel/events/core.c:5955:10: error: too many arguments to function call, expected 3, have 4
(char __user *)(arg + 16));
^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/events/core.c:2437:19: note: 'perf_event_read_cgroup_node' declared here
static inline int perf_event_read_cgroup_node(struct perf_event *event,
^
kernel/events/core.c:6981:6: warning: no previous prototype for function 'perf_pmu_snapshot_aux' [-Wmissing-prototypes]
long perf_pmu_snapshot_aux(struct perf_buffer *rb,
^
kernel/events/core.c:6981:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
long perf_pmu_snapshot_aux(struct perf_buffer *rb,
^
static
1 warning and 6 errors generated.
vim +3891 kernel/events/core.c
3851
3852 static void perf_event_switch(struct task_struct *task,
3853 struct task_struct *next_prev, bool sched_in);
3854
3855 #define for_each_task_context_nr(ctxn) \
3856 for ((ctxn) = 0; (ctxn) < perf_nr_task_contexts; (ctxn)++)
3857
3858 /*
3859 * Called from scheduler to remove the events of the current task,
3860 * with interrupts disabled.
3861 *
3862 * We stop each event and update the event value in event->count.
3863 *
3864 * This does not protect us against NMI, but disable()
3865 * sets the disabled bit in the control field of event _before_
3866 * accessing the event control register. If a NMI hits, then it will
3867 * not restart the event.
3868 */
3869 void __perf_event_task_sched_out(struct task_struct *task,
3870 struct task_struct *next)
3871 {
3872 int ctxn;
3873
3874 if (__this_cpu_read(perf_sched_cb_usages))
3875 perf_pmu_sched_task(task, next, false);
3876
3877 if (atomic_read(&nr_switch_events))
3878 perf_event_switch(task, next, false);
3879
3880 for_each_task_context_nr(ctxn)
3881 perf_event_context_sched_out(task, ctxn, next);
3882
3883 /*
3884 * if cgroup events exist on this CPU, then we need
3885 * to check if we have to switch out PMU state.
3886 * cgroup event are system-wide mode only
3887 */
3888 if (atomic_read(this_cpu_ptr(&perf_cgroup_events)))
3889 perf_cgroup_sched_out(task, next);
3890
> 3891 if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
> 3892 perf_cgroup_from_task(task, NULL) !=
3893 perf_cgroup_from_task(next, NULL))
3894 cgroup_node_sched_out(task);
3895 }
3896
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
arch/mips/boot/compressed/decompress.c:38:6: warning: no previous prototype for function 'error'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89698becf06d341a700913c3d89ce2a914af69a2
commit: 1f0400d0e2c410b04f246aefb2e9b5155eb4b0bf mips: ralink: enable zboot support
date: 6 months ago
config: mips-randconfig-r006-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 1f0400d0e2c410b04f246aefb2e9b5155eb4b0bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> arch/mips/boot/compressed/decompress.c:38:6: warning: no previous prototype for function 'error' [-Wmissing-prototypes]
void error(char *x)
^
arch/mips/boot/compressed/decompress.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void error(char *x)
^
static
In file included from arch/mips/boot/compressed/decompress.c:60:
In file included from arch/mips/boot/compressed/../../../../lib/decompress_unlz4.c:10:
>> arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:480:5: warning: no previous prototype for function 'LZ4_decompress_safe_withPrefix64k' [-Wmissing-prototypes]
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:480:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_withPrefix64k(const char *source, char *dest,
^
static
>> arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:502:5: warning: no previous prototype for function 'LZ4_decompress_safe_forceExtDict' [-Wmissing-prototypes]
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
arch/mips/boot/compressed/../../../../lib/lz4/lz4_decompress.c:502:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int LZ4_decompress_safe_forceExtDict(const char *source, char *dest,
^
static
>> arch/mips/boot/compressed/decompress.c:81:6: warning: no previous prototype for function '__stack_chk_fail' [-Wmissing-prototypes]
void __stack_chk_fail(void)
^
arch/mips/boot/compressed/decompress.c:81:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __stack_chk_fail(void)
^
static
>> arch/mips/boot/compressed/decompress.c:86:6: warning: no previous prototype for function 'decompress_kernel' [-Wmissing-prototypes]
void decompress_kernel(unsigned long boot_heap_start)
^
arch/mips/boot/compressed/decompress.c:86:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void decompress_kernel(unsigned long boot_heap_start)
^
static
5 warnings generated.
--
>> arch/mips/boot/compressed/string.c:11:7: warning: no previous prototype for function 'memcpy' [-Wmissing-prototypes]
void *memcpy(void *dest, const void *src, size_t n)
^
arch/mips/boot/compressed/string.c:11:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void *memcpy(void *dest, const void *src, size_t n)
^
static
>> arch/mips/boot/compressed/string.c:22:7: warning: no previous prototype for function 'memset' [-Wmissing-prototypes]
void *memset(void *s, int c, size_t n)
^
arch/mips/boot/compressed/string.c:22:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void *memset(void *s, int c, size_t n)
^
static
>> arch/mips/boot/compressed/string.c:32:15: warning: no previous prototype for function 'memmove' [-Wmissing-prototypes]
void * __weak memmove(void *dest, const void *src, size_t n)
^
arch/mips/boot/compressed/string.c:32:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void * __weak memmove(void *dest, const void *src, size_t n)
^
static
3 warnings generated.
--
>> arch/mips/boot/compressed/dbg.c:12:13: warning: no previous prototype for function 'putc' [-Wmissing-prototypes]
void __weak putc(char c)
^
arch/mips/boot/compressed/dbg.c:12:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak putc(char c)
^
static
>> arch/mips/boot/compressed/dbg.c:16:6: warning: no previous prototype for function 'puts' [-Wmissing-prototypes]
void puts(const char *s)
^
arch/mips/boot/compressed/dbg.c:16:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void puts(const char *s)
^
static
>> arch/mips/boot/compressed/dbg.c:26:6: warning: no previous prototype for function 'puthex' [-Wmissing-prototypes]
void puthex(unsigned long long val)
^
arch/mips/boot/compressed/dbg.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void puthex(unsigned long long val)
^
static
3 warnings generated.
vim +/error +38 arch/mips/boot/compressed/decompress.c
b8f54f2cde7886 Jonas Gorski 2016-06-20 37
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 @38 void error(char *x)
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 39 {
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 40 puts("\n\n");
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 41 puts(x);
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 42 puts("\n\n -- System halted");
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 43
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 44 while (1)
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 45 ; /* Halt */
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 46 }
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 47
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 48 /* activate the code for pre-boot environment */
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 49 #define STATIC static
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 50
4e23eb631c8409 Florian Fainelli 2013-09-11 51 #ifdef CONFIG_KERNEL_GZIP
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 52 #include "../../../../lib/decompress_inflate.c"
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 53 #endif
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 54
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 55 #ifdef CONFIG_KERNEL_BZIP2
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 56 #include "../../../../lib/decompress_bunzip2.c"
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 57 #endif
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 58
31c4867d6c7545 Florian Fainelli 2013-09-16 59 #ifdef CONFIG_KERNEL_LZ4
31c4867d6c7545 Florian Fainelli 2013-09-16 60 #include "../../../../lib/decompress_unlz4.c"
31c4867d6c7545 Florian Fainelli 2013-09-16 61 #endif
31c4867d6c7545 Florian Fainelli 2013-09-16 62
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 63 #ifdef CONFIG_KERNEL_LZMA
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 64 #include "../../../../lib/decompress_unlzma.c"
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 65 #endif
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 66
fe1d45e0865021 Wu Zhangjin 2010-01-15 67 #ifdef CONFIG_KERNEL_LZO
fe1d45e0865021 Wu Zhangjin 2010-01-15 68 #include "../../../../lib/decompress_unlzo.c"
fe1d45e0865021 Wu Zhangjin 2010-01-15 69 #endif
fe1d45e0865021 Wu Zhangjin 2010-01-15 70
4e23eb631c8409 Florian Fainelli 2013-09-11 71 #ifdef CONFIG_KERNEL_XZ
4e23eb631c8409 Florian Fainelli 2013-09-11 72 #include "../../../../lib/decompress_unxz.c"
4e23eb631c8409 Florian Fainelli 2013-09-11 73 #endif
4e23eb631c8409 Florian Fainelli 2013-09-11 74
a510b616131f85 Paul Cercueil 2020-09-01 75 #ifdef CONFIG_KERNEL_ZSTD
a510b616131f85 Paul Cercueil 2020-09-01 76 #include "../../../../lib/decompress_unzstd.c"
a510b616131f85 Paul Cercueil 2020-09-01 77 #endif
a510b616131f85 Paul Cercueil 2020-09-01 78
7bbaf27d9c8303 Huacai Chen 2018-04-05 79 const unsigned long __stack_chk_guard = 0x000a0dff;
3b628cac65fa57 Ben Chan 2014-06-24 80
3b628cac65fa57 Ben Chan 2014-06-24 @81 void __stack_chk_fail(void)
3b628cac65fa57 Ben Chan 2014-06-24 82 {
3b628cac65fa57 Ben Chan 2014-06-24 83 error("stack-protector: Kernel stack is corrupted\n");
3b628cac65fa57 Ben Chan 2014-06-24 84 }
3b628cac65fa57 Ben Chan 2014-06-24 85
1b93b3c3e94be2 Wu Zhangjin 2009-10-14 @86 void decompress_kernel(unsigned long boot_heap_start)
:::::: The code at line 38 was first introduced by commit
:::::: 1b93b3c3e94be2605759735a89fc935ba5f58dcf MIPS: Add support for GZIP / BZIP2 / LZMA compressed kernel images
:::::: TO: Wu Zhangjin <wuzhangjin(a)gmail.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[arm-integrator:kernel-in-vmalloc-v5.12-rc1 2/6] arch/arm/mm/init.c:296:13: warning: no previous prototype for 'mem_init_print_arm_info'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.12-rc1
head: 7b99ca2d1494c9431f36164db472b70852ad9bf6
commit: 678cdec93763be3599aab4ded32b5d719f2e1942 [2/6] ARM: Print virtual memory info again
config: arm-randconfig-r013-20210413 (attached as .config)
compiler: arm-linux-gnueabi-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/linusw/linux-integrator.g...
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.12-rc1
git checkout 678cdec93763be3599aab4ded32b5d719f2e1942
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm/mm/init.c:97:13: warning: no previous prototype for 'setup_dma_zone' [-Wmissing-prototypes]
97 | void __init setup_dma_zone(const struct machine_desc *mdesc)
| ^~~~~~~~~~~~~~
>> arch/arm/mm/init.c:296:13: warning: no previous prototype for 'mem_init_print_arm_info' [-Wmissing-prototypes]
296 | void __init mem_init_print_arm_info(void)
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from arch/arm/mm/init.c:7:
arch/arm/mm/init.c: In function 'mem_init_print_arm_info':
>> include/linux/kern_levels.h:5:18: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'char *' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:13:21: note: in expansion of macro 'KERN_SOH'
13 | #define KERN_NOTICE KERN_SOH "5" /* normal but significant condition */
| ^~~~~~~~
include/linux/printk.h:363:9: note: in expansion of macro 'KERN_NOTICE'
363 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
arch/arm/mm/init.c:299:2: note: in expansion of macro 'pr_notice'
299 | pr_notice("Virtual kernel memory layout:\n"
| ^~~~~~~~~
arch/arm/mm/init.c:300:26: note: format string is defined here
300 | " fixmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
| ~~~~^
| |
| long unsigned int
| %08s
In file included from include/linux/printk.h:7,
from include/linux/kernel.h:16,
from arch/arm/mm/init.c:7:
>> include/linux/kern_levels.h:5:18: warning: too many arguments for format [-Wformat-extra-args]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/kern_levels.h:13:21: note: in expansion of macro 'KERN_SOH'
13 | #define KERN_NOTICE KERN_SOH "5" /* normal but significant condition */
| ^~~~~~~~
include/linux/printk.h:363:9: note: in expansion of macro 'KERN_NOTICE'
363 | printk(KERN_NOTICE pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
arch/arm/mm/init.c:299:2: note: in expansion of macro 'pr_notice'
299 | pr_notice("Virtual kernel memory layout:\n"
| ^~~~~~~~~
In file included from arch/arm/mm/init.c:36:
At top level:
arch/arm/include/asm/fixmap.h:39:35: warning: '__end_of_fixed_addresses' defined but not used [-Wunused-const-variable=]
39 | static const enum fixed_addresses __end_of_fixed_addresses =
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/mem_init_print_arm_info +296 arch/arm/mm/init.c
295
> 296 void __init mem_init_print_arm_info(void)
297 {
298 #define MLM(b, t) b, t, ((t) - (b)) >> 20
299 pr_notice("Virtual kernel memory layout:\n"
300 " fixmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
301 " vmalloc : 0x%08lx - 0x%08lx (%4ld MB)\n"
302 " lowmem : 0x%08lx - 0x%08lx (%4ld MB)\n"
303 #ifdef CONFIG_MODULES
304 " modules : 0x%08lx - 0x%08lx (%4ld MB)\n",
305 #endif
306 " kernel : 0x%08lx - 0x%08lx (%4ld MB)\n",
307 MLM(FIXADDR_START, FIXADDR_END),
308 MLM(VMALLOC_START, VMALLOC_END),
309 MLM(PAGE_OFFSET, (unsigned long)high_memory),
310 #ifdef CONFIG_MODULES
311 MLM(MODULES_VADDR, MODULES_END),
312 #endif
313 /* From beginning of .text to end of .bss */
314 MLM((unsigned long)_text, (unsigned long)__bss_stop));
315 #undef MLM
316 }
317
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
lib/bitfield_kunit.c:93:1: warning: the frame size of 4184 bytes is larger than 2048 bytes
by kernel test robot
Hi Vitor,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 89698becf06d341a700913c3d89ce2a914af69a2
commit: d2585f5164c298aaaed14c2c8d313cbe7bd5b253 lib: kunit: add bitfield test conversion to KUnit
date: 6 months ago
config: arm-randconfig-r013-20210413 (attached as .config)
compiler: arm-linux-gnueabi-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/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 d2585f5164c298aaaed14c2c8d313cbe7bd5b253
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
lib/bitfield_kunit.c: In function 'test_bitfields_compile':
lib/bitfield_kunit.c:136:21: warning: unsigned conversion from 'int' to 'u16' {aka 'short unsigned int'} changes value from '393216' to '0' [-Woverflow]
136 | u16_encode_bits(0, 0x60000);
| ^~~~~~~
At top level:
lib/bitfield_kunit.c:129:20: warning: 'test_bitfields_compile' defined but not used [-Wunused-function]
129 | static void __init test_bitfields_compile(struct kunit *context)
| ^~~~~~~~~~~~~~~~~~~~~~
lib/bitfield_kunit.c: In function 'test_bitfields_constants':
>> lib/bitfield_kunit.c:93:1: warning: the frame size of 4184 bytes is larger than 2048 bytes [-Wframe-larger-than=]
93 | }
| ^
vim +93 lib/bitfield_kunit.c
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 10
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 11 #define CHECK_ENC_GET_U(tp, v, field, res) do { \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 12 { \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 13 u##tp _res; \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 14 \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 15 _res = u##tp##_encode_bits(v, field); \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 16 KUNIT_ASSERT_FALSE_MSG(context, _res != res, \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 17 "u" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != " #res "\n", \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 18 (u64)_res); \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 19 KUNIT_ASSERT_FALSE(context, \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 20 u##tp##_get_bits(_res, field) != v); \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 21 } \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 22 } while (0)
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 23
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 24 #define CHECK_ENC_GET_LE(tp, v, field, res) do { \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 25 { \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 26 __le##tp _res; \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 27 \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 28 _res = le##tp##_encode_bits(v, field); \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 29 KUNIT_ASSERT_FALSE_MSG(context, \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 30 _res != cpu_to_le##tp(res), \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 31 "le" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != 0x%llx",\
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 32 (u64)le##tp##_to_cpu(_res), \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 33 (u64)(res)); \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 34 KUNIT_ASSERT_FALSE(context, \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 35 le##tp##_get_bits(_res, field) != v);\
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 36 } \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 37 } while (0)
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 38
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 39 #define CHECK_ENC_GET_BE(tp, v, field, res) do { \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 40 { \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 41 __be##tp _res; \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 42 \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 43 _res = be##tp##_encode_bits(v, field); \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 44 KUNIT_ASSERT_FALSE_MSG(context, \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 45 _res != cpu_to_be##tp(res), \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 46 "be" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != 0x%llx", \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 47 (u64)be##tp##_to_cpu(_res), \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 48 (u64)(res)); \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 49 KUNIT_ASSERT_FALSE(context, \
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 50 be##tp##_get_bits(_res, field) != v);\
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 51 } \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 52 } while (0)
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 53
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 54 #define CHECK_ENC_GET(tp, v, field, res) do { \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 55 CHECK_ENC_GET_U(tp, v, field, res); \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 56 CHECK_ENC_GET_LE(tp, v, field, res); \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 57 CHECK_ENC_GET_BE(tp, v, field, res); \
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 58 } while (0)
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 59
d2585f5164c298 lib/bitfield_kunit.c Vitor Massaru Iha 2020-07-29 60 static void __init test_bitfields_constants(struct kunit *context)
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 61 {
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 62 /*
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 63 * NOTE
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 64 * This whole function compiles (or at least should, if everything
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 65 * is going according to plan) to nothing after optimisation.
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 66 */
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 67
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 68 CHECK_ENC_GET(16, 1, 0x000f, 0x0001);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 69 CHECK_ENC_GET(16, 3, 0x00f0, 0x0030);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 70 CHECK_ENC_GET(16, 5, 0x0f00, 0x0500);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 71 CHECK_ENC_GET(16, 7, 0xf000, 0x7000);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 72 CHECK_ENC_GET(16, 14, 0x000f, 0x000e);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 73 CHECK_ENC_GET(16, 15, 0x00f0, 0x00f0);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 74
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 75 CHECK_ENC_GET_U(8, 1, 0x0f, 0x01);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 76 CHECK_ENC_GET_U(8, 3, 0xf0, 0x30);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 77 CHECK_ENC_GET_U(8, 14, 0x0f, 0x0e);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 78 CHECK_ENC_GET_U(8, 15, 0xf0, 0xf0);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 79
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 80 CHECK_ENC_GET(32, 1, 0x00000f00, 0x00000100);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 81 CHECK_ENC_GET(32, 3, 0x0000f000, 0x00003000);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 82 CHECK_ENC_GET(32, 5, 0x000f0000, 0x00050000);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 83 CHECK_ENC_GET(32, 7, 0x00f00000, 0x00700000);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 84 CHECK_ENC_GET(32, 14, 0x0f000000, 0x0e000000);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 85 CHECK_ENC_GET(32, 15, 0xf0000000, 0xf0000000);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 86
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 87 CHECK_ENC_GET(64, 1, 0x00000f0000000000ull, 0x0000010000000000ull);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 88 CHECK_ENC_GET(64, 3, 0x0000f00000000000ull, 0x0000300000000000ull);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 89 CHECK_ENC_GET(64, 5, 0x000f000000000000ull, 0x0005000000000000ull);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 90 CHECK_ENC_GET(64, 7, 0x00f0000000000000ull, 0x0070000000000000ull);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 91 CHECK_ENC_GET(64, 14, 0x0f00000000000000ull, 0x0e00000000000000ull);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 92 CHECK_ENC_GET(64, 15, 0xf000000000000000ull, 0xf000000000000000ull);
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 @93 }
0e2dc70e3d0d50 lib/test_bitfield.c Johannes Berg 2018-06-20 94
:::::: The code at line 93 was first introduced by commit
:::::: 0e2dc70e3d0d503b0cc9c5f74db3eb6db52c9e22 bitfield: add tests
:::::: TO: Johannes Berg <johannes(a)sipsolutions.net>
:::::: CC: Kalle Valo <kvalo(a)codeaurora.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[jolsa-perf:bpf/ftrace 2/6] kernel/bpf/syscall.c:2931: undefined reference to `__bpf_prog_enter'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/ftrace
head: f6ca0faab8697bc6a3a6e4ffcb72b8a0a0a66558
commit: e201e5e6b442644c28e6c9a001ef2b7e4428aa51 [2/6] bpf: Add bpf ftrace link
config: x86_64-kexec (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id...
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/ftrace
git checkout e201e5e6b442644c28e6c9a001ef2b7e4428aa51
# 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: kernel/bpf/syscall.o: in function `bpf_ftrace_function_call':
>> kernel/bpf/syscall.c:2931: undefined reference to `__bpf_prog_enter'
>> ld: kernel/bpf/syscall.c:2935: undefined reference to `__bpf_prog_exit'
vim +2931 kernel/bpf/syscall.c
2919
2920 static void
2921 bpf_ftrace_function_call(unsigned long ip, unsigned long parent_ip,
2922 struct ftrace_ops *ops, struct ftrace_regs *fregs)
2923 {
2924 struct bpf_tracing_ftrace_link *tr_link;
2925 struct bpf_prog *prog;
2926 u64 start;
2927
2928 tr_link = container_of(ops, struct bpf_tracing_ftrace_link, ops);
2929 prog = tr_link->link.prog;
2930
> 2931 start = __bpf_prog_enter(prog);
2932 if (start)
2933 bpf_trace_run2(tr_link->link.prog, ip, parent_ip);
2934
> 2935 __bpf_prog_exit(prog, start);
2936 }
2937
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH v2 1/2] perf/core: Share an event with multiple cgroups
by kernel test robot
Hi Namhyung,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/perf/core]
[also build test ERROR on tip/master linux/master linus/master v5.12-rc7 next-20210412]
[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/Namhyung-Kim/perf-core-Sharing-e...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git cface0326a6c2ae5c8f47bd466f07624b3e348a7
config: arm64-randconfig-r026-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/c604a61fb3cfd58be50992c8284b13e59...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Namhyung-Kim/perf-core-Sharing-events-with-multiple-cgroups/20210413-124251
git checkout c604a61fb3cfd58be50992c8284b13e598312794
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:252:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:241:20: note: expanded from macro 'raw_cpu_ptr'
__verify_pcpu_ptr(ptr); \
^
include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:252:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:242:19: note: expanded from macro 'raw_cpu_ptr'
arch_raw_cpu_ptr(ptr); \
^
include/asm-generic/percpu.h:44:48: note: expanded from macro 'arch_raw_cpu_ptr'
#define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
^
include/linux/percpu-defs.h:231:23: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:181:31: note: expanded from macro 'RELOC_HIDE'
__ptr = (unsigned long) (ptr); \
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:252:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:242:19: note: expanded from macro 'raw_cpu_ptr'
arch_raw_cpu_ptr(ptr); \
^
include/asm-generic/percpu.h:44:48: note: expanded from macro 'arch_raw_cpu_ptr'
#define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
^
include/linux/percpu-defs.h:231:49: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:181:31: note: expanded from macro 'RELOC_HIDE'
__ptr = (unsigned long) (ptr); \
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:252:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:242:19: note: expanded from macro 'raw_cpu_ptr'
arch_raw_cpu_ptr(ptr); \
^
include/asm-generic/percpu.h:44:48: note: expanded from macro 'arch_raw_cpu_ptr'
#define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
^
include/linux/percpu-defs.h:231:23: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:182:13: note: expanded from macro 'RELOC_HIDE'
(typeof(ptr)) (__ptr + (off)); })
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:32: error: use of undeclared identifier 'cgroup_ctx_list'; did you mean 'cgroup_exit'?
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~
cgroup_exit
include/linux/percpu-defs.h:252:39: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^
include/linux/percpu-defs.h:242:19: note: expanded from macro 'raw_cpu_ptr'
arch_raw_cpu_ptr(ptr); \
^
include/asm-generic/percpu.h:44:48: note: expanded from macro 'arch_raw_cpu_ptr'
#define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
^
include/linux/percpu-defs.h:231:49: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:182:13: note: expanded from macro 'RELOC_HIDE'
(typeof(ptr)) (__ptr + (off)); })
^
include/linux/cgroup.h:130:6: note: 'cgroup_exit' declared here
void cgroup_exit(struct task_struct *p);
^
>> kernel/events/core.c:3891:18: error: incompatible pointer types passing 'typeof ((typeof (*(&cgroup_exit)) *)(&cgroup_exit))' (aka 'void (*)(struct task_struct *)') to parameter of type 'const struct list_head *' [-Werror,-Wincompatible-pointer-types]
if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:252:27: note: expanded from macro 'this_cpu_ptr'
#define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:239:31: note: expanded from macro 'raw_cpu_ptr'
#define raw_cpu_ptr(ptr) \
^
include/linux/list.h:280:54: note: passing argument to parameter 'head' here
static inline int list_empty(const struct list_head *head)
^
>> kernel/events/core.c:3892:6: error: implicit declaration of function 'perf_cgroup_from_task' [-Werror,-Wimplicit-function-declaration]
perf_cgroup_from_task(task, NULL) !=
^
kernel/events/core.c:3892:6: note: did you mean 'perf_cgroup_match'?
kernel/events/core.c:1057:1: note: 'perf_cgroup_match' declared here
perf_cgroup_match(struct perf_event *event)
^
>> kernel/events/core.c:5955:10: error: too many arguments to function call, expected 3, have 4
(char __user *)(arg + 16));
^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/events/core.c:2437:19: note: 'perf_event_read_cgroup_node' declared here
static inline int perf_event_read_cgroup_node(struct perf_event *event,
^
kernel/events/core.c:6981:6: warning: no previous prototype for function 'perf_pmu_snapshot_aux' [-Wmissing-prototypes]
long perf_pmu_snapshot_aux(struct perf_buffer *rb,
^
kernel/events/core.c:6981:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
long perf_pmu_snapshot_aux(struct perf_buffer *rb,
^
static
1 warning and 8 errors generated.
vim +3891 kernel/events/core.c
3851
3852 static void perf_event_switch(struct task_struct *task,
3853 struct task_struct *next_prev, bool sched_in);
3854
3855 #define for_each_task_context_nr(ctxn) \
3856 for ((ctxn) = 0; (ctxn) < perf_nr_task_contexts; (ctxn)++)
3857
3858 /*
3859 * Called from scheduler to remove the events of the current task,
3860 * with interrupts disabled.
3861 *
3862 * We stop each event and update the event value in event->count.
3863 *
3864 * This does not protect us against NMI, but disable()
3865 * sets the disabled bit in the control field of event _before_
3866 * accessing the event control register. If a NMI hits, then it will
3867 * not restart the event.
3868 */
3869 void __perf_event_task_sched_out(struct task_struct *task,
3870 struct task_struct *next)
3871 {
3872 int ctxn;
3873
3874 if (__this_cpu_read(perf_sched_cb_usages))
3875 perf_pmu_sched_task(task, next, false);
3876
3877 if (atomic_read(&nr_switch_events))
3878 perf_event_switch(task, next, false);
3879
3880 for_each_task_context_nr(ctxn)
3881 perf_event_context_sched_out(task, ctxn, next);
3882
3883 /*
3884 * if cgroup events exist on this CPU, then we need
3885 * to check if we have to switch out PMU state.
3886 * cgroup event are system-wide mode only
3887 */
3888 if (atomic_read(this_cpu_ptr(&perf_cgroup_events)))
3889 perf_cgroup_sched_out(task, next);
3890
> 3891 if (!list_empty(this_cpu_ptr(&cgroup_ctx_list)) &&
> 3892 perf_cgroup_from_task(task, NULL) !=
3893 perf_cgroup_from_task(next, NULL))
3894 cgroup_node_sched_out(task);
3895 }
3896
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH] kunit: add unit test for filtering suites by names
by kernel test robot
Hi Daniel,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on 1678e493d530e7977cce34e59a86bb86f3c5631e]
url: https://github.com/0day-ci/linux/commits/Daniel-Latypov/kunit-add-unit-te...
base: 1678e493d530e7977cce34e59a86bb86f3c5631e
config: microblaze-randconfig-r014-20210413 (attached as .config)
compiler: microblaze-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://github.com/0day-ci/linux/commit/756df216f1586cecdf02f278fbed232fb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Latypov/kunit-add-unit-test-for-filtering-suites-by-names/20210413-080913
git checkout 756df216f1586cecdf02f278fbed232fb25fa3f7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
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 lib/kunit/executor.c:119:
lib/kunit/executor_test.c: In function 'alloc_fake_suite':
>> lib/kunit/executor_test.c:129:2: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation]
129 | strncpy((char *)suite->name, suite_name, sizeof(suite->name));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +129 lib/kunit/executor_test.c
121
122 static struct kunit_suite *alloc_fake_suite(struct kunit *test,
123 const char *suite_name)
124 {
125 struct kunit_suite *suite;
126
127 /* We normally never expect to allocate suites, hence the non-const cast. */
128 suite = kunit_kzalloc(test, sizeof(*suite), GFP_KERNEL);
> 129 strncpy((char *)suite->name, suite_name, sizeof(suite->name));
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH v2 1/4] drm/vkms: init plane using drmm_universal_plane_alloc
by kernel test robot
Hi Melissa,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20210412]
[also build test WARNING on v5.12-rc7]
[cannot apply to linus/master v5.12-rc7 v5.12-rc6 v5.12-rc5]
[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/Melissa-Wen/drm-vkms-add-overlay...
base: 5df924d19629975d565da37eb7268c7bf4d491fe
config: csky-randconfig-r025-20210413 (attached as .config)
compiler: csky-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://github.com/0day-ci/linux/commit/0a7d24840b9dbaabf6247f940b4387a12...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Melissa-Wen/drm-vkms-add-overlay-plane-support/20210413-065337
git checkout 0a7d24840b9dbaabf6247f940b4387a120efe9a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=csky
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/gpu/drm/vkms/vkms_plane.c: In function 'vkms_plane_init':
>> drivers/gpu/drm/vkms/vkms_plane.c:197:39: warning: variable 'funcs' set but not used [-Wunused-but-set-variable]
197 | const struct drm_plane_helper_funcs *funcs;
| ^~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for LOCKDEP
Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
Selected by
- PROVE_LOCKING && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- LOCK_STAT && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
- DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT
vim +/funcs +197 drivers/gpu/drm/vkms/vkms_plane.c
42ac03213b7f10 Rodrigo Siqueira 2018-07-12 192
0a7d24840b9dba Melissa Wen 2021-04-12 193 struct vkms_plane *vkms_plane_init(struct vkms_device *vkmsdev,
e9d85f731de06a Rodrigo Siqueira 2019-06-25 194 enum drm_plane_type type, int index)
854502fa0a38dc Rodrigo Siqueira 2018-05-16 195 {
854502fa0a38dc Rodrigo Siqueira 2018-05-16 196 struct drm_device *dev = &vkmsdev->drm;
c27d931d402b51 Haneen Mohammed 2018-09-06 @197 const struct drm_plane_helper_funcs *funcs;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months