Re: [PATCH v21] tty: Fix the keyboard led light display problem
by kernel test robot
Hi lianzhi,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tty/tty-testing]
[also build test ERROR on linux/master linus/master v5.16-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/lianzhi-chang/tty-Fix-the-keyboa...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: openrisc-randconfig-r033-20211213 (https://download.01.org/0day-ci/archive/20211214/202112140229.T4ovO3wp-lk...)
compiler: or1k-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/8cc658e5dd82e5d70fa3ac9dace8fe62e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review lianzhi-chang/tty-Fix-the-keyboard-led-light-display-problem/20211213-204404
git checkout 8cc658e5dd82e5d70fa3ac9dace8fe62eaed325f
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=openrisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/tty/vt/vt_ioctl.c:37:
include/linux/kbd_kern.h:35:34: error: stray '\357' in program
35 | unsigned char kbdledctl:1; /* Whether to allow to control the led of the keyboard */
| ^~
>> include/linux/kbd_kern.h:39:9: error: expected ',', ';' or '}' before 'unsigned'
39 | unsigned char ledmode:1;
| ^~~~~~~~
include/linux/kbd_kern.h: In function 'vc_kbd_mode':
>> include/linux/kbd_kern.h:78:21: error: 'struct kbd_struct' has no member named 'modeflags'
78 | return ((kbd->modeflags >> flag) & 1);
| ^~
include/linux/kbd_kern.h: In function 'vc_kbd_led':
>> include/linux/kbd_kern.h:83:21: error: 'struct kbd_struct' has no member named 'ledflagstate'
83 | return ((kbd->ledflagstate >> flag) & 1);
| ^~
include/linux/kbd_kern.h: In function 'set_vc_kbd_mode':
include/linux/kbd_kern.h:88:12: error: 'struct kbd_struct' has no member named 'modeflags'
88 | kbd->modeflags |= 1 << flag;
| ^~
include/linux/kbd_kern.h: In function 'set_vc_kbd_led':
include/linux/kbd_kern.h:93:12: error: 'struct kbd_struct' has no member named 'ledflagstate'
93 | kbd->ledflagstate |= 1 << flag;
| ^~
include/linux/kbd_kern.h: In function 'clr_vc_kbd_mode':
include/linux/kbd_kern.h:98:12: error: 'struct kbd_struct' has no member named 'modeflags'
98 | kbd->modeflags &= ~(1 << flag);
| ^~
include/linux/kbd_kern.h: In function 'clr_vc_kbd_led':
include/linux/kbd_kern.h:103:12: error: 'struct kbd_struct' has no member named 'ledflagstate'
103 | kbd->ledflagstate &= ~(1 << flag);
| ^~
include/linux/kbd_kern.h: In function 'chg_vc_kbd_mode':
include/linux/kbd_kern.h:118:12: error: 'struct kbd_struct' has no member named 'modeflags'
118 | kbd->modeflags ^= 1 << flag;
| ^~
include/linux/kbd_kern.h: In function 'chg_vc_kbd_led':
include/linux/kbd_kern.h:123:12: error: 'struct kbd_struct' has no member named 'ledflagstate'
123 | kbd->ledflagstate ^= 1 << flag;
| ^~
--
In file included from drivers/tty/vt/keyboard.c:33:
include/linux/kbd_kern.h:35:34: error: stray '\357' in program
35 | unsigned char kbdledctl:1; /* Whether to allow to control the led of the keyboard */
| ^~
>> include/linux/kbd_kern.h:39:9: error: expected ',', ';' or '}' before 'unsigned'
39 | unsigned char ledmode:1;
| ^~~~~~~~
include/linux/kbd_kern.h: In function 'vc_kbd_mode':
>> include/linux/kbd_kern.h:78:21: error: 'struct kbd_struct' has no member named 'modeflags'
78 | return ((kbd->modeflags >> flag) & 1);
| ^~
include/linux/kbd_kern.h: In function 'vc_kbd_led':
>> include/linux/kbd_kern.h:83:21: error: 'struct kbd_struct' has no member named 'ledflagstate'
83 | return ((kbd->ledflagstate >> flag) & 1);
| ^~
include/linux/kbd_kern.h: In function 'set_vc_kbd_mode':
include/linux/kbd_kern.h:88:12: error: 'struct kbd_struct' has no member named 'modeflags'
88 | kbd->modeflags |= 1 << flag;
| ^~
include/linux/kbd_kern.h: In function 'set_vc_kbd_led':
include/linux/kbd_kern.h:93:12: error: 'struct kbd_struct' has no member named 'ledflagstate'
93 | kbd->ledflagstate |= 1 << flag;
| ^~
include/linux/kbd_kern.h: In function 'clr_vc_kbd_mode':
include/linux/kbd_kern.h:98:12: error: 'struct kbd_struct' has no member named 'modeflags'
98 | kbd->modeflags &= ~(1 << flag);
| ^~
include/linux/kbd_kern.h: In function 'clr_vc_kbd_led':
include/linux/kbd_kern.h:103:12: error: 'struct kbd_struct' has no member named 'ledflagstate'
103 | kbd->ledflagstate &= ~(1 << flag);
| ^~
include/linux/kbd_kern.h: In function 'chg_vc_kbd_mode':
include/linux/kbd_kern.h:118:12: error: 'struct kbd_struct' has no member named 'modeflags'
118 | kbd->modeflags ^= 1 << flag;
| ^~
include/linux/kbd_kern.h: In function 'chg_vc_kbd_led':
include/linux/kbd_kern.h:123:12: error: 'struct kbd_struct' has no member named 'ledflagstate'
123 | kbd->ledflagstate ^= 1 << flag;
| ^~
In file included from include/linux/init.h:5,
from drivers/tty/vt/keyboard.c:29:
drivers/tty/vt/keyboard.c: In function 'handle_diacr':
>> drivers/tty/vt/keyboard.c:457:16: error: 'struct kbd_struct' has no member named 'kbdmode'
457 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:457:9: note: in expansion of macro 'if'
457 | if (kbd->kbdmode == VC_UNICODE)
| ^~
>> drivers/tty/vt/keyboard.c:457:16: error: 'struct kbd_struct' has no member named 'kbdmode'
457 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:457:9: note: in expansion of macro 'if'
457 | if (kbd->kbdmode == VC_UNICODE)
| ^~
>> drivers/tty/vt/keyboard.c:457:16: error: 'struct kbd_struct' has no member named 'kbdmode'
457 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:457:9: note: in expansion of macro 'if'
457 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c: In function 'fn_enter':
drivers/tty/vt/keyboard.c:474:24: error: 'struct kbd_struct' has no member named 'kbdmode'
474 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:474:17: note: in expansion of macro 'if'
474 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c:474:24: error: 'struct kbd_struct' has no member named 'kbdmode'
474 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:474:17: note: in expansion of macro 'if'
474 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c:474:24: error: 'struct kbd_struct' has no member named 'kbdmode'
474 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:474:17: note: in expansion of macro 'if'
474 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c: In function 'k_spec':
drivers/tty/vt/keyboard.c:662:17: error: 'struct kbd_struct' has no member named 'kbdmode'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:662:9: note: in expansion of macro 'if'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
drivers/tty/vt/keyboard.c:663:17: error: 'struct kbd_struct' has no member named 'kbdmode'
663 | kbd->kbdmode == VC_MEDIUMRAW ||
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:662:9: note: in expansion of macro 'if'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
drivers/tty/vt/keyboard.c:664:17: error: 'struct kbd_struct' has no member named 'kbdmode'
664 | kbd->kbdmode == VC_OFF) &&
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:662:9: note: in expansion of macro 'if'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
drivers/tty/vt/keyboard.c:662:17: error: 'struct kbd_struct' has no member named 'kbdmode'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:662:9: note: in expansion of macro 'if'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
drivers/tty/vt/keyboard.c:663:17: error: 'struct kbd_struct' has no member named 'kbdmode'
663 | kbd->kbdmode == VC_MEDIUMRAW ||
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:662:9: note: in expansion of macro 'if'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
drivers/tty/vt/keyboard.c:664:17: error: 'struct kbd_struct' has no member named 'kbdmode'
664 | kbd->kbdmode == VC_OFF) &&
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:662:9: note: in expansion of macro 'if'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
drivers/tty/vt/keyboard.c:662:17: error: 'struct kbd_struct' has no member named 'kbdmode'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
--
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:662:9: note: in expansion of macro 'if'
662 | if ((kbd->kbdmode == VC_RAW ||
| ^~
drivers/tty/vt/keyboard.c: In function 'k_unicode':
drivers/tty/vt/keyboard.c:688:16: error: 'struct kbd_struct' has no member named 'kbdmode'
688 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:688:9: note: in expansion of macro 'if'
688 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c:688:16: error: 'struct kbd_struct' has no member named 'kbdmode'
688 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:688:9: note: in expansion of macro 'if'
688 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c:688:16: error: 'struct kbd_struct' has no member named 'kbdmode'
688 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:688:9: note: in expansion of macro 'if'
688 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c: In function 'k_shift':
drivers/tty/vt/keyboard.c:885:24: error: 'struct kbd_struct' has no member named 'kbdmode'
885 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:885:17: note: in expansion of macro 'if'
885 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c:885:24: error: 'struct kbd_struct' has no member named 'kbdmode'
885 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:885:17: note: in expansion of macro 'if'
885 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c:885:24: error: 'struct kbd_struct' has no member named 'kbdmode'
885 | if (kbd->kbdmode == VC_UNICODE)
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:885:17: note: in expansion of macro 'if'
885 | if (kbd->kbdmode == VC_UNICODE)
| ^~
drivers/tty/vt/keyboard.c: In function 'k_brl':
drivers/tty/vt/keyboard.c:983:16: error: 'struct kbd_struct' has no member named 'kbdmode'
983 | if (kbd->kbdmode != VC_UNICODE) {
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:983:9: note: in expansion of macro 'if'
983 | if (kbd->kbdmode != VC_UNICODE) {
| ^~
drivers/tty/vt/keyboard.c:983:16: error: 'struct kbd_struct' has no member named 'kbdmode'
983 | if (kbd->kbdmode != VC_UNICODE) {
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:983:9: note: in expansion of macro 'if'
983 | if (kbd->kbdmode != VC_UNICODE) {
| ^~
drivers/tty/vt/keyboard.c:983:16: error: 'struct kbd_struct' has no member named 'kbdmode'
983 | if (kbd->kbdmode != VC_UNICODE) {
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:983:9: note: in expansion of macro 'if'
983 | if (kbd->kbdmode != VC_UNICODE) {
| ^~
drivers/tty/vt/keyboard.c: In function 'setledstate':
>> drivers/tty/vt/keyboard.c:1156:19: error: 'struct kbd_struct' has no member named 'ledmode'
1156 | kb->ledmode = LED_SHOW_IOCTL;
| ^~
drivers/tty/vt/keyboard.c:1158:19: error: 'struct kbd_struct' has no member named 'ledmode'
1158 | kb->ledmode = LED_SHOW_FLAGS;
| ^~
In file included from include/linux/init.h:5,
from drivers/tty/vt/keyboard.c:29:
drivers/tty/vt/keyboard.c: In function 'getleds':
drivers/tty/vt/keyboard.c:1168:15: error: 'struct kbd_struct' has no member named 'ledmode'
1168 | if (kb->ledmode == LED_SHOW_IOCTL)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1168:9: note: in expansion of macro 'if'
1168 | if (kb->ledmode == LED_SHOW_IOCTL)
| ^~
drivers/tty/vt/keyboard.c:1168:15: error: 'struct kbd_struct' has no member named 'ledmode'
1168 | if (kb->ledmode == LED_SHOW_IOCTL)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1168:9: note: in expansion of macro 'if'
1168 | if (kb->ledmode == LED_SHOW_IOCTL)
| ^~
drivers/tty/vt/keyboard.c:1168:15: error: 'struct kbd_struct' has no member named 'ledmode'
1168 | if (kb->ledmode == LED_SHOW_IOCTL)
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:1168:9: note: in expansion of macro 'if'
1168 | if (kb->ledmode == LED_SHOW_IOCTL)
| ^~
>> drivers/tty/vt/keyboard.c:1171:18: error: 'struct kbd_struct' has no member named 'ledflagstate'
1171 | return kb->ledflagstate;
| ^~
In file included from include/linux/init.h:5,
from drivers/tty/vt/keyboard.c:29:
drivers/tty/vt/keyboard.c: In function 'kbd_rawcode':
drivers/tty/vt/keyboard.c:1398:16: error: 'struct kbd_struct' has no member named 'kbdmode'
1398 | if (kbd->kbdmode == VC_RAW)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1398:9: note: in expansion of macro 'if'
1398 | if (kbd->kbdmode == VC_RAW)
| ^~
drivers/tty/vt/keyboard.c:1398:16: error: 'struct kbd_struct' has no member named 'kbdmode'
1398 | if (kbd->kbdmode == VC_RAW)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1398:9: note: in expansion of macro 'if'
1398 | if (kbd->kbdmode == VC_RAW)
| ^~
drivers/tty/vt/keyboard.c:1398:16: error: 'struct kbd_struct' has no member named 'kbdmode'
1398 | if (kbd->kbdmode == VC_RAW)
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:1398:9: note: in expansion of macro 'if'
1398 | if (kbd->kbdmode == VC_RAW)
| ^~
drivers/tty/vt/keyboard.c: In function 'kbd_keycode':
drivers/tty/vt/keyboard.c:1429:24: error: 'struct kbd_struct' has no member named 'kbdmode'
1429 | raw_mode = (kbd->kbdmode == VC_RAW);
| ^~
In file included from include/linux/init.h:5,
from drivers/tty/vt/keyboard.c:29:
drivers/tty/vt/keyboard.c:1443:16: error: 'struct kbd_struct' has no member named 'kbdmode'
1443 | if (kbd->kbdmode == VC_MEDIUMRAW) {
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1443:9: note: in expansion of macro 'if'
1443 | if (kbd->kbdmode == VC_MEDIUMRAW) {
| ^~
drivers/tty/vt/keyboard.c:1443:16: error: 'struct kbd_struct' has no member named 'kbdmode'
1443 | if (kbd->kbdmode == VC_MEDIUMRAW) {
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1443:9: note: in expansion of macro 'if'
1443 | if (kbd->kbdmode == VC_MEDIUMRAW) {
| ^~
drivers/tty/vt/keyboard.c:1443:16: error: 'struct kbd_struct' has no member named 'kbdmode'
1443 | if (kbd->kbdmode == VC_MEDIUMRAW) {
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:1443:9: note: in expansion of macro 'if'
1443 | if (kbd->kbdmode == VC_MEDIUMRAW) {
| ^~
drivers/tty/vt/keyboard.c:1477:29: error: 'struct kbd_struct' has no member named 'ledflagstate'
1477 | param.ledstate = kbd->ledflagstate;
| ^~
In file included from include/linux/init.h:5,
from drivers/tty/vt/keyboard.c:29:
drivers/tty/vt/keyboard.c:1526:29: error: 'struct kbd_struct' has no member named 'kbdmode'
1526 | if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT)
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1526:9: note: in expansion of macro 'if'
1526 | if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT)
| ^~
drivers/tty/vt/keyboard.c:1526:29: error: 'struct kbd_struct' has no member named 'kbdmode'
1526 | if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT)
| ^~
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
drivers/tty/vt/keyboard.c:1526:9: note: in expansion of macro 'if'
1526 | if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT)
| ^~
drivers/tty/vt/keyboard.c:1526:29: error: 'struct kbd_struct' has no member named 'kbdmode'
1526 | if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT)
| ^~
include/linux/compiler.h:69:10: note: in definition of macro '__trace_if_value'
69 | (cond) ? \
| ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:1526:9: note: in expansion of macro 'if'
1526 | if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT)
| ^~
drivers/tty/vt/keyboard.c:1531:29: error: 'struct kbd_struct' has no member named 'ledflagstate'
1531 | param.ledstate = kbd->ledflagstate;
| ^~
drivers/tty/vt/keyboard.c: In function 'kbd_init':
drivers/tty/vt/keyboard.c:1664:29: error: 'struct kbd_struct' has no member named 'ledflagstate'
1664 | kbd_table[i].ledflagstate = kbd_defleds();
| ^
>> drivers/tty/vt/keyboard.c:1665:29: error: 'struct kbd_struct' has no member named 'default_ledflagstate'
1665 | kbd_table[i].default_ledflagstate = kbd_defleds();
| ^
drivers/tty/vt/keyboard.c:1666:29: error: 'struct kbd_struct' has no member named 'ledmode'
1666 | kbd_table[i].ledmode = LED_SHOW_FLAGS;
| ^
>> drivers/tty/vt/keyboard.c:1669:29: error: 'struct kbd_struct' has no member named 'modeflags'
1669 | kbd_table[i].modeflags = KBD_DEFMODE;
| ^
drivers/tty/vt/keyboard.c:1670:29: error: 'struct kbd_struct' has no member named 'kbdmode'
1670 | kbd_table[i].kbdmode = default_utf8 ? VC_UNICODE : VC_XLATE;
| ^
drivers/tty/vt/keyboard.c: In function 'vt_do_kdskbmode':
drivers/tty/vt/keyboard.c:1854:19: error: 'struct kbd_struct' has no member named 'kbdmode'
1854 | kb->kbdmode = VC_RAW;
| ^~
drivers/tty/vt/keyboard.c:1857:19: error: 'struct kbd_struct' has no member named 'kbdmode'
1857 | kb->kbdmode = VC_MEDIUMRAW;
| ^~
drivers/tty/vt/keyboard.c:1860:19: error: 'struct kbd_struct' has no member named 'kbdmode'
1860 | kb->kbdmode = VC_XLATE;
| ^~
drivers/tty/vt/keyboard.c:1864:19: error: 'struct kbd_struct' has no member named 'kbdmode'
1864 | kb->kbdmode = VC_UNICODE;
| ^~
drivers/tty/vt/keyboard.c:1868:19: error: 'struct kbd_struct' has no member named 'kbdmode'
1868 | kb->kbdmode = VC_OFF;
| ^~
In file included from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/input.h:20,
from drivers/tty/vt/keyboard.c:30:
drivers/tty/vt/keyboard.c: In function 'vt_do_kdsk_ioctl':
drivers/tty/vt/keyboard.c:2067:47: error: 'struct kbd_struct' has no member named 'kbdmode'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~
arch/openrisc/include/asm/uaccess.h:146:23: note: in definition of macro '__put_user_asm'
146 | : "r"(x), "r"(addr), "i"(-EFAULT), "0"(err))
| ^
arch/openrisc/include/asm/uaccess.h:106:17: note: in expansion of macro '__put_user_size'
106 | __put_user_size((x), __pu_addr, (size), __pu_err); \
| ^~~~~~~~~~~~~~~
arch/openrisc/include/asm/uaccess.h:85:9: note: in expansion of macro '__put_user_check'
85 | __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:2067:24: note: in expansion of macro 'put_user'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~~~~~~~
drivers/tty/vt/keyboard.c:2067:47: error: 'struct kbd_struct' has no member named 'kbdmode'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~
arch/openrisc/include/asm/uaccess.h:146:23: note: in definition of macro '__put_user_asm'
146 | : "r"(x), "r"(addr), "i"(-EFAULT), "0"(err))
| ^
arch/openrisc/include/asm/uaccess.h:106:17: note: in expansion of macro '__put_user_size'
106 | __put_user_size((x), __pu_addr, (size), __pu_err); \
| ^~~~~~~~~~~~~~~
arch/openrisc/include/asm/uaccess.h:85:9: note: in expansion of macro '__put_user_check'
85 | __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:2067:24: note: in expansion of macro 'put_user'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~~~~~~~
drivers/tty/vt/keyboard.c:2067:47: error: 'struct kbd_struct' has no member named 'kbdmode'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~
arch/openrisc/include/asm/uaccess.h:146:23: note: in definition of macro '__put_user_asm'
146 | : "r"(x), "r"(addr), "i"(-EFAULT), "0"(err))
| ^
arch/openrisc/include/asm/uaccess.h:106:17: note: in expansion of macro '__put_user_size'
106 | __put_user_size((x), __pu_addr, (size), __pu_err); \
| ^~~~~~~~~~~~~~~
arch/openrisc/include/asm/uaccess.h:85:9: note: in expansion of macro '__put_user_check'
85 | __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:2067:24: note: in expansion of macro 'put_user'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~~~~~~~
drivers/tty/vt/keyboard.c:2067:47: error: 'struct kbd_struct' has no member named 'kbdmode'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~
arch/openrisc/include/asm/uaccess.h:164:23: note: in definition of macro '__put_user_asm2'
164 | : "r"(x), "r"(addr), "i"(-EFAULT), "0"(err))
| ^
arch/openrisc/include/asm/uaccess.h:106:17: note: in expansion of macro '__put_user_size'
106 | __put_user_size((x), __pu_addr, (size), __pu_err); \
| ^~~~~~~~~~~~~~~
arch/openrisc/include/asm/uaccess.h:85:9: note: in expansion of macro '__put_user_check'
85 | __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
| ^~~~~~~~~~~~~~~~
drivers/tty/vt/keyboard.c:2067:24: note: in expansion of macro 'put_user'
2067 | return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index,
| ^~~~~~~~
drivers/tty/vt/keyboard.c:2073:38: error: 'struct kbd_struct' has no member named 'kbdmode'
2073 | return vt_kdskbent(kb->kbdmode, kbe.kb_index, kbe.kb_table,
| ^~
drivers/tty/vt/keyboard.c: In function 'vt_do_kdskled':
drivers/tty/vt/keyboard.c:2157:27: error: 'struct kbd_struct' has no member named 'ledflagstate'
2157 | ucval = kb->ledflagstate | (kb->default_ledflagstate << 4);
| ^~
drivers/tty/vt/keyboard.c:2157:47: error: 'struct kbd_struct' has no member named 'default_ledflagstate'
2157 | ucval = kb->ledflagstate | (kb->default_ledflagstate << 4);
| ^~
vim +/357 +35 include/linux/kbd_kern.h
21
22 unsigned char lockstate;
23 /* 8 modifiers - the names do not have any meaning at all;
24 they can be associated to arbitrarily chosen keys */
25 #define VC_SHIFTLOCK KG_SHIFT /* shift lock mode */
26 #define VC_ALTGRLOCK KG_ALTGR /* altgr lock mode */
27 #define VC_CTRLLOCK KG_CTRL /* control lock mode */
28 #define VC_ALTLOCK KG_ALT /* alt lock mode */
29 #define VC_SHIFTLLOCK KG_SHIFTL /* shiftl lock mode */
30 #define VC_SHIFTRLOCK KG_SHIFTR /* shiftr lock mode */
31 #define VC_CTRLLLOCK KG_CTRLL /* ctrll lock mode */
32 #define VC_CTRLRLOCK KG_CTRLR /* ctrlr lock mode */
33 unsigned char slockstate; /* for `sticky' Shift, Ctrl, etc. */
34
> 35 unsigned char kbdledctl:1; /* Whether to allow to control the led of the keyboard */
36 #define VC_LEDCTL_ON 0 /* VT can set the keyboard light */
37 #define VC_LEDCTL_OFF 1 /* Prohibit VT to set the keyboard light */
38
> 39 unsigned char ledmode:1;
40 #define LED_SHOW_FLAGS 0 /* traditional state */
41 #define LED_SHOW_IOCTL 1 /* only change leds upon ioctl */
42
43 unsigned char ledflagstate:4; /* flags, not lights */
44 unsigned char default_ledflagstate:4;
45 #define VC_SCROLLOCK 0 /* scroll-lock mode */
46 #define VC_NUMLOCK 1 /* numeric lock mode */
47 #define VC_CAPSLOCK 2 /* capslock mode */
48 #define VC_KANALOCK 3 /* kanalock mode */
49
50 unsigned char kbdmode:3; /* one 3-bit value */
51 #define VC_XLATE 0 /* translate keycodes using keymap */
52 #define VC_MEDIUMRAW 1 /* medium raw (keycode) mode */
53 #define VC_RAW 2 /* raw (scancode) mode */
54 #define VC_UNICODE 3 /* Unicode mode */
55 #define VC_OFF 4 /* disabled mode */
56
57 unsigned char modeflags:5;
58 #define VC_APPLIC 0 /* application key mode */
59 #define VC_CKMODE 1 /* cursor key mode */
60 #define VC_REPEAT 2 /* keyboard repeat */
61 #define VC_CRLF 3 /* 0 - enter sends CR, 1 - enter sends CRLF */
62 #define VC_META 4 /* 0 - meta, 1 - meta=prefix with ESC */
63 };
64
65 extern int kbd_init(void);
66
67 extern void setledstate(struct kbd_struct *kbd, unsigned int led);
68
69 extern int do_poke_blanked_console;
70
71 extern void (*kbd_ledfunc)(unsigned int led);
72
73 extern int set_console(int nr);
74 extern void schedule_console_callback(void);
75
76 static inline int vc_kbd_mode(struct kbd_struct * kbd, int flag)
77 {
> 78 return ((kbd->modeflags >> flag) & 1);
79 }
80
81 static inline int vc_kbd_led(struct kbd_struct * kbd, int flag)
82 {
> 83 return ((kbd->ledflagstate >> flag) & 1);
84 }
85
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[linux-next:master 4659/6579] arch/s390/crypto/chacha-s390.S:315: Error: Unrecognized opcode: `clgfi'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ea922272cbe547bdf58da2aaf240d59782c6a009
commit: b087dfab4d3902681550fd1f5ff9c3e942059478 [4659/6579] s390/crypto: add SIMD implementation for ChaCha20
config: s390-randconfig-r034-20211212 (https://download.01.org/0day-ci/archive/20211214/202112140127.k6xn4FFp-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/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b087dfab4d3902681550fd1f5ff9c3e942059478
# 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 arch/s390/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/s390/crypto/chacha-s390.S: Assembler messages:
>> arch/s390/crypto/chacha-s390.S:315: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:342: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:369: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:475: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:728: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:757: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:783: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:810: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:840: Error: Unrecognized opcode: `clgfi'
arch/s390/crypto/chacha-s390.S:867: Error: Unrecognized opcode: `clgfi'
vim +315 arch/s390/crypto/chacha-s390.S
80
81 ENTRY(chacha20_vx_4x)
82 stmg %r6,%r7,6*8(SP)
83
84 larl %r7,.Lsigma
85 lhi %r0,10
86 lhi %r1,0
87
88 VL K0,0,,%r7 # load sigma
89 VL K1,0,,KEY # load key
90 VL K2,16,,KEY
91 VL K3,0,,COUNTER # load counter
92
93 VL BEPERM,0x40,,%r7
94 VL CTR,0x50,,%r7
95
96 VLM XA0,XA3,0x60,%r7,4 # load [smashed] sigma
97
98 VREPF XB0,K1,0 # smash the key
99 VREPF XB1,K1,1
100 VREPF XB2,K1,2
101 VREPF XB3,K1,3
102
103 VREPF XD0,K3,0
104 VREPF XD1,K3,1
105 VREPF XD2,K3,2
106 VREPF XD3,K3,3
107 VAF XD0,XD0,CTR
108
109 VREPF XC0,K2,0
110 VREPF XC1,K2,1
111 VREPF XC2,K2,2
112 VREPF XC3,K2,3
113
114 .Loop_4x:
115 VAF XA0,XA0,XB0
116 VX XD0,XD0,XA0
117 VERLLF XD0,XD0,16
118
119 VAF XA1,XA1,XB1
120 VX XD1,XD1,XA1
121 VERLLF XD1,XD1,16
122
123 VAF XA2,XA2,XB2
124 VX XD2,XD2,XA2
125 VERLLF XD2,XD2,16
126
127 VAF XA3,XA3,XB3
128 VX XD3,XD3,XA3
129 VERLLF XD3,XD3,16
130
131 VAF XC0,XC0,XD0
132 VX XB0,XB0,XC0
133 VERLLF XB0,XB0,12
134
135 VAF XC1,XC1,XD1
136 VX XB1,XB1,XC1
137 VERLLF XB1,XB1,12
138
139 VAF XC2,XC2,XD2
140 VX XB2,XB2,XC2
141 VERLLF XB2,XB2,12
142
143 VAF XC3,XC3,XD3
144 VX XB3,XB3,XC3
145 VERLLF XB3,XB3,12
146
147 VAF XA0,XA0,XB0
148 VX XD0,XD0,XA0
149 VERLLF XD0,XD0,8
150
151 VAF XA1,XA1,XB1
152 VX XD1,XD1,XA1
153 VERLLF XD1,XD1,8
154
155 VAF XA2,XA2,XB2
156 VX XD2,XD2,XA2
157 VERLLF XD2,XD2,8
158
159 VAF XA3,XA3,XB3
160 VX XD3,XD3,XA3
161 VERLLF XD3,XD3,8
162
163 VAF XC0,XC0,XD0
164 VX XB0,XB0,XC0
165 VERLLF XB0,XB0,7
166
167 VAF XC1,XC1,XD1
168 VX XB1,XB1,XC1
169 VERLLF XB1,XB1,7
170
171 VAF XC2,XC2,XD2
172 VX XB2,XB2,XC2
173 VERLLF XB2,XB2,7
174
175 VAF XC3,XC3,XD3
176 VX XB3,XB3,XC3
177 VERLLF XB3,XB3,7
178
179 VAF XA0,XA0,XB1
180 VX XD3,XD3,XA0
181 VERLLF XD3,XD3,16
182
183 VAF XA1,XA1,XB2
184 VX XD0,XD0,XA1
185 VERLLF XD0,XD0,16
186
187 VAF XA2,XA2,XB3
188 VX XD1,XD1,XA2
189 VERLLF XD1,XD1,16
190
191 VAF XA3,XA3,XB0
192 VX XD2,XD2,XA3
193 VERLLF XD2,XD2,16
194
195 VAF XC2,XC2,XD3
196 VX XB1,XB1,XC2
197 VERLLF XB1,XB1,12
198
199 VAF XC3,XC3,XD0
200 VX XB2,XB2,XC3
201 VERLLF XB2,XB2,12
202
203 VAF XC0,XC0,XD1
204 VX XB3,XB3,XC0
205 VERLLF XB3,XB3,12
206
207 VAF XC1,XC1,XD2
208 VX XB0,XB0,XC1
209 VERLLF XB0,XB0,12
210
211 VAF XA0,XA0,XB1
212 VX XD3,XD3,XA0
213 VERLLF XD3,XD3,8
214
215 VAF XA1,XA1,XB2
216 VX XD0,XD0,XA1
217 VERLLF XD0,XD0,8
218
219 VAF XA2,XA2,XB3
220 VX XD1,XD1,XA2
221 VERLLF XD1,XD1,8
222
223 VAF XA3,XA3,XB0
224 VX XD2,XD2,XA3
225 VERLLF XD2,XD2,8
226
227 VAF XC2,XC2,XD3
228 VX XB1,XB1,XC2
229 VERLLF XB1,XB1,7
230
231 VAF XC3,XC3,XD0
232 VX XB2,XB2,XC3
233 VERLLF XB2,XB2,7
234
235 VAF XC0,XC0,XD1
236 VX XB3,XB3,XC0
237 VERLLF XB3,XB3,7
238
239 VAF XC1,XC1,XD2
240 VX XB0,XB0,XC1
241 VERLLF XB0,XB0,7
242 brct %r0,.Loop_4x
243
244 VAF XD0,XD0,CTR
245
246 VMRHF XT0,XA0,XA1 # transpose data
247 VMRHF XT1,XA2,XA3
248 VMRLF XT2,XA0,XA1
249 VMRLF XT3,XA2,XA3
250 VPDI XA0,XT0,XT1,0b0000
251 VPDI XA1,XT0,XT1,0b0101
252 VPDI XA2,XT2,XT3,0b0000
253 VPDI XA3,XT2,XT3,0b0101
254
255 VMRHF XT0,XB0,XB1
256 VMRHF XT1,XB2,XB3
257 VMRLF XT2,XB0,XB1
258 VMRLF XT3,XB2,XB3
259 VPDI XB0,XT0,XT1,0b0000
260 VPDI XB1,XT0,XT1,0b0101
261 VPDI XB2,XT2,XT3,0b0000
262 VPDI XB3,XT2,XT3,0b0101
263
264 VMRHF XT0,XC0,XC1
265 VMRHF XT1,XC2,XC3
266 VMRLF XT2,XC0,XC1
267 VMRLF XT3,XC2,XC3
268 VPDI XC0,XT0,XT1,0b0000
269 VPDI XC1,XT0,XT1,0b0101
270 VPDI XC2,XT2,XT3,0b0000
271 VPDI XC3,XT2,XT3,0b0101
272
273 VMRHF XT0,XD0,XD1
274 VMRHF XT1,XD2,XD3
275 VMRLF XT2,XD0,XD1
276 VMRLF XT3,XD2,XD3
277 VPDI XD0,XT0,XT1,0b0000
278 VPDI XD1,XT0,XT1,0b0101
279 VPDI XD2,XT2,XT3,0b0000
280 VPDI XD3,XT2,XT3,0b0101
281
282 VAF XA0,XA0,K0
283 VAF XB0,XB0,K1
284 VAF XC0,XC0,K2
285 VAF XD0,XD0,K3
286
287 VPERM XA0,XA0,XA0,BEPERM
288 VPERM XB0,XB0,XB0,BEPERM
289 VPERM XC0,XC0,XC0,BEPERM
290 VPERM XD0,XD0,XD0,BEPERM
291
292 VLM XT0,XT3,0,INP,0
293
294 VX XT0,XT0,XA0
295 VX XT1,XT1,XB0
296 VX XT2,XT2,XC0
297 VX XT3,XT3,XD0
298
299 VSTM XT0,XT3,0,OUT,0
300
301 la INP,0x40(INP)
302 la OUT,0x40(OUT)
303 aghi LEN,-0x40
304
305 VAF XA0,XA1,K0
306 VAF XB0,XB1,K1
307 VAF XC0,XC1,K2
308 VAF XD0,XD1,K3
309
310 VPERM XA0,XA0,XA0,BEPERM
311 VPERM XB0,XB0,XB0,BEPERM
312 VPERM XC0,XC0,XC0,BEPERM
313 VPERM XD0,XD0,XD0,BEPERM
314
> 315 clgfi LEN,0x40
316 jl .Ltail_4x
317
318 VLM XT0,XT3,0,INP,0
319
320 VX XT0,XT0,XA0
321 VX XT1,XT1,XB0
322 VX XT2,XT2,XC0
323 VX XT3,XT3,XD0
324
325 VSTM XT0,XT3,0,OUT,0
326
327 la INP,0x40(INP)
328 la OUT,0x40(OUT)
329 aghi LEN,-0x40
330 je .Ldone_4x
331
332 VAF XA0,XA2,K0
333 VAF XB0,XB2,K1
334 VAF XC0,XC2,K2
335 VAF XD0,XD2,K3
336
337 VPERM XA0,XA0,XA0,BEPERM
338 VPERM XB0,XB0,XB0,BEPERM
339 VPERM XC0,XC0,XC0,BEPERM
340 VPERM XD0,XD0,XD0,BEPERM
341
342 clgfi LEN,0x40
343 jl .Ltail_4x
344
345 VLM XT0,XT3,0,INP,0
346
347 VX XT0,XT0,XA0
348 VX XT1,XT1,XB0
349 VX XT2,XT2,XC0
350 VX XT3,XT3,XD0
351
352 VSTM XT0,XT3,0,OUT,0
353
354 la INP,0x40(INP)
355 la OUT,0x40(OUT)
356 aghi LEN,-0x40
357 je .Ldone_4x
358
359 VAF XA0,XA3,K0
360 VAF XB0,XB3,K1
361 VAF XC0,XC3,K2
362 VAF XD0,XD3,K3
363
364 VPERM XA0,XA0,XA0,BEPERM
365 VPERM XB0,XB0,XB0,BEPERM
366 VPERM XC0,XC0,XC0,BEPERM
367 VPERM XD0,XD0,XD0,BEPERM
368
369 clgfi LEN,0x40
370 jl .Ltail_4x
371
372 VLM XT0,XT3,0,INP,0
373
374 VX XT0,XT0,XA0
375 VX XT1,XT1,XB0
376 VX XT2,XT2,XC0
377 VX XT3,XT3,XD0
378
379 VSTM XT0,XT3,0,OUT,0
380
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH] power_supply: Register cooling device outside of probe
by kernel test robot
Hi Manaf,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on sre-power-supply/for-next]
[also build test ERROR on v5.16-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/Manaf-Meethalavalappu-Pallikunhi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next
config: openrisc-randconfig-r033-20211213 (https://download.01.org/0day-ci/archive/20211214/202112140005.7PqxIClA-lk...)
compiler: or1k-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/e5930a7ed9ae1b121e0dde177184ff74a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Manaf-Meethalavalappu-Pallikunhi/power_supply-Register-cooling-device-outside-of-probe/20211213-191238
git checkout e5930a7ed9ae1b121e0dde177184ff74abbf0371
# 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=openrisc SHELL=/bin/bash drivers/power/supply/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/power/supply/power_supply_core.c:1086:12: error: conflicting types for 'psy_register_cooler'; have 'int(struct power_supply *)'
1086 | static int psy_register_cooler(struct power_supply *psy)
| ^~~~~~~~~~~~~~~~~~~
drivers/power/supply/power_supply_core.c:129:12: note: previous declaration of 'psy_register_cooler' with type 'int(struct device *, struct power_supply *)'
129 | static int psy_register_cooler(struct device *dev, struct power_supply *psy);
| ^~~~~~~~~~~~~~~~~~~
>> drivers/power/supply/power_supply_core.c:129:12: warning: 'psy_register_cooler' used but never defined
drivers/power/supply/power_supply_core.c:1086:12: warning: 'psy_register_cooler' defined but not used [-Wunused-function]
1086 | static int psy_register_cooler(struct power_supply *psy)
| ^~~~~~~~~~~~~~~~~~~
vim +1086 drivers/power/supply/power_supply_core.c
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1085
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 @1086 static int psy_register_cooler(struct power_supply *psy)
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1087 {
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1088 /* Register for cooling device if psy can control charging */
9ba533eb99bb2a drivers/power/supply/power_supply_core.c Matthias Kaehlcke 2021-09-01 1089 if (psy_has_property(psy->desc, POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT)) {
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1090 psy->tcd = thermal_cooling_device_register(
297d716f6260cc drivers/power/power_supply_core.c Krzysztof Kozlowski 2015-03-12 1091 (char *)psy->desc->name,
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1092 psy, &psy_tcd_ops);
9d2410c79b5b2d drivers/power/power_supply_core.c Viresh Kumar 2014-09-04 1093 return PTR_ERR_OR_ZERO(psy->tcd);
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1094 }
9ba533eb99bb2a drivers/power/supply/power_supply_core.c Matthias Kaehlcke 2021-09-01 1095
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1096 return 0;
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1097 }
952aeeb3ee28bc drivers/power/power_supply_core.c Ramakrishna Pallala 2012-10-09 1098
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[PATCH] arm64: kexec: Fix missing error code 'ret' warning in load_other_segments()
by Lakshmi Ramasubramanian
Since commit ac10be5cdbfa ("arm64: Use common
of_kexec_alloc_and_setup_fdt()"), smatch reports the following warning:
arch/arm64/kernel/machine_kexec_file.c:152 load_other_segments()
warn: missing error code 'ret'
Return code is not set to an error code in load_other_segments() when
of_kexec_alloc_and_setup_fdt() call returns a NULL dtb. This results
in status success (return code set to 0) being returned from
load_other_segments().
Set return code to -EINVAL if of_kexec_alloc_and_setup_fdt() returns
NULL dtb.
Signed-off-by: Lakshmi Ramasubramanian <nramas(a)linux.microsoft.com>
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
Fixes: ac10be5cdbfa ("arm64: Use common of_kexec_alloc_and_setup_fdt()")
---
arch/arm64/kernel/machine_kexec_file.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/kernel/machine_kexec_file.c b/arch/arm64/kernel/machine_kexec_file.c
index 63634b4d72c1..59c648d51848 100644
--- a/arch/arm64/kernel/machine_kexec_file.c
+++ b/arch/arm64/kernel/machine_kexec_file.c
@@ -149,6 +149,7 @@ int load_other_segments(struct kimage *image,
initrd_len, cmdline, 0);
if (!dtb) {
pr_err("Preparing for new dtb failed\n");
+ ret = -EINVAL;
goto out_err;
}
--
2.25.1
9 months, 1 week
[linux-next:master 5987/6579] fs/ext4/super.c:2689:51: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: ea922272cbe547bdf58da2aaf240d59782c6a009
commit: e6e268cb682290da29e3c8408493a4474307b8cc [5987/6579] ext4: move quota configuration out of handle_mount_opt()
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20211214/202112140056.bsyRT9Ju-lk...)
compiler: sh4-linux-gcc (GCC) 11.2.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.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e6e268cb682290da29e3c8408493a4474307b8cc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sh SHELL=/bin/bash fs/ext4/
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 >>)
>> fs/ext4/super.c:2689:51: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *__cs @@ got char [noderef] __rcu * @@
fs/ext4/super.c:2689:51: sparse: expected char const *__cs
fs/ext4/super.c:2689:51: sparse: got char [noderef] __rcu *
fs/ext4/super.c:2657:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *objp @@ got char [noderef] __rcu * @@
fs/ext4/super.c:2657:38: sparse: expected void const *objp
fs/ext4/super.c:2657:38: sparse: got char [noderef] __rcu *
vim +2689 fs/ext4/super.c
2663
2664 /*
2665 * Check quota settings consistency.
2666 */
2667 static int ext4_check_quota_consistency(struct fs_context *fc,
2668 struct super_block *sb)
2669 {
2670 #ifdef CONFIG_QUOTA
2671 struct ext4_fs_context *ctx = fc->fs_private;
2672 struct ext4_sb_info *sbi = EXT4_SB(sb);
2673 bool quota_feature = ext4_has_feature_quota(sb);
2674 bool quota_loaded = sb_any_quota_loaded(sb);
2675 int i;
2676
2677 if (ctx->qname_spec && quota_loaded) {
2678 if (quota_feature)
2679 goto err_feature;
2680
2681 for (i = 0; i < EXT4_MAXQUOTAS; i++) {
2682 if (!(ctx->qname_spec & (1 << i)))
2683 continue;
2684
2685 if (!!sbi->s_qf_names[i] != !!ctx->s_qf_names[i])
2686 goto err_jquota_change;
2687
2688 if (sbi->s_qf_names[i] && ctx->s_qf_names[i] &&
> 2689 strcmp(sbi->s_qf_names[i],
2690 ctx->s_qf_names[i]) != 0)
2691 goto err_jquota_specified;
2692 }
2693 }
2694
2695 if (ctx->s_jquota_fmt) {
2696 if (sbi->s_jquota_fmt != ctx->s_jquota_fmt && quota_loaded)
2697 goto err_quota_change;
2698 if (quota_feature) {
2699 ext4_msg(NULL, KERN_INFO, "Quota format mount options "
2700 "ignored when QUOTA feature is enabled");
2701 return 0;
2702 }
2703 }
2704 return 0;
2705
2706 err_quota_change:
2707 ext4_msg(NULL, KERN_ERR,
2708 "Cannot change quota options when quota turned on");
2709 return -EINVAL;
2710 err_jquota_change:
2711 ext4_msg(NULL, KERN_ERR, "Cannot change journaled quota "
2712 "options when quota turned on");
2713 return -EINVAL;
2714 err_jquota_specified:
2715 ext4_msg(NULL, KERN_ERR, "%s quota file already specified",
2716 QTYPE2NAME(i));
2717 return -EINVAL;
2718 err_feature:
2719 ext4_msg(NULL, KERN_ERR, "Journaled quota options ignored "
2720 "when QUOTA feature is enabled");
2721 return 0;
2722 #else
2723 return 0;
2724 #endif
2725 }
2726
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH RESEND v7 12/12] drm/i915: Move the GGTT from i915 private data to the GT
by kernel test robot
Hi Andi,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on drm/drm-next]
[cannot apply to drm-intel/for-linux-next drm-exynos/exynos-drm-next v5.16-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/Andi-Shyti/More-preparation-for-...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: x86_64-randconfig-a003-20211213 (https://download.01.org/0day-ci/archive/20211213/202112132358.IwEcWeWW-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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/98ef49d710790dda7a193c10b5b7f2851...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andi-Shyti/More-preparation-for-multi-gt-patches/20211212-232416
git checkout 98ef49d710790dda7a193c10b5b7f28516f730bc
# 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>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gvt/gtt.c:321:25: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:282:41: note: passing argument to parameter 'ggtt' here
static u64 read_pte64(struct i915_ggtt *ggtt, unsigned long index)
^
drivers/gpu/drm/i915/gvt/gtt.c:346:15: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, index, e->val64);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2900:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
drivers/gpu/drm/i915/gvt/gtt.c:2908:17: error: passing 'struct i915_ggtt' to parameter of incompatible type 'struct i915_ggtt *'; take the address with &
write_pte64(vgpu->gvt->gt->ggtt, offset + idx, pte);
^~~~~~~~~~~~~~~~~~~
&
drivers/gpu/drm/i915/gvt/gtt.c:296:43: note: passing argument to parameter 'ggtt' here
static void write_pte64(struct i915_ggtt *ggtt, unsigned long index, u64 pte)
^
4 errors generated.
vim +321 drivers/gpu/drm/i915/gvt/gtt.c
2707e44466881d Zhi Wang 2016-03-28 302
4b2dbbc22541e4 Changbin Du 2017-08-02 303 static inline int gtt_get_entry64(void *pt,
2707e44466881d Zhi Wang 2016-03-28 304 struct intel_gvt_gtt_entry *e,
2707e44466881d Zhi Wang 2016-03-28 305 unsigned long index, bool hypervisor_access, unsigned long gpa,
2707e44466881d Zhi Wang 2016-03-28 306 struct intel_vgpu *vgpu)
2707e44466881d Zhi Wang 2016-03-28 307 {
2707e44466881d Zhi Wang 2016-03-28 308 const struct intel_gvt_device_info *info = &vgpu->gvt->device_info;
2707e44466881d Zhi Wang 2016-03-28 309 int ret;
2707e44466881d Zhi Wang 2016-03-28 310
2707e44466881d Zhi Wang 2016-03-28 311 if (WARN_ON(info->gtt_entry_size != 8))
4b2dbbc22541e4 Changbin Du 2017-08-02 312 return -EINVAL;
2707e44466881d Zhi Wang 2016-03-28 313
2707e44466881d Zhi Wang 2016-03-28 314 if (hypervisor_access) {
2707e44466881d Zhi Wang 2016-03-28 315 ret = intel_gvt_hypervisor_read_gpa(vgpu, gpa +
2707e44466881d Zhi Wang 2016-03-28 316 (index << info->gtt_entry_size_shift),
2707e44466881d Zhi Wang 2016-03-28 317 &e->val64, 8);
4b2dbbc22541e4 Changbin Du 2017-08-02 318 if (WARN_ON(ret))
4b2dbbc22541e4 Changbin Du 2017-08-02 319 return ret;
2707e44466881d Zhi Wang 2016-03-28 320 } else if (!pt) {
a61ac1e75105a0 Chris Wilson 2020-03-06 @321 e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index);
2707e44466881d Zhi Wang 2016-03-28 322 } else {
2707e44466881d Zhi Wang 2016-03-28 323 e->val64 = *((u64 *)pt + index);
2707e44466881d Zhi Wang 2016-03-28 324 }
4b2dbbc22541e4 Changbin Du 2017-08-02 325 return 0;
2707e44466881d Zhi Wang 2016-03-28 326 }
2707e44466881d Zhi Wang 2016-03-28 327
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH] power_supply: Register cooling device outside of probe
by kernel test robot
Hi Manaf,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on sre-power-supply/for-next]
[also build test WARNING on v5.16-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/Manaf-Meethalavalappu-Pallikunhi...
base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next
config: i386-randconfig-s001-20211213 (https://download.01.org/0day-ci/archive/20211213/202112132307.mubGFyNy-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/e5930a7ed9ae1b121e0dde177184ff74a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Manaf-Meethalavalappu-Pallikunhi/power_supply-Register-cooling-device-outside-of-probe/20211213-191238
git checkout e5930a7ed9ae1b121e0dde177184ff74abbf0371
# 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 drivers/power/supply/
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/power/supply/power_supply_core.c:1086:12: error: conflicting types for 'psy_register_cooler'
1086 | static int psy_register_cooler(struct power_supply *psy)
| ^~~~~~~~~~~~~~~~~~~
drivers/power/supply/power_supply_core.c:129:12: note: previous declaration of 'psy_register_cooler' was here
129 | static int psy_register_cooler(struct device *dev, struct power_supply *psy);
| ^~~~~~~~~~~~~~~~~~~
>> drivers/power/supply/power_supply_core.c:129:12: warning: 'psy_register_cooler' used but never defined
drivers/power/supply/power_supply_core.c:1086:12: warning: 'psy_register_cooler' defined but not used [-Wunused-function]
1086 | static int psy_register_cooler(struct power_supply *psy)
| ^~~~~~~~~~~~~~~~~~~
vim +/psy_register_cooler +129 drivers/power/supply/power_supply_core.c
128
> 129 static int psy_register_cooler(struct device *dev, struct power_supply *psy);
130 /*
131 * Notify that power supply was registered after parent finished the probing.
132 *
133 * Often power supply is registered from driver's probe function. However
134 * calling power_supply_changed() directly from power_supply_register()
135 * would lead to execution of get_property() function provided by the driver
136 * too early - before the probe ends.
137 * Also, registering cooling device from the probe will execute the
138 * get_property() function. So register the cooling device after the probe.
139 *
140 * Avoid that by waiting on parent's mutex.
141 */
142 static void power_supply_deferred_register_work(struct work_struct *work)
143 {
144 struct power_supply *psy = container_of(work, struct power_supply,
145 deferred_register_work.work);
146
147 if (psy->dev.parent) {
148 while (!mutex_trylock(&psy->dev.parent->mutex)) {
149 if (psy->removing)
150 return;
151 msleep(10);
152 }
153 }
154
155 power_supply_changed(psy);
156 psy_register_cooler(psy->dev.parent, psy);
157
158 if (psy->dev.parent)
159 mutex_unlock(&psy->dev.parent->mutex);
160 }
161
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[zx2c4-wireguard:stable 1/1] arch/x86/crypto/curve25519-x86_64.c:1135:15: error: passing 'const u64 *' (aka 'const unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long long *') discards qualifiers
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git stable
head: 4bd76aceb9f2887c6ddfeb1594a0ac0fe863dc7c
commit: 4bd76aceb9f2887c6ddfeb1594a0ac0fe863dc7c [1/1] crypto: x86/curve25519 - use in/out register constraints more precisely
config: x86_64-buildonly-randconfig-r004-20211213 (https://download.01.org/0day-ci/archive/20211213/202112132233.pOx31Nie-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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/zx2c4/wireguard-linux.git...
git remote add zx2c4-wireguard https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git
git fetch --no-tags zx2c4-wireguard stable
git checkout 4bd76aceb9f2887c6ddfeb1594a0ac0fe863dc7c
# 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 arch/x86/ drivers/gpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/crypto/curve25519-x86_64.c:1135:15: error: passing 'const u64 *' (aka 'const unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long long *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
fmul(b, t00, i, tmp);
^
arch/x86/crypto/curve25519-x86_64.c:159:49: note: passing argument to parameter 'f2' here
static inline void fmul(u64 *out, u64 *f1, u64 *f2, u64 *tmp)
^
arch/x86/crypto/curve25519-x86_64.c:1218:17: error: passing 'const u64 *' (aka 'const unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long long *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
fmul(tmp, tmp, x, tmp_w);
^
arch/x86/crypto/curve25519-x86_64.c:159:49: note: passing argument to parameter 'f2' here
static inline void fmul(u64 *out, u64 *f1, u64 *f2, u64 *tmp)
^
arch/x86/crypto/curve25519-x86_64.c:1574:12: error: passing 'const u64 *' (aka 'const unsigned long long *') to parameter of type 'u64 *' (aka 'unsigned long long *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
fmul(c, &table_ladder[4 * k], b, ef);
^~~~~~~~~~~~~~~~~~~~
arch/x86/crypto/curve25519-x86_64.c:159:40: note: passing argument to parameter 'f1' here
static inline void fmul(u64 *out, u64 *f1, u64 *f2, u64 *tmp)
^
3 errors generated.
vim +1135 arch/x86/crypto/curve25519-x86_64.c
bb611bdfd6be34 Jason A. Donenfeld 2019-11-08 1122
07b586fe06625b Jason A. Donenfeld 2020-01-20 1123 static void finv(u64 *o, const u64 *i, u64 *tmp)
bb611bdfd6be34 Jason A. Donenfeld 2019-11-08 1124 {
07b586fe06625b Jason A. Donenfeld 2020-01-20 1125 u64 t1[16U] = { 0U };
07b586fe06625b Jason A. Donenfeld 2020-01-20 1126 u64 *a0 = t1;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1127 u64 *b = t1 + (u32)4U;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1128 u64 *c = t1 + (u32)8U;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1129 u64 *t00 = t1 + (u32)12U;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1130 u64 *tmp1 = tmp;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1131 u64 *a;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1132 u64 *t0;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1133 fsquare_times(a0, i, tmp1, (u32)1U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1134 fsquare_times(t00, a0, tmp1, (u32)2U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 @1135 fmul(b, t00, i, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1136 fmul(a0, b, a0, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1137 fsquare_times(t00, a0, tmp1, (u32)1U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1138 fmul(b, t00, b, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1139 fsquare_times(t00, b, tmp1, (u32)5U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1140 fmul(b, t00, b, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1141 fsquare_times(t00, b, tmp1, (u32)10U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1142 fmul(c, t00, b, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1143 fsquare_times(t00, c, tmp1, (u32)20U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1144 fmul(t00, t00, c, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1145 fsquare_times(t00, t00, tmp1, (u32)10U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1146 fmul(b, t00, b, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1147 fsquare_times(t00, b, tmp1, (u32)50U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1148 fmul(c, t00, b, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1149 fsquare_times(t00, c, tmp1, (u32)100U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1150 fmul(t00, t00, c, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1151 fsquare_times(t00, t00, tmp1, (u32)50U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1152 fmul(t00, t00, b, tmp);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1153 fsquare_times(t00, t00, tmp1, (u32)5U);
07b586fe06625b Jason A. Donenfeld 2020-01-20 1154 a = t1;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1155 t0 = t1 + (u32)12U;
07b586fe06625b Jason A. Donenfeld 2020-01-20 1156 fmul(o, t0, a, tmp);
bb611bdfd6be34 Jason A. Donenfeld 2019-11-08 1157 }
bb611bdfd6be34 Jason A. Donenfeld 2019-11-08 1158
:::::: The code at line 1135 was first introduced by commit
:::::: 07b586fe06625b0b610dc3d3a969c51913d143d4 crypto: x86/curve25519 - replace with formally verified implementation
:::::: TO: Jason A. Donenfeld <Jason(a)zx2c4.com>
:::::: CC: Herbert Xu <herbert(a)gondor.apana.org.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
drivers/remoteproc/imx_rproc.c:298:12: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
Hi Peng,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2585cf9dfaaddf00b069673f27bb3f8530e2039c
commit: 2df7062002d0263bde70b453f671bb4f8493e169 remoteproc: imx_proc: enable virtio/mailbox
date: 9 months ago
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20211213/202112132256.jCxIHiiN-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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.4-dirty
# 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 2df7062002d0263bde70b453f671bb4f8493e169
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash drivers/dma/ drivers/gpu/drm/tegra/ drivers/net/wireless/mediatek/mt76/mt7915/ drivers/remoteproc/ drivers/staging/ fs/proc/
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 >>)
>> drivers/remoteproc/imx_rproc.c:298:12: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *va @@ got void [noderef] __iomem * @@
drivers/remoteproc/imx_rproc.c:298:12: sparse: expected void *va
drivers/remoteproc/imx_rproc.c:298:12: sparse: got void [noderef] __iomem *
>> drivers/remoteproc/imx_rproc.c:315:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *iomem_cookie @@ got void *va @@
drivers/remoteproc/imx_rproc.c:315:20: sparse: expected void volatile [noderef] __iomem *iomem_cookie
drivers/remoteproc/imx_rproc.c:315:20: sparse: got void *va
vim +298 drivers/remoteproc/imx_rproc.c
a0ff4aa6f01080 Oleksij Rempel 2017-08-17 290
b29b4249f8f0ca Peng Fan 2021-03-06 291 static int imx_rproc_mem_alloc(struct rproc *rproc,
b29b4249f8f0ca Peng Fan 2021-03-06 292 struct rproc_mem_entry *mem)
b29b4249f8f0ca Peng Fan 2021-03-06 293 {
b29b4249f8f0ca Peng Fan 2021-03-06 294 struct device *dev = rproc->dev.parent;
b29b4249f8f0ca Peng Fan 2021-03-06 295 void *va;
b29b4249f8f0ca Peng Fan 2021-03-06 296
b29b4249f8f0ca Peng Fan 2021-03-06 297 dev_dbg(dev, "map memory: %p+%zx\n", &mem->dma, mem->len);
b29b4249f8f0ca Peng Fan 2021-03-06 @298 va = ioremap_wc(mem->dma, mem->len);
b29b4249f8f0ca Peng Fan 2021-03-06 299 if (IS_ERR_OR_NULL(va)) {
b29b4249f8f0ca Peng Fan 2021-03-06 300 dev_err(dev, "Unable to map memory region: %p+%zx\n",
b29b4249f8f0ca Peng Fan 2021-03-06 301 &mem->dma, mem->len);
b29b4249f8f0ca Peng Fan 2021-03-06 302 return -ENOMEM;
b29b4249f8f0ca Peng Fan 2021-03-06 303 }
b29b4249f8f0ca Peng Fan 2021-03-06 304
b29b4249f8f0ca Peng Fan 2021-03-06 305 /* Update memory entry va */
b29b4249f8f0ca Peng Fan 2021-03-06 306 mem->va = va;
b29b4249f8f0ca Peng Fan 2021-03-06 307
b29b4249f8f0ca Peng Fan 2021-03-06 308 return 0;
b29b4249f8f0ca Peng Fan 2021-03-06 309 }
b29b4249f8f0ca Peng Fan 2021-03-06 310
b29b4249f8f0ca Peng Fan 2021-03-06 311 static int imx_rproc_mem_release(struct rproc *rproc,
b29b4249f8f0ca Peng Fan 2021-03-06 312 struct rproc_mem_entry *mem)
b29b4249f8f0ca Peng Fan 2021-03-06 313 {
b29b4249f8f0ca Peng Fan 2021-03-06 314 dev_dbg(rproc->dev.parent, "unmap memory: %pa\n", &mem->dma);
b29b4249f8f0ca Peng Fan 2021-03-06 @315 iounmap(mem->va);
b29b4249f8f0ca Peng Fan 2021-03-06 316
b29b4249f8f0ca Peng Fan 2021-03-06 317 return 0;
b29b4249f8f0ca Peng Fan 2021-03-06 318 }
b29b4249f8f0ca Peng Fan 2021-03-06 319
:::::: The code at line 298 was first introduced by commit
:::::: b29b4249f8f0cad1a1787cbe59e638ff23d489ed remoteproc: imx_rproc: add i.MX specific parse fw hook
:::::: TO: Peng Fan <peng.fan(a)nxp.com>
:::::: CC: Bjorn Andersson <bjorn.andersson(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week