Re: [PATCH v3 04/16] drm/connector: Fix typo in output format
by kernel test robot
Hi Maxime,
I love your patch! Yet something to improve:
[auto build test ERROR on drm/drm-next]
[also build test ERROR on drm-intel/for-linux-next v5.16 next-20220113]
[cannot apply to anholt/for-next]
[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/Maxime-Ripard/drm-vc4-hdmi-Yet-A...
base: git://anongit.freedesktop.org/drm/drm drm-next
config: csky-allmodconfig (https://download.01.org/0day-ci/archive/20220114/202201140436.WlQxR5wG-lk...)
compiler: csky-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/52bba93426db6667839f3b01a759ad908...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Maxime-Ripard/drm-vc4-hdmi-Yet-Another-Approach-to-HDMI-YUV-output/20220113-221035
git checkout 52bba93426db6667839f3b01a759ad9084127008
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash drivers/gpu/drm/rockchip/
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/rockchip/analogix_dp-rockchip.c: In function 'rockchip_dp_get_modes':
>> drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:120:48: error: 'DRM_COLOR_FORMAT_YCRCB422' undeclared (first use in this function); did you mean 'DRM_COLOR_FORMAT_YCBCR422'?
120 | u32 mask = DRM_COLOR_FORMAT_YCBCR444 | DRM_COLOR_FORMAT_YCRCB422;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| DRM_COLOR_FORMAT_YCBCR422
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:120:48: note: each undeclared identifier is reported only once for each function it appears in
vim +120 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
114
115 static int rockchip_dp_get_modes(struct analogix_dp_plat_data *plat_data,
116 struct drm_connector *connector)
117 {
118 struct drm_display_info *di = &connector->display_info;
119 /* VOP couldn't output YUV video format for eDP rightly */
> 120 u32 mask = DRM_COLOR_FORMAT_YCBCR444 | DRM_COLOR_FORMAT_YCRCB422;
121
122 if ((di->color_formats & mask)) {
123 DRM_DEBUG_KMS("Swapping display color format from YUV to RGB\n");
124 di->color_formats &= ~mask;
125 di->color_formats |= DRM_COLOR_FORMAT_RGB444;
126 di->bpc = 8;
127 }
128
129 return 0;
130 }
131
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mark:treewide/gnu99 2/2] arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git treewide/gnu99
head: 4c56f3c557cbc276326c329e05f64a53398affec
commit: 4c56f3c557cbc276326c329e05f64a53398affec [2/2] treewide: use -std=gnu99
config: arc-randconfig-r033-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140413.8kgvmUzA-lk...)
compiler: arc-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id...
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark treewide/gnu99
git checkout 4c56f3c557cbc276326c329e05f64a53398affec
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash arch/arc/kernel/
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 arch/arc/kernel/disasm.c:13:
arch/arc/kernel/disasm.c: In function 'disasm_instr':
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:50:47: note: in expansion of macro 'BITS'
50 | #define FIELD_s25(word) sign_extend(((BITS(word, 0, 3) << 21) | \
| ^~~~
arch/arc/kernel/disasm.c:73:25: note: in expansion of macro 'FIELD_s25'
73 | FIELD_s25(state->words[0]) :
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:51:42: note: in expansion of macro 'BITS'
51 | (BITS(word, 6, 15) << 11) | \
| ^~~~
arch/arc/kernel/disasm.c:73:25: note: in expansion of macro 'FIELD_s25'
73 | FIELD_s25(state->words[0]) :
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:52:42: note: in expansion of macro 'BITS'
52 | (BITS(word, 17, 26) << 1)), 12)
| ^~~~
arch/arc/kernel/disasm.c:73:25: note: in expansion of macro 'FIELD_s25'
73 | FIELD_s25(state->words[0]) :
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:48:47: note: in expansion of macro 'BITS'
48 | #define FIELD_s21(word) sign_extend(((BITS(word, 6, 15) << 11) | \
| ^~~~
arch/arc/kernel/disasm.c:74:25: note: in expansion of macro 'FIELD_s21'
74 | FIELD_s21(state->words[0]);
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:49:42: note: in expansion of macro 'BITS'
49 | (BITS(word, 17, 26) << 1)), 12)
| ^~~~
arch/arc/kernel/disasm.c:74:25: note: in expansion of macro 'FIELD_s21'
74 | FIELD_s21(state->words[0]);
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:50:47: note: in expansion of macro 'BITS'
50 | #define FIELD_s25(word) sign_extend(((BITS(word, 0, 3) << 21) | \
| ^~~~
arch/arc/kernel/disasm.c:86:34: note: in expansion of macro 'FIELD_s25'
86 | (FIELD_s25(state->words[0]) & ~0x3) :
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:51:42: note: in expansion of macro 'BITS'
51 | (BITS(word, 6, 15) << 11) | \
| ^~~~
arch/arc/kernel/disasm.c:86:34: note: in expansion of macro 'FIELD_s25'
86 | (FIELD_s25(state->words[0]) & ~0x3) :
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:52:42: note: in expansion of macro 'BITS'
52 | (BITS(word, 17, 26) << 1)), 12)
| ^~~~
arch/arc/kernel/disasm.c:86:34: note: in expansion of macro 'FIELD_s25'
86 | (FIELD_s25(state->words[0]) & ~0x3) :
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:48:47: note: in expansion of macro 'BITS'
48 | #define FIELD_s21(word) sign_extend(((BITS(word, 6, 15) << 11) | \
| ^~~~
arch/arc/kernel/disasm.c:87:33: note: in expansion of macro 'FIELD_s21'
87 | FIELD_s21(state->words[0]);
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:49:42: note: in expansion of macro 'BITS'
49 | (BITS(word, 17, 26) << 1)), 12)
| ^~~~
arch/arc/kernel/disasm.c:87:33: note: in expansion of macro 'FIELD_s21'
87 | FIELD_s21(state->words[0]);
| ^~~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:46:47: note: in expansion of macro 'BITS'
46 | #define FIELD_s9(word) sign_extend(((BITS(word, 15, 15) << 8) | \
| ^~~~
arch/arc/kernel/disasm.c:92:34: note: in expansion of macro 'FIELD_s9'
92 | fieldA = FIELD_s9(state->words[0]) & ~0x3;
| ^~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:47:41: note: in expansion of macro 'BITS'
47 | BITS(word, 16, 23)), 9)
| ^~~~
arch/arc/kernel/disasm.c:92:34: note: in expansion of macro 'FIELD_s9'
92 | fieldA = FIELD_s9(state->words[0]) & ~0x3;
| ^~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:103:29: note: in expansion of macro 'BITS'
103 | state->di = BITS(state->words[0], 11, 11);
| ^~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:106:28: note: in expansion of macro 'BITS'
106 | state->x = BITS(state->words[0], 6, 6);
| ^~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:107:29: note: in expansion of macro 'BITS'
107 | state->zz = BITS(state->words[0], 7, 8);
| ^~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:108:29: note: in expansion of macro 'BITS'
108 | state->aa = BITS(state->words[0], 9, 10);
| ^~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:37:35: note: in expansion of macro 'BITS'
37 | #define FIELD_B(word) ((BITS((word), 12, 14)<<3) | \
| ^~~~
arch/arc/kernel/disasm.c:109:33: note: in expansion of macro 'FIELD_B'
109 | state->wb_reg = FIELD_B(state->words[0]);
| ^~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:38:34: note: in expansion of macro 'BITS'
38 | (BITS((word), 24, 26)))
| ^~~~
arch/arc/kernel/disasm.c:109:33: note: in expansion of macro 'FIELD_B'
109 | state->wb_reg = FIELD_B(state->words[0]);
| ^~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:46:47: note: in expansion of macro 'BITS'
46 | #define FIELD_s9(word) sign_extend(((BITS(word, 15, 15) << 8) | \
| ^~~~
arch/arc/kernel/disasm.c:117:31: note: in expansion of macro 'FIELD_s9'
117 | state->src2 = FIELD_s9(state->words[0]);
| ^~~~~~~~
>> arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:47:41: note: in expansion of macro 'BITS'
47 | BITS(word, 16, 23)), 9)
| ^~~~
arch/arc/kernel/disasm.c:117:31: note: in expansion of macro 'FIELD_s9'
117 | state->src2 = FIELD_s9(state->words[0]);
| ^~~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:36:34: note: in expansion of macro 'BITS'
36 | #define FIELD_A(word) (BITS((word), 0, 5))
| ^~~~
arch/arc/kernel/disasm.c:118:31: note: in expansion of macro 'FIELD_A'
118 | state->dest = FIELD_A(state->words[0]);
| ^~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:124:29: note: in expansion of macro 'BITS'
124 | state->di = BITS(state->words[0], 5, 5);
| ^~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:127:29: note: in expansion of macro 'BITS'
127 | state->aa = BITS(state->words[0], 3, 4);
| ^~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:128:29: note: in expansion of macro 'BITS'
128 | state->zz = BITS(state->words[0], 1, 2);
| ^~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:39:34: note: in expansion of macro 'BITS'
39 | #define FIELD_C(word) (BITS((word), 6, 11))
| ^~~~
arch/arc/kernel/disasm.c:129:31: note: in expansion of macro 'FIELD_C'
129 | state->src1 = FIELD_C(state->words[0]);
| ^~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:37:35: note: in expansion of macro 'BITS'
37 | #define FIELD_B(word) ((BITS((word), 12, 14)<<3) | \
| ^~~~
arch/arc/kernel/disasm.c:136:33: note: in expansion of macro 'FIELD_B'
136 | state->wb_reg = FIELD_B(state->words[0]);
| ^~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:38:34: note: in expansion of macro 'BITS'
38 | (BITS((word), 24, 26)))
| ^~~~
arch/arc/kernel/disasm.c:136:33: note: in expansion of macro 'FIELD_B'
136 | state->wb_reg = FIELD_B(state->words[0]);
| ^~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:46:47: note: in expansion of macro 'BITS'
46 | #define FIELD_s9(word) sign_extend(((BITS(word, 15, 15) << 8) | \
| ^~~~
arch/arc/kernel/disasm.c:144:31: note: in expansion of macro 'FIELD_s9'
144 | state->src3 = FIELD_s9(state->words[0]);
| ^~~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:47:41: note: in expansion of macro 'BITS'
47 | BITS(word, 16, 23)), 9)
| ^~~~
arch/arc/kernel/disasm.c:144:31: note: in expansion of macro 'FIELD_s9'
144 | state->src3 = FIELD_s9(state->words[0]);
| ^~~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:35:34: note: in expansion of macro 'BITS'
35 | #define MINOR_OPCODE(word) (BITS((word), 16, 21))
| ^~~~
arch/arc/kernel/disasm.c:148:29: note: in expansion of macro 'MINOR_OPCODE'
148 | subopcode = MINOR_OPCODE(state->words[0]);
| ^~~~~~~~~~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/kernel/disasm.c:163:37: note: in expansion of macro 'BITS'
163 | op_format = BITS(state->words[0], 22, 23);
| ^~~~
arch/arc/include/asm/disasm.h:32:60: warning: left shift of negative value [-Wshift-negative-value]
32 | #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
| ^~
arch/arc/include/asm/disasm.h:39:34: note: in expansion of macro 'BITS'
39 | #define FIELD_C(word) (BITS((word), 6, 11))
vim +32 arch/arc/include/asm/disasm.h
e65ab5a875d9e8 Vineet Gupta 2013-01-30 30
e65ab5a875d9e8 Vineet Gupta 2013-01-30 31 #define IS_BIT(word, n) ((word) & (1<<n))
e65ab5a875d9e8 Vineet Gupta 2013-01-30 @32 #define BITS(word, s, e) (((word) >> (s)) & (~((-2) << ((e) - (s)))))
e65ab5a875d9e8 Vineet Gupta 2013-01-30 33
:::::: The code at line 32 was first introduced by commit
:::::: e65ab5a875d9e8ad8ff37529c2ae844699fefad1 ARC: disassembly (needed by kprobes/kgdb/unaligned-access-emul)
:::::: TO: Vineet Gupta <vgupta(a)synopsys.com>
:::::: CC: Vineet Gupta <vgupta(a)synopsys.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[intel-tdx:tdx/guest-rebased 104/133] arch/x86/kernel/tdx.c:508:14: warning: no previous prototype for 'tdx_write_msr'
by kernel test robot
tree: https://github.com/intel/tdx.git tdx/guest-rebased
head: e3995864d37c56f431c93fc3dc454d9c65f5e9ea
commit: 95bf288c8d7a4e30ca710931bfb0deb2a6f020e7 [104/133] x86/tdx: Use direct paravirt call for wrmsrl
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220114/202201140330.80EFnRRg-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/95bf288c8d7a4e30ca710931bfb0deb2a6f020e7
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx tdx/guest-rebased
git checkout 95bf288c8d7a4e30ca710931bfb0deb2a6f020e7
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/
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/x86/kernel/tdx.c:267:5: warning: no previous prototype for 'tdx_hcall_set_notify_intr' [-Wmissing-prototypes]
267 | int tdx_hcall_set_notify_intr(u8 vector)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/tdx.c:508:14: warning: no previous prototype for 'tdx_write_msr' [-Wmissing-prototypes]
508 | void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
| ^~~~~~~~~~~~~
vim +/tdx_write_msr +508 arch/x86/kernel/tdx.c
507
> 508 void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
509 {
510 if (tdx_fast_tdcall_path_msr(msr))
511 __tdx_write_msr(msr, low, high);
512 else
513 native_write_msr(msr, low, high);
514 }
515
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[intel-tdx:tdx/guest-rebased 105/133] kernel/dma/swiotlb.c:320:14: warning: incompatible integer to pointer conversion assigning to 'unsigned long *' from 'int'
by kernel test robot
tree: https://github.com/intel/tdx.git tdx/guest-rebased
head: e3995864d37c56f431c93fc3dc454d9c65f5e9ea
commit: 64f46677f0bd4db290a0c6be857c6fd8db39324b [105/133] swiotlb: use bitmap to track free slots
config: s390-randconfig-r033-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140332.Rabd9rIb-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d1021978b8e7e35dcc30201ca1731d64b5a602a8)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
# https://github.com/intel/tdx/commit/64f46677f0bd4db290a0c6be857c6fd8db39324b
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx tdx/guest-rebased
git checkout 64f46677f0bd4db290a0c6be857c6fd8db39324b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash kernel/dma/
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 kernel/dma/swiotlb.c:24:
In file included from include/linux/dma-direct.h:9:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:36:59: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x))
^
include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16'
#define __swab16(x) (__u16)__builtin_bswap16((__u16)(x))
^
In file included from kernel/dma/swiotlb.c:24:
In file included from include/linux/dma-direct.h:9:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32'
#define __swab32(x) (__u32)__builtin_bswap32((__u32)(x))
^
In file included from kernel/dma/swiotlb.c:24:
In file included from include/linux/dma-direct.h:9:
In file included from include/linux/dma-mapping.h:10:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:75:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
kernel/dma/swiotlb.c:320:16: error: implicit declaration of function 'kzalloc' [-Werror,-Wimplicit-function-declaration]
mem->bitmap = kzalloc(DIV_ROUND_UP(nslabs, BITS_PER_BYTE), GFP_KERNEL);
^
kernel/dma/swiotlb.c:320:16: note: did you mean 'vzalloc'?
include/linux/vmalloc.h:140:14: note: 'vzalloc' declared here
extern void *vzalloc(unsigned long size) __alloc_size(1);
^
>> kernel/dma/swiotlb.c:320:14: warning: incompatible integer to pointer conversion assigning to 'unsigned long *' from 'int' [-Wint-conversion]
mem->bitmap = kzalloc(DIV_ROUND_UP(nslabs, BITS_PER_BYTE), GFP_KERNEL);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/dma/swiotlb.c:324:3: error: implicit declaration of function 'kfree' [-Werror,-Wimplicit-function-declaration]
kfree(mem->bitmap);
^
kernel/dma/swiotlb.c:324:3: note: did you mean 'vfree'?
include/linux/vmalloc.h:155:13: note: 'vfree' declared here
extern void vfree(const void *addr);
^
13 warnings and 2 errors generated.
vim +320 kernel/dma/swiotlb.c
306
307 int
308 swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs)
309 {
310 struct io_tlb_mem *mem = &io_tlb_default_mem;
311 unsigned long bytes = nslabs << IO_TLB_SHIFT;
312
313 if (swiotlb_force == SWIOTLB_NO_FORCE)
314 return 0;
315
316 /* protect against double initialization */
317 if (WARN_ON_ONCE(mem->nslabs))
318 return -ENOMEM;
319
> 320 mem->bitmap = kzalloc(DIV_ROUND_UP(nslabs, BITS_PER_BYTE), GFP_KERNEL);
321 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO,
322 get_order(array_size(sizeof(*mem->slots), nslabs)));
323 if (!mem->slots || !mem->bitmap) {
324 kfree(mem->bitmap);
325 kfree(mem->slots);
326 return -ENOMEM;
327 }
328
329 set_memory_decrypted((unsigned long)tlb, bytes >> PAGE_SHIFT);
330 swiotlb_init_io_tlb_mem(mem, virt_to_phys(tlb), nslabs, true);
331
332 swiotlb_print_info();
333 swiotlb_set_max_segment(mem->nslabs << IO_TLB_SHIFT);
334 return 0;
335 }
336
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [RFC v2] perf: Rewrite core context handling
by kernel test robot
Hi Ravi,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/perf/core]
[also build test WARNING on powerpc/next tip/sched/core v5.16 next-20220113]
[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/Ravi-Bangoria/perf-Rewrite-core-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a9f4a6e92b3b319296fb078da2615f618f6cd80c
config: i386-randconfig-s001 (https://download.01.org/0day-ci/archive/20220114/202201140347.ue2Ckk9k-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/f7cf7134e405062bf0f22c3ba5637241c...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ravi-Bangoria/perf-Rewrite-core-context-handling/20220113-215022
git checkout f7cf7134e405062bf0f22c3ba5637241c4c4d06a
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash kernel/events/
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 >>)
kernel/events/core.c:1440:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:1440:15: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:1440:15: sparse: struct perf_event_context *
kernel/events/core.c:1453:28: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:1453:28: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:1453:28: sparse: struct perf_event_context *
kernel/events/core.c:3478:20: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:3478:20: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:3478:20: sparse: struct perf_event_context *
kernel/events/core.c:3482:18: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:3482:18: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:3482:18: sparse: struct perf_event_context *
kernel/events/core.c:3483:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:3483:23: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:3483:23: sparse: struct perf_event_context *
kernel/events/core.c:3520:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:3520:25: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:3520:25: sparse: struct perf_event_context *
kernel/events/core.c:3521:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:3521:25: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:3521:25: sparse: struct perf_event_context *
kernel/events/core.c:3930:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:3930:15: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:3930:15: sparse: struct perf_event_context *
kernel/events/core.c:4334:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:4334:15: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:4334:15: sparse: struct perf_event_context *
kernel/events/core.c:4807:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:4807:25: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:4807:25: sparse: struct perf_event_context *
>> kernel/events/core.c:4826:31: sparse: sparse: symbol 'find_get_pmu_context' was not declared. Should it be static?
kernel/events/core.c:6188:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:6188:9: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:6188:9: sparse: struct perf_buffer *
kernel/events/core.c:5650:24: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __poll_t [usertype] events @@ got int @@
kernel/events/core.c:5894:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:5894:22: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:5894:22: sparse: struct perf_buffer *
kernel/events/core.c:6030:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:6030:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:6030:14: sparse: struct perf_buffer *
kernel/events/core.c:6063:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:6063:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:6063:14: sparse: struct perf_buffer *
kernel/events/core.c:6120:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:6120:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:6120:14: sparse: struct perf_buffer *
kernel/events/core.c:6206:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:6206:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:6206:14: sparse: struct perf_buffer *
kernel/events/core.c:6219:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:6219:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:6219:14: sparse: struct perf_buffer *
kernel/events/core.c:7864:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:7864:15: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:7864:15: sparse: struct perf_event_context *
kernel/events/core.c:7910:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:7910:15: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:7910:15: sparse: struct perf_event_context *
kernel/events/core.c:7949:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:7949:13: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/core.c:7949:13: sparse: struct perf_buffer *
kernel/events/core.c:8053:61: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *real_parent @@
kernel/events/core.c:8053:61: sparse: expected struct task_struct *p
kernel/events/core.c:8053:61: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/events/core.c:8055:61: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] __rcu *real_parent @@
kernel/events/core.c:8055:61: sparse: expected struct task_struct *p
kernel/events/core.c:8055:61: sparse: got struct task_struct [noderef] __rcu *real_parent
kernel/events/core.c:8754:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:8754:15: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:8754:15: sparse: struct perf_event_context *
kernel/events/core.c:9745:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9745:9: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:9745:9: sparse: struct swevent_hlist *
kernel/events/core.c:9784:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9784:17: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:9784:17: sparse: struct swevent_hlist *
kernel/events/core.c:9965:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9965:23: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:9965:23: sparse: struct perf_event_context *
kernel/events/core.c:11116:1: sparse: sparse: symbol 'dev_attr_nr_addr_filters' was not declared. Should it be static?
kernel/events/core.c:12826:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:12826:9: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:12826:9: sparse: struct perf_event_context *
kernel/events/core.c:12920:15: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:12920:15: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:12920:15: sparse: struct perf_event_context *
kernel/events/core.c:12932:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:12932:9: sparse: struct perf_event_context [noderef] __rcu *
kernel/events/core.c:12932:9: sparse: struct perf_event_context *
kernel/events/core.c:13356:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:13356:17: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:13356:17: sparse: struct swevent_hlist *
kernel/events/core.c:161:9: sparse: sparse: context imbalance in 'perf_ctx_lock' - wrong count at exit
kernel/events/core.c:169:17: sparse: sparse: context imbalance in 'perf_ctx_unlock' - unexpected unlock
kernel/events/core.c: note: in included file (through include/linux/rcupdate.h, include/linux/rculist.h, include/linux/dcache.h, ...):
include/linux/rcutiny.h:102:44: sparse: sparse: context imbalance in 'perf_lock_task_context' - different lock contexts for basic block
kernel/events/core.c:1487:17: sparse: sparse: context imbalance in 'perf_pin_task_context' - unexpected unlock
kernel/events/core.c:2815:9: sparse: sparse: context imbalance in '__perf_install_in_context' - wrong count at exit
kernel/events/core.c:4781:17: sparse: sparse: context imbalance in 'find_get_context' - unexpected unlock
kernel/events/core.c: note: in included file:
kernel/events/internal.h:204:1: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got void const *buf @@
kernel/events/core.c:9594:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9594:17: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:9594:17: sparse: struct swevent_hlist *
kernel/events/core.c:9614:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9614:17: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:9614:17: sparse: struct swevent_hlist *
kernel/events/core.c:9734:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9734:16: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:9734:16: sparse: struct swevent_hlist *
kernel/events/core.c:9734:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9734:16: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:9734:16: sparse: struct swevent_hlist *
kernel/events/core.c:9734:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/core.c:9734:16: sparse: struct swevent_hlist [noderef] __rcu *
kernel/events/core.c:9734:16: sparse: struct swevent_hlist *
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[RFC PATCH] perf: find_get_pmu_context can be static
by kernel test robot
kernel/events/core.c:4826:31: warning: symbol 'find_get_pmu_context' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index fb612255d7b25..47a80a53bf2a4 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -4823,7 +4823,7 @@ find_get_context(struct task_struct *task, struct perf_event *event)
return ERR_PTR(err);
}
-struct perf_event_pmu_context *
+static struct perf_event_pmu_context *
find_get_pmu_context(struct pmu *pmu, struct perf_event_context *ctx,
struct perf_event *event)
{
8 months, 1 week
[mingo-tip:master 1793/2382] kernel/sched/fair.c:10758:6: warning: no previous prototype for 'nohz_balance_enter_idle'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 1a880941a087613ed42f77001229edfcf75ea8a5
commit: 90af8efc5f313f5faa40d7e7bc58986a4342828a [1793/2382] headers/deps: Reorganize, clean up and optimize kernel/sched/sched.h dependencies
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220114/202201140251.J3IHIgTm-lk...)
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/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout 90af8efc5f313f5faa40d7e7bc58986a4342828a
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
kernel/sched/fair.c:5486:6: warning: no previous prototype for 'init_cfs_bandwidth' [-Wmissing-prototypes]
5486 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {}
| ^~~~~~~~~~~~~~~~~~
>> kernel/sched/fair.c:10758:6: warning: no previous prototype for 'nohz_balance_enter_idle' [-Wmissing-prototypes]
10758 | void nohz_balance_enter_idle(int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11880:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes]
11880 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11882:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes]
11882 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11887:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes]
11887 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:11889:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes]
11889 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/nohz_balance_enter_idle +10758 kernel/sched/fair.c
69e1e811dcc436 kernel/sched/fair.c Suresh Siddha 2011-12-01 10753
1e3c88bdeb1260 kernel/sched_fair.c Peter Zijlstra 2009-12-17 10754 /*
97fb7a0a8944bd kernel/sched/fair.c Ingo Molnar 2018-03-03 10755 * This routine will record that the CPU is going idle with tick stopped.
0b005cf54eac17 kernel/sched/fair.c Suresh Siddha 2011-12-01 10756 * This info will be used in performing idle load balancing in the future.
1e3c88bdeb1260 kernel/sched_fair.c Peter Zijlstra 2009-12-17 10757 */
c1cc017c59c44d kernel/sched/fair.c Alex Shi 2012-09-10 @10758 void nohz_balance_enter_idle(int cpu)
1e3c88bdeb1260 kernel/sched_fair.c Peter Zijlstra 2009-12-17 10759 {
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10760 struct rq *rq = cpu_rq(cpu);
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10761
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10762 SCHED_WARN_ON(cpu != smp_processor_id());
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10763
97fb7a0a8944bd kernel/sched/fair.c Ingo Molnar 2018-03-03 10764 /* If this CPU is going down, then nothing needs to be done: */
71325960d16cd6 kernel/sched/fair.c Suresh Siddha 2012-01-19 10765 if (!cpu_active(cpu))
71325960d16cd6 kernel/sched/fair.c Suresh Siddha 2012-01-19 10766 return;
71325960d16cd6 kernel/sched/fair.c Suresh Siddha 2012-01-19 10767
387bc8b5536eeb kernel/sched/fair.c Frederic Weisbecker 2017-06-19 10768 /* Spare idle load balancing on CPUs that don't want to be disturbed: */
de201559df872f kernel/sched/fair.c Frederic Weisbecker 2017-10-27 10769 if (!housekeeping_cpu(cpu, HK_FLAG_SCHED))
387bc8b5536eeb kernel/sched/fair.c Frederic Weisbecker 2017-06-19 10770 return;
387bc8b5536eeb kernel/sched/fair.c Frederic Weisbecker 2017-06-19 10771
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10772 /*
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10773 * Can be set safely without rq->lock held
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10774 * If a clear happens, it will have evaluated last additions because
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10775 * rq->lock is held during the check and the clear
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10776 */
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10777 rq->has_blocked_load = 1;
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10778
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10779 /*
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10780 * The tick is still stopped but load could have been added in the
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10781 * meantime. We set the nohz.has_blocked flag to trig a check of the
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10782 * *_avg. The CPU is already part of nohz.idle_cpus_mask so the clear
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10783 * of nohz.has_blocked can only happen after checking the new load
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10784 */
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10785 if (rq->nohz_tick_stopped)
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10786 goto out;
1e3c88bdeb1260 kernel/sched_fair.c Peter Zijlstra 2009-12-17 10787
97fb7a0a8944bd kernel/sched/fair.c Ingo Molnar 2018-03-03 10788 /* If we're a completely isolated CPU, we don't play: */
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10789 if (on_null_domain(rq))
d987fc7f3228bf kernel/sched/fair.c Mike Galbraith 2011-12-05 10790 return;
d987fc7f3228bf kernel/sched/fair.c Mike Galbraith 2011-12-05 10791
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10792 rq->nohz_tick_stopped = 1;
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10793
83cd4fe27ad844 kernel/sched_fair.c Venkatesh Pallipadi 2010-05-21 10794 cpumask_set_cpu(cpu, nohz.idle_cpus_mask);
0b005cf54eac17 kernel/sched/fair.c Suresh Siddha 2011-12-01 10795 atomic_inc(&nohz.nr_cpus);
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10796
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10797 /*
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10798 * Ensures that if nohz_idle_balance() fails to observe our
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10799 * @idle_cpus_mask store, it must observe the @has_blocked
7fd7a9e0caba10 kernel/sched/fair.c Valentin Schneider 2021-08-23 10800 * and @needs_update stores.
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10801 */
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10802 smp_mb__after_atomic();
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10803
00357f5ec5d67a kernel/sched/fair.c Peter Zijlstra 2017-12-21 10804 set_cpu_sd_state_idle(cpu);
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10805
7fd7a9e0caba10 kernel/sched/fair.c Valentin Schneider 2021-08-23 10806 WRITE_ONCE(nohz.needs_update, 1);
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10807 out:
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10808 /*
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10809 * Each time a cpu enter idle, we assume that it has blocked load and
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10810 * enable the periodic update of the load of idle cpus
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10811 */
f643ea2207010d kernel/sched/fair.c Vincent Guittot 2018-02-13 10812 WRITE_ONCE(nohz.has_blocked, 1);
1e3c88bdeb1260 kernel/sched_fair.c Peter Zijlstra 2009-12-17 10813 }
1e3c88bdeb1260 kernel/sched_fair.c Peter Zijlstra 2009-12-17 10814
:::::: The code at line 10758 was first introduced by commit
:::::: c1cc017c59c44d9ede7003631c43adc0cfdce2f9 sched/nohz: Clean up select_nohz_load_balancer()
:::::: TO: Alex Shi <alex.shi(a)intel.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
drivers/s390/net/qeth_core_main.c:6194:9: warning: 'strncpy' specified bound 20 equals destination size
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 455e73a07f6e288b0061dfcf4fcf54fa9fe06458
commit: 334ef6ed06fa1a54e35296b77b693bcf6d63ee9e init/Kconfig: make COMPILE_TEST depend on !S390
date: 1 year, 2 months ago
config: s390-randconfig-r016-20220113 (https://download.01.org/0day-ci/archive/20220114/202201140208.SgphJJdy-lk...)
compiler: s390-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 334ef6ed06fa1a54e35296b77b693bcf6d63ee9e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/s390/net/qeth_core_main.c: In function 'qeth_dbf_longtext':
drivers/s390/net/qeth_core_main.c:6066:9: warning: function 'qeth_dbf_longtext' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
6066 | vsnprintf(dbf_txt_buf, sizeof(dbf_txt_buf), fmt, args);
| ^~~~~~~~~
drivers/s390/net/qeth_core_main.c: In function 'qeth_add_dbf_entry':
>> drivers/s390/net/qeth_core_main.c:6194:9: warning: 'strncpy' specified bound 20 equals destination size [-Wstringop-truncation]
6194 | strncpy(new_entry->dbf_name, name, DBF_NAME_LEN);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/strncpy +6194 drivers/s390/net/qeth_core_main.c
819dc537fd7fcd Stefan Raspl 2013-01-21 6179
819dc537fd7fcd Stefan Raspl 2013-01-21 6180 static int qeth_add_dbf_entry(struct qeth_card *card, char *name)
819dc537fd7fcd Stefan Raspl 2013-01-21 6181 {
819dc537fd7fcd Stefan Raspl 2013-01-21 6182 struct qeth_dbf_entry *new_entry;
819dc537fd7fcd Stefan Raspl 2013-01-21 6183
819dc537fd7fcd Stefan Raspl 2013-01-21 6184 card->debug = debug_register(name, 2, 1, 8);
819dc537fd7fcd Stefan Raspl 2013-01-21 6185 if (!card->debug) {
819dc537fd7fcd Stefan Raspl 2013-01-21 6186 QETH_DBF_TEXT_(SETUP, 2, "%s", "qcdbf");
819dc537fd7fcd Stefan Raspl 2013-01-21 6187 goto err;
819dc537fd7fcd Stefan Raspl 2013-01-21 6188 }
819dc537fd7fcd Stefan Raspl 2013-01-21 6189 if (debug_register_view(card->debug, &debug_hex_ascii_view))
819dc537fd7fcd Stefan Raspl 2013-01-21 6190 goto err_dbg;
819dc537fd7fcd Stefan Raspl 2013-01-21 6191 new_entry = kzalloc(sizeof(struct qeth_dbf_entry), GFP_KERNEL);
819dc537fd7fcd Stefan Raspl 2013-01-21 6192 if (!new_entry)
819dc537fd7fcd Stefan Raspl 2013-01-21 6193 goto err_dbg;
819dc537fd7fcd Stefan Raspl 2013-01-21 @6194 strncpy(new_entry->dbf_name, name, DBF_NAME_LEN);
819dc537fd7fcd Stefan Raspl 2013-01-21 6195 new_entry->dbf_info = card->debug;
819dc537fd7fcd Stefan Raspl 2013-01-21 6196 mutex_lock(&qeth_dbf_list_mutex);
819dc537fd7fcd Stefan Raspl 2013-01-21 6197 list_add(&new_entry->dbf_list, &qeth_dbf_list);
819dc537fd7fcd Stefan Raspl 2013-01-21 6198 mutex_unlock(&qeth_dbf_list_mutex);
819dc537fd7fcd Stefan Raspl 2013-01-21 6199
819dc537fd7fcd Stefan Raspl 2013-01-21 6200 return 0;
819dc537fd7fcd Stefan Raspl 2013-01-21 6201
819dc537fd7fcd Stefan Raspl 2013-01-21 6202 err_dbg:
819dc537fd7fcd Stefan Raspl 2013-01-21 6203 debug_unregister(card->debug);
819dc537fd7fcd Stefan Raspl 2013-01-21 6204 err:
819dc537fd7fcd Stefan Raspl 2013-01-21 6205 return -ENOMEM;
819dc537fd7fcd Stefan Raspl 2013-01-21 6206 }
819dc537fd7fcd Stefan Raspl 2013-01-21 6207
:::::: The code at line 6194 was first introduced by commit
:::::: 819dc537fd7fcd799c5f7f85693d29e2635a84f9 qeth: Make s390dbf card entries persistent
:::::: TO: Stefan Raspl <raspl(a)linux.vnet.ibm.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mingo-tip:master 1863/2382] arch/x86/entry/vsyscall/vsyscall_64.c:323:24: warning: no previous prototype for 'get_gate_vma'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 1a880941a087613ed42f77001229edfcf75ea8a5
commit: 8c564323537ccfe86a2423a4b98a423ab2182c9e [1863/2382] headers/deps: mm: Optimize <linux/mm_api.h>, remove the <linux/mm_api_gate_area.h> header
config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220114/202201140224.O4rqby5c-lk...)
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/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout 8c564323537ccfe86a2423a4b98a423ab2182c9e
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/entry/vsyscall/
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/x86/entry/vsyscall/vsyscall_64.c:323:24: warning: no previous prototype for 'get_gate_vma' [-Wmissing-prototypes]
323 | struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
| ^~~~~~~~~~~~
>> arch/x86/entry/vsyscall/vsyscall_64.c:334:5: warning: no previous prototype for 'in_gate_area' [-Wmissing-prototypes]
334 | int in_gate_area(struct mm_struct *mm, unsigned long addr)
| ^~~~~~~~~~~~
>> arch/x86/entry/vsyscall/vsyscall_64.c:349:5: warning: no previous prototype for 'in_gate_area_no_mm' [-Wmissing-prototypes]
349 | int in_gate_area_no_mm(unsigned long addr)
| ^~~~~~~~~~~~~~~~~~
vim +/get_gate_vma +323 arch/x86/entry/vsyscall/vsyscall_64.c
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 322
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 @323 struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 324 {
c338867d0e4224 arch/x86/entry/vsyscall/vsyscall_64.c Brian Gerst 2015-06-22 325 #ifdef CONFIG_COMPAT
ff170cd0595398 arch/x86/entry/vsyscall/vsyscall_64.c Gabriel Krisman Bertazi 2020-10-03 326 if (!mm || !(mm->context.flags & MM_CONTEXT_HAS_VSYSCALL))
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 327 return NULL;
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 328 #endif
87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-10-29 329 if (vsyscall_mode == NONE)
87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-10-29 330 return NULL;
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 331 return &gate_vma;
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 332 }
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 333
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 @334 int in_gate_area(struct mm_struct *mm, unsigned long addr)
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 335 {
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 336 struct vm_area_struct *vma = get_gate_vma(mm);
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 337
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 338 if (!vma)
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 339 return 0;
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 340
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 341 return (addr >= vma->vm_start) && (addr < vma->vm_end);
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 342 }
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 343
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 344 /*
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 345 * Use this when you have no reliable mm, typically from interrupt
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 346 * context. It is less reliable than using a task's mm and may give
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 347 * false positives.
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 348 */
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 @349 int in_gate_area_no_mm(unsigned long addr)
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 350 {
87983c66bc02c9 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-10-29 351 return vsyscall_mode != NONE && (addr & PAGE_MASK) == VSYSCALL_ADDR;
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 352 }
b93590901a01a6 arch/x86/kernel/vsyscall_64.c Andy Lutomirski 2014-09-23 353
:::::: The code at line 323 was first introduced by commit
:::::: b93590901a01a6d036b3b7c856bcc5724fdb9911 x86_64/vsyscall: Move all of the gate_area code to vsyscall_64.c
:::::: TO: Andy Lutomirski <luto(a)amacapital.net>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mingo-tip:master 583/2382] kernel/kallsyms.c:895:81: error: invalid application of 'sizeof' to an incomplete type 'struct kallsyms_entry'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head: 1a880941a087613ed42f77001229edfcf75ea8a5
commit: 4357bf918816f743b593665e792f78913f0da47b [583/2382] kallsyms/objtool: Process entries
config: x86_64-randconfig-a015-20220109 (https://download.01.org/0day-ci/archive/20220114/202201140216.czBUwf1E-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
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/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip master
git checkout 4357bf918816f743b593665e792f78913f0da47b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the mingo-tip/master HEAD 1a880941a087613ed42f77001229edfcf75ea8a5 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
kernel/kallsyms.c:586:12: warning: no previous prototype for function 'arch_get_kallsym' [-Wmissing-prototypes]
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
kernel/kallsyms.c:586:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
^
static
>> kernel/kallsyms.c:895:81: error: invalid application of 'sizeof' to an incomplete type 'struct kallsyms_entry'
nr_entries = ((long)&__kallsyms_offsets_end - (long)&__kallsyms_offsets_begin)/sizeof(struct kallsyms_entry);
^ ~~~~~~~~~~~~~~~~~~~~~~~
kernel/kallsyms.c:889:9: note: forward declaration of 'struct kallsyms_entry'
struct kallsyms_entry *entries;
^
kernel/kallsyms.c:905:85: error: subscript of pointer to incomplete type 'struct kallsyms_entry'
printk("# kallsyms entry %6ld/%6ld: [%016Lx]: {%s}\n", i, nr_entries, (u64)entries[i].offset, str);
~~~~~~~^
include/linux/printk.h:450:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/printk.h:422:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
kernel/kallsyms.c:889:9: note: forward declaration of 'struct kallsyms_entry'
struct kallsyms_entry *entries;
^
1 warning and 2 errors generated.
vim +895 kernel/kallsyms.c
886
887 static void __init kallsyms_objtool_init(void)
888 {
889 struct kallsyms_entry *entries;
890 long nr_entries, i;
891 char *str;
892
893 printk("# kallsyms_objtool_init()\n");
894
> 895 nr_entries = ((long)&__kallsyms_offsets_end - (long)&__kallsyms_offsets_begin)/sizeof(struct kallsyms_entry);
896
897 printk("# kallsyms: %ld entries.\n", nr_entries);
898
899 BUG_ON(nr_entries <= 0);
900
901 str = &__kallsyms_strs_begin;
902 entries = (void *) &__kallsyms_offsets_begin;
903
904 for (i = 0; i < nr_entries; i++) {
905 printk("# kallsyms entry %6ld/%6ld: [%016Lx]: {%s}\n", i, nr_entries, (u64)entries[i].offset, str);
906
907 str += strlen(str) + 1;
908
909 }
910 printk("# kallsyms, last str: %p\n", str);
911 printk("# kallsyms, &__kallsyms_strs_end: %p\n", &__kallsyms_strs_end);
912
913 BUG_ON(str != &__kallsyms_strs_end);
914 }
915
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week