[linux-rt-devel:linux-5.13.y-rt-testing 207/227] include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared; did you mean 'TIF_NEED_RESCHED'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.13.y-rt-testing
head: cdfc6ae55ef52147859af8c8a9f82c4858eed749
commit: f2f9e496208c584356e84e720a3dfd99970ee5e9 [207/227] x86: Support for lazy preemption
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.13.y-rt-testing
git checkout f2f9e496208c584356e84e720a3dfd99970ee5e9
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash kernel/
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 kernel/entry/common.c:4:
kernel/entry/common.c: In function 'exit_to_user_mode_loop':
>> include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared (first use in this function); did you mean 'TIF_NEED_RESCHED'?
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/entry/common.c:158:19: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
158 | while (ti_work & EXIT_TO_USER_MODE_WORK) {
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/entry-common.h:62:3: note: each undeclared identifier is reported only once for each function it appears in
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/entry/common.c:158:19: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
158 | while (ti_work & EXIT_TO_USER_MODE_WORK) {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from arch/s390/include/asm/ptrace.h:10,
from arch/s390/include/asm/lowcore.h:13,
from arch/s390/include/asm/current.h:13,
from include/linux/sched.h:12,
from include/linux/context_tracking.h:5,
from kernel/entry/common.c:3:
kernel/entry/common.c: In function 'exit_to_user_mode_prepare':
>> include/linux/entry-common.h:62:3: error: '_TIF_NEED_RESCHED_MASK' undeclared (first use in this function); did you mean 'TIF_NEED_RESCHED'?
62 | _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
kernel/entry/common.c:216:25: note: in expansion of macro 'EXIT_TO_USER_MODE_WORK'
216 | if (unlikely(ti_work & EXIT_TO_USER_MODE_WORK))
| ^~~~~~~~~~~~~~~~~~~~~~
vim +62 include/linux/entry-common.h
59
60 #define EXIT_TO_USER_MODE_WORK \
61 (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
> 62 _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
63 ARCH_EXIT_TO_USER_MODE_WORK)
64
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[hare-scsi-devel:auth.v2 3/12] lib/base64.c:27:5: warning: no previous prototype for 'base64_encode'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git auth.v2
head: 9107ea4a3526c6801b38b7a2345b7372278a35ba
commit: 245c033d4a03bc806ab510cf072583c9076eb9d2 [3/12] lib/base64: RFC4648-compliant base64 encoding
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel auth.v2
git checkout 245c033d4a03bc806ab510cf072583c9076eb9d2
# save the attached .config to linux build tree
make W=1 ARCH=um SUBARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> lib/base64.c:27:5: warning: no previous prototype for 'base64_encode' [-Wmissing-prototypes]
27 | int base64_encode(const u8 *src, int len, char *dst)
| ^~~~~~~~~~~~~
>> lib/base64.c:74:5: warning: no previous prototype for 'base64_decode' [-Wmissing-prototypes]
74 | int base64_decode(const char *src, int len, u8 *dst)
| ^~~~~~~~~~~~~
vim +/base64_encode +27 lib/base64.c
12
13 static const char lookup_table[65] =
14 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
15
16 /**
17 * base64_encode() - base64-encode some bytes
18 * @src: the bytes to encode
19 * @len: number of bytes to encode
20 * @dst: (output) the base64-encoded string. Not NUL-terminated.
21 *
22 * Encodes the input string using characters from the set [A-Za-z0-9+,].
23 * The encoded string is roughly 4/3 times the size of the input string.
24 *
25 * Return: length of the encoded string
26 */
> 27 int base64_encode(const u8 *src, int len, char *dst)
28 {
29 int i, bits = 0;
30 u32 ac = 0;
31 char *cp = dst;
32
33 for (i = 0; i < len; i++) {
34 ac = (ac << 8) | src[i];
35 bits += 8;
36 if (bits < 24)
37 continue;
38 do {
39 bits -= 6;
40 *cp++ = lookup_table[(ac >> bits) & 0x3f];
41 } while (bits);
42 ac = 0;
43 }
44 if (bits) {
45 int more = 0;
46
47 if (bits < 16)
48 more = 2;
49 ac = (ac << (2 + more));
50 bits += (2 + more);
51 do {
52 bits -= 6;
53 *cp++ = lookup_table[(ac >> bits) & 0x3f];
54 } while (bits);
55 *cp++ = '=';
56 if (more)
57 *cp++ = '=';
58 }
59
60 return cp - dst;
61 }
62 EXPORT_SYMBOL_GPL(base64_encode);
63
64 /**
65 * base64_decode() - base64-decode some bytes
66 * @src: the base64-encoded string to decode
67 * @len: number of bytes to decode
68 * @dst: (output) the decoded bytes.
69 *
70 * Decodes the base64-encoded bytes @src according to RFC 4648.
71 *
72 * Return: number of decoded bytes
73 */
> 74 int base64_decode(const char *src, int len, u8 *dst)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[linux-rt-devel:linux-5.13.y-rt-testing 10/227] kernel/printk/printk.c:2790:9: error: implicit declaration of function 'read_console_seq'; did you mean 'up_console_sem'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.13.y-rt-testing
head: cdfc6ae55ef52147859af8c8a9f82c4858eed749
commit: 4b788a578cc2be37f1761f07407a9d920ecb0671 [10/227] printk: introduce kernel sync mode
config: m68k-randconfig-r005-20210712 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.13.y-rt-testing
git checkout 4b788a578cc2be37f1761f07407a9d920ecb0671
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/printk/printk.c:177:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes]
177 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/printk/printk.c:2428:2: error: #error FIXME
2428 | #error FIXME
| ^~~~~
kernel/printk/printk.c: In function 'console_unlock':
>> kernel/printk/printk.c:2790:9: error: implicit declaration of function 'read_console_seq'; did you mean 'up_console_sem'? [-Werror=implicit-function-declaration]
2790 | seq = read_console_seq();
| ^~~~~~~~~~~~~~~~
| up_console_sem
kernel/printk/printk.c:2796:4: error: implicit declaration of function 'latched_seq_write' [-Werror=implicit-function-declaration]
2796 | latched_seq_write(&console_seq, r.info->seq);
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +2790 kernel/printk/printk.c
2724
2725 /**
2726 * console_unlock - unlock the console system
2727 *
2728 * Releases the console_lock which the caller holds on the console system
2729 * and the console driver list.
2730 *
2731 * While the console_lock was held, console output may have been buffered
2732 * by printk(). If this is the case, console_unlock(); emits
2733 * the output prior to releasing the lock.
2734 *
2735 * If there is output waiting, we wake /dev/kmsg and syslog() users.
2736 *
2737 * console_unlock(); may be called from any context.
2738 */
2739 void console_unlock(void)
2740 {
2741 static char ext_text[CONSOLE_EXT_LOG_MAX];
2742 static char text[CONSOLE_LOG_MAX];
2743 unsigned long flags;
2744 bool do_cond_resched, retry;
2745 struct printk_info info;
2746 struct printk_record r;
2747 u64 seq;
2748
2749 if (console_suspended) {
2750 up_console_sem();
2751 return;
2752 }
2753
2754 prb_rec_init_rd(&r, &info, text, sizeof(text));
2755
2756 /*
2757 * Console drivers are called with interrupts disabled, so
2758 * @console_may_schedule should be cleared before; however, we may
2759 * end up dumping a lot of lines, for example, if called from
2760 * console registration path, and should invoke cond_resched()
2761 * between lines if allowable. Not doing so can cause a very long
2762 * scheduling stall on a slow console leading to RCU stall and
2763 * softlockup warnings which exacerbate the issue with more
2764 * messages practically incapacitating the system.
2765 *
2766 * console_trylock() is not able to detect the preemptive
2767 * context reliably. Therefore the value must be stored before
2768 * and cleared after the "again" goto label.
2769 */
2770 do_cond_resched = console_may_schedule;
2771 again:
2772 console_may_schedule = 0;
2773
2774 /*
2775 * We released the console_sem lock, so we need to recheck if
2776 * cpu is online and (if not) is there at least one CON_ANYTIME
2777 * console.
2778 */
2779 if (!can_use_console()) {
2780 console_locked = 0;
2781 up_console_sem();
2782 return;
2783 }
2784
2785 for (;;) {
2786 size_t ext_len = 0;
2787 size_t len;
2788
2789 skip:
> 2790 seq = read_console_seq();
2791 if (!prb_read_valid(prb, seq, &r))
2792 break;
2793
2794 if (seq != r.info->seq) {
2795 console_dropped += r.info->seq - seq;
2796 latched_seq_write(&console_seq, r.info->seq);
2797 seq = r.info->seq;
2798 }
2799
2800 if (suppress_message_printing(r.info->level)) {
2801 /*
2802 * Skip record we have buffered and already printed
2803 * directly to the console when we received it, and
2804 * record that has level above the console loglevel.
2805 */
2806 latched_seq_write(&console_seq, seq + 1);
2807 goto skip;
2808 }
2809
2810 /* Output to all consoles once old messages replayed. */
2811 if (unlikely(exclusive_console &&
2812 seq >= exclusive_console_stop_seq)) {
2813 exclusive_console = NULL;
2814 }
2815
2816 /*
2817 * Handle extended console text first because later
2818 * record_print_text() will modify the record buffer in-place.
2819 */
2820 if (nr_ext_console_drivers) {
2821 ext_len = info_print_ext_header(ext_text,
2822 sizeof(ext_text),
2823 r.info);
2824 ext_len += msg_print_ext_body(ext_text + ext_len,
2825 sizeof(ext_text) - ext_len,
2826 &r.text_buf[0],
2827 r.info->text_len,
2828 &r.info->dev_info);
2829 }
2830 len = record_print_text(&r,
2831 console_msg_format & MSG_FORMAT_SYSLOG,
2832 printk_time);
2833 latched_seq_write(&console_seq, seq + 1);
2834
2835 printk_safe_enter_irqsave(flags);
2836
2837 /*
2838 * While actively printing out messages, if another printk()
2839 * were to occur on another CPU, it may wait for this one to
2840 * finish. This task can not be preempted if there is a
2841 * waiter waiting to take over.
2842 */
2843 console_lock_spinning_enable();
2844
2845 stop_critical_timings(); /* don't trace print latency */
2846 call_console_drivers(ext_text, ext_len, text, len);
2847 start_critical_timings();
2848
2849 if (console_lock_spinning_disable_and_check()) {
2850 printk_safe_exit_irqrestore(flags);
2851 return;
2852 }
2853
2854 printk_safe_exit_irqrestore(flags);
2855
2856 if (do_cond_resched)
2857 cond_resched();
2858 }
2859
2860 console_locked = 0;
2861
2862 up_console_sem();
2863
2864 /*
2865 * Someone could have filled up the buffer again, so re-check if there's
2866 * something to flush. In case we cannot trylock the console_sem again,
2867 * there's a new owner and the console_unlock() from them will do the
2868 * flush, no worries.
2869 */
2870 retry = prb_read_valid(prb, read_console_seq(), NULL);
2871 if (retry && console_trylock())
2872 goto again;
2873 }
2874 EXPORT_SYMBOL(console_unlock);
2875
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[hare-scsi-devel:auth.v2 7/12] drivers/nvme/target/../target/nvmet.h:728:1: warning: type qualifiers ignored on function return type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git auth.v2
head: 9107ea4a3526c6801b38b7a2345b7372278a35ba
commit: ca7a6b4cc19e4383ec693c75bb5c6f678b692a14 [7/12] nvmet: Implement basic In-Band Authentication
config: parisc-randconfig-r011-20210712 (attached as .config)
compiler: hppa64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel auth.v2
git checkout ca7a6b4cc19e4383ec693c75bb5c6f678b692a14
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
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 drivers/nvme/target/fcloop.c:11:
>> drivers/nvme/target/../target/nvmet.h:728:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
| ^~~~~
>> drivers/nvme/target/../target/nvmet.h:728:12: warning: no previous prototype for 'nvmet_dhchap_dhgroup_name' [-Wmissing-prototypes]
728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/list.h:5,
from include/linux/module.h:12,
from drivers/nvme/target/fcloop.c:6:
drivers/nvme/target/../target/nvmet.h: In function 'nvmet_dhchap_dhgroup_name':
include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'char' makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^
drivers/nvme/target/../target/nvmet.h:728:58: note: in expansion of macro 'NULL'
728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
| ^~~~
vim +728 drivers/nvme/target/../target/nvmet.h
687
688 #ifdef CONFIG_NVME_TARGET_AUTH
689 void nvmet_execute_auth_send(struct nvmet_req *req);
690 void nvmet_execute_auth_receive(struct nvmet_req *req);
691 int nvmet_auth_set_host_key(struct nvmet_host *host, const char *secret);
692 int nvmet_auth_set_host_hash(struct nvmet_host *host, const char *hash);
693 int nvmet_auth_get_hash(struct nvmet_ctrl *ctrl, unsigned int *hash_len);
694 const char *nvmet_auth_hmac_name(int hmac_id);
695 int nvmet_auth_set_host_dhgroup(struct nvmet_host *host, const char *hash);
696 const char *nvmet_auth_get_host_dhgroup(struct nvmet_host *host);
697 int nvmet_setup_auth(struct nvmet_ctrl *ctrl, struct nvmet_req *req);
698 void nvmet_reset_auth(struct nvmet_ctrl *ctrl);
699 int nvmet_setup_dhgroup(struct nvmet_ctrl *ctrl, int dhgroup_id);
700 bool nvmet_check_auth_status(struct nvmet_req *req);
701 int nvmet_auth_host_hash(struct nvmet_req *req, u8 *response,
702 unsigned int hash_len);
703 int nvmet_auth_ctrl_hash(struct nvmet_req *req, u8 *response,
704 unsigned int hash_len);
705 static inline bool nvmet_has_auth(struct nvmet_ctrl *ctrl)
706 {
707 return ctrl->shash_tfm != NULL;
708 }
709 const char *nvmet_dhchap_dhgroup_name(int dhgid);
710 int nvmet_auth_ctrl_exponential(struct nvmet_req *req,
711 u8 *buf, int buf_size);
712 int nvmet_auth_ctrl_sesskey(struct nvmet_req *req,
713 u8 *buf, int buf_size);
714 #else
715 static inline int nvmet_setup_auth(struct nvmet_ctrl *ctrl, struct nvmet_req *req)
716 {
717 return 0;
718 }
719 static inline void nvmet_reset_auth(struct nvmet_ctrl *ctrl) {};
720 static inline bool nvmet_check_auth_status(struct nvmet_req *req)
721 {
722 return true;
723 }
724 static inline bool nvmet_has_auth(struct nvmet_ctrl *ctrl)
725 {
726 return false;
727 }
> 728 const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
729 #endif
730
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[hare-scsi-devel:auth.v2 7/12] drivers/nvme/target/fabrics-cmd.c:233:10: error: 'struct nvmet_sq' has no member named 'authenticated'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git auth.v2
head: 9107ea4a3526c6801b38b7a2345b7372278a35ba
commit: ca7a6b4cc19e4383ec693c75bb5c6f678b692a14 [7/12] nvmet: Implement basic In-Band Authentication
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commi...
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel auth.v2
git checkout ca7a6b4cc19e4383ec693c75bb5c6f678b692a14
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/nvme/target/
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/nvme/target/fabrics-cmd.c:8:
drivers/nvme/target/nvmet.h:728:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
| ^~~~~
drivers/nvme/target/nvmet.h:728:12: warning: no previous prototype for 'nvmet_dhchap_dhgroup_name' [-Wmissing-prototypes]
728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/uapi/linux/sched.h:5,
from include/linux/sched.h:10,
from include/linux/blkdev.h:5,
from drivers/nvme/target/fabrics-cmd.c:7:
drivers/nvme/target/nvmet.h: In function 'nvmet_dhchap_dhgroup_name':
include/linux/stddef.h:8:14: warning: returning 'void *' from a function with return type 'char' makes integer from pointer without a cast [-Wint-conversion]
8 | #define NULL ((void *)0)
| ^
drivers/nvme/target/nvmet.h:728:58: note: in expansion of macro 'NULL'
728 | const char nvmet_dhchap_dhgroup_name(int dhgid) { return NULL; }
| ^~~~
drivers/nvme/target/fabrics-cmd.c: In function 'nvmet_execute_admin_connect':
>> drivers/nvme/target/fabrics-cmd.c:233:10: error: 'struct nvmet_sq' has no member named 'authenticated'
233 | req->sq->authenticated = false;
| ^~
>> drivers/nvme/target/fabrics-cmd.c:234:10: error: 'struct nvmet_sq' has no member named 'dhchap_step'
234 | req->sq->dhchap_step = NVME_AUTH_DHCHAP_MESSAGE_NEGOTIATE;
| ^~
drivers/nvme/target/fabrics-cmd.c: In function 'nvmet_execute_io_connect':
drivers/nvme/target/fabrics-cmd.c:299:10: error: 'struct nvmet_sq' has no member named 'authenticated'
299 | req->sq->authenticated = false;
| ^~
drivers/nvme/target/fabrics-cmd.c:300:10: error: 'struct nvmet_sq' has no member named 'dhchap_step'
300 | req->sq->dhchap_step = NVME_AUTH_DHCHAP_MESSAGE_NEGOTIATE;
| ^~
vim +233 drivers/nvme/target/fabrics-cmd.c
159
160 static void nvmet_execute_admin_connect(struct nvmet_req *req)
161 {
162 struct nvmf_connect_command *c = &req->cmd->connect;
163 struct nvmf_connect_data *d;
164 struct nvmet_ctrl *ctrl = NULL;
165 u16 status = 0;
166 int ret;
167
168 if (!nvmet_check_transfer_len(req, sizeof(struct nvmf_connect_data)))
169 return;
170
171 d = kmalloc(sizeof(*d), GFP_KERNEL);
172 if (!d) {
173 status = NVME_SC_INTERNAL;
174 goto complete;
175 }
176
177 status = nvmet_copy_from_sgl(req, 0, d, sizeof(*d));
178 if (status)
179 goto out;
180
181 /* zero out initial completion result, assign values as needed */
182 req->cqe->result.u32 = 0;
183
184 if (c->recfmt != 0) {
185 pr_warn("invalid connect version (%d).\n",
186 le16_to_cpu(c->recfmt));
187 req->error_loc = offsetof(struct nvmf_connect_command, recfmt);
188 status = NVME_SC_CONNECT_FORMAT | NVME_SC_DNR;
189 goto out;
190 }
191
192 if (unlikely(d->cntlid != cpu_to_le16(0xffff))) {
193 pr_warn("connect attempt for invalid controller ID %#x\n",
194 d->cntlid);
195 status = NVME_SC_CONNECT_INVALID_PARAM | NVME_SC_DNR;
196 req->cqe->result.u32 = IPO_IATTR_CONNECT_DATA(cntlid);
197 goto out;
198 }
199
200 status = nvmet_alloc_ctrl(d->subsysnqn, d->hostnqn, req,
201 le32_to_cpu(c->kato), &ctrl);
202 if (status)
203 goto out;
204
205 ctrl->pi_support = ctrl->port->pi_enable && ctrl->subsys->pi_support;
206
207 uuid_copy(&ctrl->hostid, &d->hostid);
208
209 ret = nvmet_setup_auth(ctrl, req);
210 if (ret < 0) {
211 pr_err("Failed to setup authentication, error %d\n", ret);
212 nvmet_ctrl_put(ctrl);
213 if (ret == -EPERM)
214 status = (NVME_SC_CONNECT_INVALID_HOST | NVME_SC_DNR);
215 else
216 status = NVME_SC_INTERNAL;
217 goto out;
218 }
219
220 status = nvmet_install_queue(ctrl, req);
221 if (status) {
222 nvmet_ctrl_put(ctrl);
223 goto out;
224 }
225
226 pr_info("creating controller %d for subsystem %s for NQN %s%s%s.\n",
227 ctrl->cntlid, ctrl->subsys->subsysnqn, ctrl->hostnqn,
228 ctrl->pi_support ? " T10-PI is enabled" : "",
229 nvmet_has_auth(ctrl) ? " with DH-HMAC-CHAP" : "");
230 req->cqe->result.u16 = cpu_to_le16(ctrl->cntlid);
231 if (nvmet_has_auth(ctrl)) {
232 /* Initialize in-band authentication */
> 233 req->sq->authenticated = false;
> 234 req->sq->dhchap_step = NVME_AUTH_DHCHAP_MESSAGE_NEGOTIATE;
235 req->cqe->result.u32 |= 0x2 << 16;
236 }
237 out:
238 kfree(d);
239 complete:
240 nvmet_req_complete(req, status);
241 }
242
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[android-common:android12-5.10 7519/10554] userfaultfd.c:373:44: error: expected ')' before 'PRIx64'
by kernel test robot
Hi Axel,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 2742be5903724a4db0fe1df2624bba18311c0f5f
commit: 357700fcc3b51b66e2a790c5bb036d97916086af [7519/10554] FROMGIT: userfaultfd/selftests: add test exercising minor fault handling
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 357700fcc3b51b66e2a790c5bb036d97916086af
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash -C tools/testing/selftests/vm install
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 >>):
userfaultfd.c: In function 'continue_range':
>> userfaultfd.c:373:44: error: expected ')' before 'PRIx64'
373 | "UFFDIO_CONTINUE failed for address 0x%" PRIx64 "\n",
| ^~~~~~~
| )
userfaultfd.c:373:42: warning: spurious trailing '%' in format [-Wformat=]
373 | "UFFDIO_CONTINUE failed for address 0x%" PRIx64 "\n",
| ^
userfaultfd.c: In function 'uffd_handle_page_fault':
>> userfaultfd.c:597:3: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
597 | uint8_t *area;
| ^~~~~~~
| u_int8_t
>> userfaultfd.c:612:11: error: 'uint8_t' undeclared (first use in this function); did you mean 'u_int8_t'?
612 | area = (uint8_t *)(area_dst +
| ^~~~~~~
| u_int8_t
userfaultfd.c:612:11: note: each undeclared identifier is reported only once for each function it appears in
>> userfaultfd.c:612:20: error: expected expression before ')' token
612 | area = (uint8_t *)(area_dst +
| ^
userfaultfd.c: At top level:
>> userfaultfd.c:827:33: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
827 | static int userfaultfd_open_ext(uint64_t *features)
| ^~~~~~~~
| u_int64_t
userfaultfd.c:854:29: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
854 | static int userfaultfd_open(uint64_t features)
| ^~~~~~~~
| u_int64_t
userfaultfd.c: In function 'userfaultfd_zeropage_test':
userfaultfd.c:1097:6: warning: implicit declaration of function 'userfaultfd_open' [-Wimplicit-function-declaration]
1097 | if (userfaultfd_open(0) < 0)
| ^~~~~~~~~~~~~~~~
userfaultfd.c: In function 'userfaultfd_minor_test':
userfaultfd.c:1288:2: error: unknown type name 'uint8_t'; did you mean 'u_int8_t'?
1288 | uint8_t expected_byte;
| ^~~~~~~
| u_int8_t
userfaultfd.c:1292:2: error: unknown type name 'uint64_t'; did you mean 'u_int64_t'?
1292 | uint64_t features = UFFD_FEATURE_MINOR_HUGETLBFS;
| ^~~~~~~~
| u_int64_t
userfaultfd.c:1303:6: warning: implicit declaration of function 'userfaultfd_open_ext'; did you mean 'userfaultfd_sig_test'? [-Wimplicit-function-declaration]
1303 | if (userfaultfd_open_ext(&features))
| ^~~~~~~~~~~~~~~~~~~~
| userfaultfd_sig_test
userfaultfd.c:1332:44: error: 'uint8_t' undeclared (first use in this function); did you mean 'u_int8_t'?
1332 | memset(area_dst + (p * page_size), p % ((uint8_t)-1),
| ^~~~~~~
| u_int8_t
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[intel-linux-intel-lts:5.10/preempt-rt 1994/10201] drivers/dma-buf/heaps/cma_heap.c:185:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'?
by kernel test robot
Hi John,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 5.10/preempt-rt
head: eefb767845725a04d4e9898e9c8494f5e2164505
commit: f853204a169c95e2c5cb469c4528aeec6b1b59a2 [1994/10201] dma-buf: heaps: Move heap-helper logic into the cma_heap implementation
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/linux-intel-lts/commit/f853204a169c95e2c5cb469c4...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/preempt-rt
git checkout f853204a169c95e2c5cb469c4528aeec6b1b59a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_do_vmap':
>> drivers/dma-buf/heaps/cma_heap.c:185:10: error: implicit declaration of function 'vmap'; did you mean 'kmap'? [-Werror=implicit-function-declaration]
185 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
| ^~~~
| kmap
>> drivers/dma-buf/heaps/cma_heap.c:185:49: error: 'VM_MAP' undeclared (first use in this function); did you mean 'VM_MTE'?
185 | vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
| ^~~~~~
| VM_MTE
drivers/dma-buf/heaps/cma_heap.c:185:49: note: each undeclared identifier is reported only once for each function it appears in
drivers/dma-buf/heaps/cma_heap.c: In function 'cma_heap_vunmap':
>> drivers/dma-buf/heaps/cma_heap.c:225:3: error: implicit declaration of function 'vunmap'; did you mean 'kunmap'? [-Werror=implicit-function-declaration]
225 | vunmap(buffer->vaddr);
| ^~~~~~
| kunmap
cc1: some warnings being treated as errors
vim +185 drivers/dma-buf/heaps/cma_heap.c
180
181 static void *cma_heap_do_vmap(struct cma_heap_buffer *buffer)
182 {
183 void *vaddr;
184
> 185 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL);
186 if (!vaddr)
187 return ERR_PTR(-ENOMEM);
188
189 return vaddr;
190 }
191
192 static int cma_heap_vmap(struct dma_buf *dmabuf, struct dma_buf_map *map)
193 {
194 struct cma_heap_buffer *buffer = dmabuf->priv;
195 void *vaddr;
196 int ret = 0;
197
198 mutex_lock(&buffer->lock);
199 if (buffer->vmap_cnt) {
200 buffer->vmap_cnt++;
201 dma_buf_map_set_vaddr(map, buffer->vaddr);
202 goto out;
203 }
204
205 vaddr = cma_heap_do_vmap(buffer);
206 if (IS_ERR(vaddr)) {
207 ret = PTR_ERR(vaddr);
208 goto out;
209 }
210 buffer->vaddr = vaddr;
211 buffer->vmap_cnt++;
212 dma_buf_map_set_vaddr(map, buffer->vaddr);
213 out:
214 mutex_unlock(&buffer->lock);
215
216 return ret;
217 }
218
219 static void cma_heap_vunmap(struct dma_buf *dmabuf, struct dma_buf_map *map)
220 {
221 struct cma_heap_buffer *buffer = dmabuf->priv;
222
223 mutex_lock(&buffer->lock);
224 if (!--buffer->vmap_cnt) {
> 225 vunmap(buffer->vaddr);
226 buffer->vaddr = NULL;
227 }
228 mutex_unlock(&buffer->lock);
229 dma_buf_map_clear(map);
230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months