arch/arm/mach-ixp4xx/common-pci.c:143:5: warning: no previous prototype for function 'ixp4xx_pci_write'
by kernel test robot
Hi Linus,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: daadb3bd0e8d3e317e36bc2c1542e86c528665e5
commit: d5d9f7ac58ea1041375a028f143ca5784693ea86 ARM/ixp4xx: Make NEED_MACH_IO_H optional
date: 7 months ago
config: arm-ixp4xx_defconfig (https://download.01.org/0day-ci/archive/20220113/202201130136.7675O5xx-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# 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 d5d9f7ac58ea1041375a028f143ca5784693ea86
# 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=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/arm/mach-ixp4xx/common-pci.c:94:5: warning: no previous prototype for function 'ixp4xx_pci_read_errata' [-Wmissing-prototypes]
int ixp4xx_pci_read_errata(u32 addr, u32 cmd, u32* data)
^
arch/arm/mach-ixp4xx/common-pci.c:94:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int ixp4xx_pci_read_errata(u32 addr, u32 cmd, u32* data)
^
static
arch/arm/mach-ixp4xx/common-pci.c:121:5: warning: no previous prototype for function 'ixp4xx_pci_read_no_errata' [-Wmissing-prototypes]
int ixp4xx_pci_read_no_errata(u32 addr, u32 cmd, u32* data)
^
arch/arm/mach-ixp4xx/common-pci.c:121:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int ixp4xx_pci_read_no_errata(u32 addr, u32 cmd, u32* data)
^
static
>> arch/arm/mach-ixp4xx/common-pci.c:143:5: warning: no previous prototype for function 'ixp4xx_pci_write' [-Wmissing-prototypes]
int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data)
^
arch/arm/mach-ixp4xx/common-pci.c:143:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data)
^
static
3 warnings generated.
vim +/ixp4xx_pci_write +143 arch/arm/mach-ixp4xx/common-pci.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 142
^1da177e4c3f41 Linus Torvalds 2005-04-16 @143 int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data)
^1da177e4c3f41 Linus Torvalds 2005-04-16 144 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 145 unsigned long flags;
^1da177e4c3f41 Linus Torvalds 2005-04-16 146 int retval = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 147
bd31b85960a7fc Thomas Gleixner 2009-07-03 148 raw_spin_lock_irqsave(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds 2005-04-16 149
^1da177e4c3f41 Linus Torvalds 2005-04-16 150 *PCI_NP_AD = addr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 151
^1da177e4c3f41 Linus Torvalds 2005-04-16 152 /* set up the write */
^1da177e4c3f41 Linus Torvalds 2005-04-16 153 *PCI_NP_CBE = cmd;
^1da177e4c3f41 Linus Torvalds 2005-04-16 154
^1da177e4c3f41 Linus Torvalds 2005-04-16 155 /* execute the write by writing to NP_WDATA */
^1da177e4c3f41 Linus Torvalds 2005-04-16 156 *PCI_NP_WDATA = data;
^1da177e4c3f41 Linus Torvalds 2005-04-16 157
^1da177e4c3f41 Linus Torvalds 2005-04-16 158 if(check_master_abort())
^1da177e4c3f41 Linus Torvalds 2005-04-16 159 retval = 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 160
bd31b85960a7fc Thomas Gleixner 2009-07-03 161 raw_spin_unlock_irqrestore(&ixp4xx_pci_lock, flags);
^1da177e4c3f41 Linus Torvalds 2005-04-16 162 return retval;
^1da177e4c3f41 Linus Torvalds 2005-04-16 163 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 164
:::::: The code at line 143 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [RFC PATCH 6/6] bpf: Add kprobe link for attaching raw kprobes
by kernel test robot
Hi Masami,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on rostedt-trace/for-next]
[also build test ERROR on bpf-next/master bpf/master linus/master v5.16]
[cannot apply to next-20220112]
[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/Masami-Hiramatsu/fprobe-Add-ftra...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
config: i386-randconfig-m021 (https://download.01.org/0day-ci/archive/20220113/202201130737.O0QNCKhe-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/ba002e6556acd9e0af16442f4226ddb2a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Masami-Hiramatsu/fprobe-Add-ftrace-based-probe-APIs/20220112-000050
git checkout ba002e6556acd9e0af16442f4226ddb2a8759567
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/bpf/
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 >>):
In file included from kernel/bpf/syscall.c:34:
>> include/linux/fprobes.h:28:20: error: field 'ftrace' has incomplete type
28 | struct ftrace_ops ftrace;
| ^~~~~~
>> include/linux/fprobes.h:57:22: warning: no previous prototype for 'fprobe_find_entry' [-Wmissing-prototypes]
57 | struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr)
| ^~~~~~~~~~~~~~~~~
vim +/ftrace +28 include/linux/fprobes.h
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 23
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 24 struct fprobe {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 25 struct fprobe_entry *entries;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 26 unsigned int nentry;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 27
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 @28 struct ftrace_ops ftrace;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 29 unsigned long nmissed;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 30 unsigned int flags;
c0e0471b58c3c9 Masami Hiramatsu 2022-01-12 31 struct rethook *rethook;
c0e0471b58c3c9 Masami Hiramatsu 2022-01-12 32
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 33 void (*entry_handler) (struct fprobe *, unsigned long, struct pt_regs *);
c0e0471b58c3c9 Masami Hiramatsu 2022-01-12 34 void (*exit_handler) (struct fprobe *, unsigned long, struct pt_regs *);
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 35 };
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 36
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 37 #define FPROBE_FL_DISABLED 1
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 38
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 39 static inline bool fprobe_disabled(struct fprobe *fp)
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 40 {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 41 return (fp) ? fp->flags & FPROBE_FL_DISABLED : false;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 42 }
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 43
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 44 #ifdef CONFIG_FPROBES
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 45 int register_fprobe(struct fprobe *fp);
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 46 int unregister_fprobe(struct fprobe *fp);
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 47 struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr);
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 48 #else
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 49 static inline int register_fprobe(struct fprobe *fp)
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 50 {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 51 return -ENOTSUPP;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 52 }
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 53 static inline int unregister_fprobe(struct fprobe *fp)
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 54 {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 55 return -ENOTSUPP;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 56 }
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 @57 struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr)
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 58 {
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 59 return NULL;
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 60 }
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 61 #endif
7b8ed3653f3755 Masami Hiramatsu 2022-01-12 62
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
Re: [RFC PATCH 6/6] bpf: Add kprobe link for attaching raw kprobes
by kernel test robot
Hi Masami,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on rostedt-trace/for-next]
[also build test WARNING on bpf-next/master bpf/master linus/master v5.16]
[cannot apply to next-20220112]
[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/Masami-Hiramatsu/fprobe-Add-ftra...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next
config: hexagon-randconfig-r001-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130747.yNR0J8tO-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/ba002e6556acd9e0af16442f4226ddb2a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Masami-Hiramatsu/fprobe-Add-ftrace-based-probe-APIs/20220112-000050
git checkout ba002e6556acd9e0af16442f4226ddb2a8759567
# 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=hexagon SHELL=/bin/bash kernel/bpf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from kernel/bpf/syscall.c:34:
include/linux/fprobes.h:28:20: error: field has incomplete type 'struct ftrace_ops'
struct ftrace_ops ftrace;
^
include/linux/ftrace.h:332:8: note: forward declaration of 'struct ftrace_ops'
struct ftrace_ops;
^
In file included from kernel/bpf/syscall.c:34:
>> include/linux/fprobes.h:57:22: warning: no previous prototype for function 'fprobe_find_entry' [-Wmissing-prototypes]
struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr)
^
include/linux/fprobes.h:57:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr)
^
static
1 warning and 1 error generated.
vim +/fprobe_find_entry +57 include/linux/fprobes.h
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 43
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 44 #ifdef CONFIG_FPROBES
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 45 int register_fprobe(struct fprobe *fp);
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 46 int unregister_fprobe(struct fprobe *fp);
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 47 struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr);
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 48 #else
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 49 static inline int register_fprobe(struct fprobe *fp)
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 50 {
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 51 return -ENOTSUPP;
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 52 }
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 53 static inline int unregister_fprobe(struct fprobe *fp)
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 54 {
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 55 return -ENOTSUPP;
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 56 }
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 @57 struct fprobe_entry *fprobe_find_entry(struct fprobe *fp, unsigned long addr)
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 58 {
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 59 return NULL;
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 60 }
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 61 #endif
7b8ed3653f37559 Masami Hiramatsu 2022-01-12 62
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[smfrench-smb3:ksmbd-for-next-next 11/11] fs/ksmbd/smb2pdu.c:6198:7: warning: variable 'fp' is used uninitialized whenever 'if' condition is true
by kernel test robot
tree: git://github.com/smfrench/smb3-kernel.git ksmbd-for-next-next
head: f460c65a2585c6b3d8222c67a59bbfb1fc2bd161
commit: f460c65a2585c6b3d8222c67a59bbfb1fc2bd161 [11/11] ksmbd: smbd: fix missing client's memory region invalidation
config: arm-randconfig-r033-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130745.9ifbjMig-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/smfrench/smb3-kernel/commit/f460c65a2585c6b3d8222c67a5...
git remote add smfrench-smb3 git://github.com/smfrench/smb3-kernel.git
git fetch --no-tags smfrench-smb3 ksmbd-for-next-next
git checkout f460c65a2585c6b3d8222c67a59bbfb1fc2bd161
# 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=arm SHELL=/bin/bash fs/ksmbd/
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 >>):
>> fs/ksmbd/smb2pdu.c:6198:7: warning: variable 'fp' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (err)
^~~
fs/ksmbd/smb2pdu.c:6301:21: note: uninitialized use occurs here
ksmbd_fd_put(work, fp);
^~
fs/ksmbd/smb2pdu.c:6198:3: note: remove the 'if' if its condition is always false
if (err)
^~~~~~~~
fs/ksmbd/smb2pdu.c:6176:23: note: initialize the variable 'fp' to silence this warning
struct ksmbd_file *fp;
^
= NULL
1 warning generated.
vim +6198 fs/ksmbd/smb2pdu.c
6164
6165 /**
6166 * smb2_read() - handler for smb2 read from file
6167 * @work: smb work containing read command buffer
6168 *
6169 * Return: 0 on success, otherwise error
6170 */
6171 int smb2_read(struct ksmbd_work *work)
6172 {
6173 struct ksmbd_conn *conn = work->conn;
6174 struct smb2_read_req *req;
6175 struct smb2_read_rsp *rsp;
6176 struct ksmbd_file *fp;
6177 loff_t offset;
6178 size_t length, mincount;
6179 ssize_t nbytes = 0, remain_bytes = 0;
6180 int err = 0;
6181
6182 WORK_BUFFERS(work, req, rsp);
6183
6184 if (test_share_config_flag(work->tcon->share_conf,
6185 KSMBD_SHARE_FLAG_PIPE)) {
6186 ksmbd_debug(SMB, "IPC pipe read request\n");
6187 return smb2_read_pipe(work);
6188 }
6189
6190 if (req->Channel == SMB2_CHANNEL_RDMA_V1_INVALIDATE ||
6191 req->Channel == SMB2_CHANNEL_RDMA_V1) {
6192 err = smb2_set_remote_key_for_rdma(work,
6193 (struct smb2_buffer_desc_v1 *)
6194 &req->Buffer[0],
6195 req->Channel,
6196 req->ReadChannelInfoOffset,
6197 req->ReadChannelInfoLength);
> 6198 if (err)
6199 goto out;
6200 }
6201
6202 fp = ksmbd_lookup_fd_slow(work, le64_to_cpu(req->VolatileFileId),
6203 le64_to_cpu(req->PersistentFileId));
6204 if (!fp) {
6205 err = -ENOENT;
6206 goto out;
6207 }
6208
6209 if (!(fp->daccess & (FILE_READ_DATA_LE | FILE_READ_ATTRIBUTES_LE))) {
6210 pr_err("Not permitted to read : 0x%x\n", fp->daccess);
6211 err = -EACCES;
6212 goto out;
6213 }
6214
6215 offset = le64_to_cpu(req->Offset);
6216 length = le32_to_cpu(req->Length);
6217 mincount = le32_to_cpu(req->MinimumCount);
6218
6219 if (length > conn->vals->max_read_size) {
6220 ksmbd_debug(SMB, "limiting read size to max size(%u)\n",
6221 conn->vals->max_read_size);
6222 err = -EINVAL;
6223 goto out;
6224 }
6225
6226 ksmbd_debug(SMB, "filename %pd, offset %lld, len %zu\n",
6227 fp->filp->f_path.dentry, offset, length);
6228
6229 work->aux_payload_buf = kvmalloc(length, GFP_KERNEL | __GFP_ZERO);
6230 if (!work->aux_payload_buf) {
6231 err = -ENOMEM;
6232 goto out;
6233 }
6234
6235 nbytes = ksmbd_vfs_read(work, fp, length, &offset);
6236 if (nbytes < 0) {
6237 err = nbytes;
6238 goto out;
6239 }
6240
6241 if ((nbytes == 0 && length != 0) || nbytes < mincount) {
6242 kvfree(work->aux_payload_buf);
6243 work->aux_payload_buf = NULL;
6244 rsp->hdr.Status = STATUS_END_OF_FILE;
6245 smb2_set_err_rsp(work);
6246 ksmbd_fd_put(work, fp);
6247 return 0;
6248 }
6249
6250 ksmbd_debug(SMB, "nbytes %zu, offset %lld mincount %zu\n",
6251 nbytes, offset, mincount);
6252
6253 if (req->Channel == SMB2_CHANNEL_RDMA_V1_INVALIDATE ||
6254 req->Channel == SMB2_CHANNEL_RDMA_V1) {
6255 /* write data to the client using rdma channel */
6256 remain_bytes = smb2_read_rdma_channel(work, req,
6257 work->aux_payload_buf,
6258 nbytes);
6259 kvfree(work->aux_payload_buf);
6260 work->aux_payload_buf = NULL;
6261
6262 nbytes = 0;
6263 if (remain_bytes < 0) {
6264 err = (int)remain_bytes;
6265 goto out;
6266 }
6267 }
6268
6269 rsp->StructureSize = cpu_to_le16(17);
6270 rsp->DataOffset = 80;
6271 rsp->Reserved = 0;
6272 rsp->DataLength = cpu_to_le32(nbytes);
6273 rsp->DataRemaining = cpu_to_le32(remain_bytes);
6274 rsp->Flags = 0;
6275 inc_rfc1001_len(work->response_buf, 16);
6276 work->resp_hdr_sz = get_rfc1002_len(work->response_buf) + 4;
6277 work->aux_payload_sz = nbytes;
6278 inc_rfc1001_len(work->response_buf, nbytes);
6279 ksmbd_fd_put(work, fp);
6280 return 0;
6281
6282 out:
6283 if (err) {
6284 if (err == -EISDIR)
6285 rsp->hdr.Status = STATUS_INVALID_DEVICE_REQUEST;
6286 else if (err == -EAGAIN)
6287 rsp->hdr.Status = STATUS_FILE_LOCK_CONFLICT;
6288 else if (err == -ENOENT)
6289 rsp->hdr.Status = STATUS_FILE_CLOSED;
6290 else if (err == -EACCES)
6291 rsp->hdr.Status = STATUS_ACCESS_DENIED;
6292 else if (err == -ESHARE)
6293 rsp->hdr.Status = STATUS_SHARING_VIOLATION;
6294 else if (err == -EINVAL)
6295 rsp->hdr.Status = STATUS_INVALID_PARAMETER;
6296 else
6297 rsp->hdr.Status = STATUS_INVALID_HANDLE;
6298
6299 smb2_set_err_rsp(work);
6300 }
6301 ksmbd_fd_put(work, fp);
6302 return err;
6303 }
6304
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[freescale-fslc:pr/517 12732/22155] drivers/usb/typec/tcpm/tcpm.c:4726:7: warning: variable 'ret' is used uninitialized whenever switch case is taken
by kernel test robot
Hi Li,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/517
head: 0156d956a951c70743d2338132662b29aeb8847d
commit: 7801f9a5347345b16fc4039c7b5b612403af0234 [12732/22155] MLK-24507-3 usb: typec: tcpm: add BC charger types if power type is usb
config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20220113/202201130650.504Wy7MQ-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Freescale/linux-fslc/commit/7801f9a5347345b16fc4039c7b...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/517
git checkout 7801f9a5347345b16fc4039c7b5b612403af0234
# 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 drivers/usb/typec/tcpm/
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/usb/typec/tcpm/tcpm.c:4726:7: warning: variable 'ret' is used uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
case POWER_SUPPLY_PROP_USB_TYPE:
^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/typec/tcpm/tcpm.c:4734:9: note: uninitialized use occurs here
return ret;
^~~
drivers/usb/typec/tcpm/tcpm.c:4707:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 warning generated.
vim +/ret +4726 drivers/usb/typec/tcpm/tcpm.c
4701
4702 static int tcpm_psy_set_prop(struct power_supply *psy,
4703 enum power_supply_property psp,
4704 const union power_supply_propval *val)
4705 {
4706 struct tcpm_port *port = power_supply_get_drvdata(psy);
4707 int ret;
4708
4709 switch (psp) {
4710 case POWER_SUPPLY_PROP_ONLINE:
4711 ret = tcpm_psy_set_online(port, val);
4712 break;
4713 case POWER_SUPPLY_PROP_VOLTAGE_NOW:
4714 if (val->intval < port->pps_data.min_volt * 1000 ||
4715 val->intval > port->pps_data.max_volt * 1000)
4716 ret = -EINVAL;
4717 else
4718 ret = tcpm_pps_set_out_volt(port, val->intval / 1000);
4719 break;
4720 case POWER_SUPPLY_PROP_CURRENT_NOW:
4721 if (val->intval > port->pps_data.max_curr * 1000)
4722 ret = -EINVAL;
4723 else
4724 ret = tcpm_pps_set_op_curr(port, val->intval / 1000);
4725 break;
> 4726 case POWER_SUPPLY_PROP_USB_TYPE:
4727 port->usb_type = val->intval;
4728 break;
4729 default:
4730 ret = -EINVAL;
4731 break;
4732 }
4733
4734 return ret;
4735 }
4736
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mark:treewide/gnu99 1/1] net/netfilter/xt_hashlimit.c:608:40: warning: left shift of negative value
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git treewide/gnu99
head: df0f3c59f076be0ab4a6d8de53fdeef871394594
commit: df0f3c59f076be0ab4a6d8de53fdeef871394594 [1/1] treewide: use -std=gnu99
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20220113/202201130653.9pXG19yX-lk...)
compiler: m68k-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/mark/linux.git/commit/?id...
git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git
git fetch --no-tags mark treewide/gnu99
git checkout df0f3c59f076be0ab4a6d8de53fdeef871394594
# 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=m68k SHELL=/bin/bash drivers/block/drbd/ net/netfilter/
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 include/linux/byteorder/big_endian.h:5,
from arch/m68k/include/uapi/asm/byteorder.h:5,
from include/asm-generic/bitops/le.h:7,
from arch/m68k/include/asm/bitops.h:529,
from include/linux/bitops.h:33,
from include/linux/thread_info.h:27,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mm_types_task.h:13,
from include/linux/mm_types.h:5,
from include/linux/buildid.h:5,
from include/linux/module.h:14,
from net/netfilter/xt_hashlimit.c:13:
net/netfilter/xt_hashlimit.c: In function 'maskl':
>> net/netfilter/xt_hashlimit.c:608:40: warning: left shift of negative value [-Wshift-negative-value]
608 | return l ? htonl(ntohl(a) & ~0 << (32 - l)) : 0;
| ^~
include/uapi/linux/byteorder/big_endian.h:40:51: note: in definition of macro '__cpu_to_be32'
40 | #define __cpu_to_be32(x) ((__force __be32)(__u32)(x))
| ^
include/linux/byteorder/generic.h:139:18: note: in expansion of macro '___htonl'
139 | #define htonl(x) ___htonl(x)
| ^~~~~~~~
net/netfilter/xt_hashlimit.c:608:20: note: in expansion of macro 'htonl'
608 | return l ? htonl(ntohl(a) & ~0 << (32 - l)) : 0;
| ^~~~~
--
drivers/block/drbd/drbd_main.c: In function 'dcbp_set_pad_bits':
>> drivers/block/drbd/drbd_main.c:1095:44: warning: left shift of negative value [-Wshift-negative-value]
1095 | p->encoding = (p->encoding & (~0x7 << 4)) | (n << 4);
| ^~
vim +608 net/netfilter/xt_hashlimit.c
817e076f61bca3 Florian Westphal 2012-05-07 605
09e410def64324 Jan Engelhardt 2008-01-31 606 static inline __be32 maskl(__be32 a, unsigned int l)
09e410def64324 Jan Engelhardt 2008-01-31 607 {
1b9b70ea2ebaab Patrick McHardy 2008-04-09 @608 return l ? htonl(ntohl(a) & ~0 << (32 - l)) : 0;
09e410def64324 Jan Engelhardt 2008-01-31 609 }
09e410def64324 Jan Engelhardt 2008-01-31 610
:::::: The code at line 608 was first introduced by commit
:::::: 1b9b70ea2ebaab26c3e4fed385dfab6fc16359ed [NETFILTER]: xt_hashlimit: fix mask calculation
:::::: TO: Patrick McHardy <kaber(a)trash.net>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[mingo-tip:sched/headers 1117/2382] mm/workingset.c:590:53: error: incompatible function pointer types passing 'enum lru_status (struct list_head *, struct list_lru_one *, spinlock_t *, void *)' (aka 'enum lru_status (struct list_head *, struct list_lru_one *, struct spinlock *, void *)') t...
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 1a880941a087613ed42f77001229edfcf75ea8a5
commit: d5182ee55730b8b315527a8f308c7cb6e4f4d569 [1117/2382] headers/deps: Add header dependencies to .c files: <linux/list_lru_api.h>
config: i386-randconfig-a014-20220109 (https://download.01.org/0day-ci/archive/20220113/202201130624.YrrhRIcl-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 244dd2913a43a200f5a6544d424cdc37b771028b)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout d5182ee55730b8b315527a8f308c7cb6e4f4d569
# 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=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the mingo-tip/sched/headers HEAD 1a880941a087613ed42f77001229edfcf75ea8a5 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from mm/list_lru.c:8:
In file included from include/linux/list_lru_api.h:1:
>> include/linux/list_lru.h:42:2: error: unknown type name 'spinlock_t'
spinlock_t lock;
^
include/linux/list_lru.h:63:14: warning: declaration of 'struct lock_class_key' will not be visible outside of this function [-Wvisibility]
struct lock_class_key *key, struct shrinker *shrinker);
^
include/linux/list_lru.h:142:30: error: unknown type name 'spinlock_t'
struct list_lru_one *list, spinlock_t *lock, void *cb_arg);
^
mm/list_lru.c:571:5: error: conflicting types for '__list_lru_init'
int __list_lru_init(struct list_lru *lru, bool memcg_aware,
^
include/linux/list_lru.h:62:5: note: previous declaration is here
int __list_lru_init(struct list_lru *lru, bool memcg_aware,
^
1 warning and 3 errors generated.
--
In file included from mm/workingset.c:8:
In file included from include/linux/list_lru_api.h:1:
>> include/linux/list_lru.h:42:2: error: unknown type name 'spinlock_t'
spinlock_t lock;
^
include/linux/list_lru.h:63:14: warning: declaration of 'struct lock_class_key' will not be visible outside of this function [-Wvisibility]
struct lock_class_key *key, struct shrinker *shrinker);
^
include/linux/list_lru.h:142:30: error: unknown type name 'spinlock_t'
struct list_lru_one *list, spinlock_t *lock, void *cb_arg);
^
>> mm/workingset.c:590:53: error: incompatible function pointer types passing 'enum lru_status (struct list_head *, struct list_lru_one *, spinlock_t *, void *)' (aka 'enum lru_status (struct list_head *, struct list_lru_one *, struct spinlock *, void *)') to parameter of type 'list_lru_walk_cb' (aka 'enum lru_status (*)(struct list_head *, struct list_lru_one *, int *, void *)') [-Werror,-Wincompatible-function-pointer-types]
return list_lru_shrink_walk_irq(&shadow_nodes, sc, shadow_lru_isolate,
^~~~~~~~~~~~~~~~~~
include/linux/list_lru.h:201:22: note: passing argument to parameter 'isolate' here
list_lru_walk_cb isolate, void *cb_arg)
^
>> mm/workingset.c:631:45: error: incompatible pointer types passing 'struct lock_class_key *' to parameter of type 'struct lock_class_key *' [-Werror,-Wincompatible-pointer-types]
ret = __list_lru_init(&shadow_nodes, true, &shadow_nodes_key,
^~~~~~~~~~~~~~~~~
include/linux/list_lru.h:63:30: note: passing argument to parameter 'key' here
struct lock_class_key *key, struct shrinker *shrinker);
^
1 warning and 4 errors generated.
--
In file included from mm/vmscan.c:15:
In file included from include/linux/list_lru_api.h:1:
>> include/linux/list_lru.h:42:2: error: unknown type name 'spinlock_t'
spinlock_t lock;
^
include/linux/list_lru.h:63:14: warning: declaration of 'struct lock_class_key' will not be visible outside of this function [-Wvisibility]
struct lock_class_key *key, struct shrinker *shrinker);
^
include/linux/list_lru.h:142:30: error: unknown type name 'spinlock_t'
struct list_lru_one *list, spinlock_t *lock, void *cb_arg);
^
1 warning and 2 errors generated.
--
In file included from fs/dcache.c:18:
In file included from include/linux/list_lru_api.h:1:
>> include/linux/list_lru.h:42:2: error: unknown type name 'spinlock_t'
spinlock_t lock;
^
include/linux/list_lru.h:63:14: warning: declaration of 'struct lock_class_key' will not be visible outside of this function [-Wvisibility]
struct lock_class_key *key, struct shrinker *shrinker);
^
include/linux/list_lru.h:142:30: error: unknown type name 'spinlock_t'
struct list_lru_one *list, spinlock_t *lock, void *cb_arg);
^
fs/dcache.c:1299:10: error: incompatible function pointer types passing 'enum lru_status (struct list_head *, struct list_lru_one *, spinlock_t *, void *)' (aka 'enum lru_status (struct list_head *, struct list_lru_one *, struct spinlock *, void *)') to parameter of type 'list_lru_walk_cb' (aka 'enum lru_status (*)(struct list_head *, struct list_lru_one *, int *, void *)') [-Werror,-Wincompatible-function-pointer-types]
dentry_lru_isolate, &dispose);
^~~~~~~~~~~~~~~~~~
include/linux/list_lru.h:193:25: note: passing argument to parameter 'isolate' here
list_lru_walk_cb isolate, void *cb_arg)
^
fs/dcache.c:1338:4: error: incompatible function pointer types passing 'enum lru_status (struct list_head *, struct list_lru_one *, spinlock_t *, void *)' (aka 'enum lru_status (struct list_head *, struct list_lru_one *, struct spinlock *, void *)') to parameter of type 'list_lru_walk_cb' (aka 'enum lru_status (*)(struct list_head *, struct list_lru_one *, int *, void *)') [-Werror,-Wincompatible-function-pointer-types]
dentry_lru_isolate_shrink, &dispose, 1024);
^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list_lru.h:208:54: note: passing argument to parameter 'isolate' here
list_lru_walk(struct list_lru *lru, list_lru_walk_cb isolate,
^
1 warning and 4 errors generated.
--
In file included from fs/inode.c:6:
In file included from include/linux/list_lru_api.h:1:
>> include/linux/list_lru.h:42:2: error: unknown type name 'spinlock_t'
spinlock_t lock;
^
include/linux/list_lru.h:63:14: warning: declaration of 'struct lock_class_key' will not be visible outside of this function [-Wvisibility]
struct lock_class_key *key, struct shrinker *shrinker);
^
include/linux/list_lru.h:142:30: error: unknown type name 'spinlock_t'
struct list_lru_one *list, spinlock_t *lock, void *cb_arg);
^
fs/inode.c:831:10: error: incompatible function pointer types passing 'enum lru_status (struct list_head *, struct list_lru_one *, spinlock_t *, void *)' (aka 'enum lru_status (struct list_head *, struct list_lru_one *, struct spinlock *, void *)') to parameter of type 'list_lru_walk_cb' (aka 'enum lru_status (*)(struct list_head *, struct list_lru_one *, int *, void *)') [-Werror,-Wincompatible-function-pointer-types]
inode_lru_isolate, &freeable);
^~~~~~~~~~~~~~~~~
include/linux/list_lru.h:193:25: note: passing argument to parameter 'isolate' here
list_lru_walk_cb isolate, void *cb_arg)
^
1 warning and 3 errors generated.
--
In file included from fs/gfs2/quota.c:38:
In file included from include/linux/list_lru_api.h:1:
>> include/linux/list_lru.h:42:2: error: unknown type name 'spinlock_t'
spinlock_t lock;
^
include/linux/list_lru.h:63:14: warning: declaration of 'struct lock_class_key' will not be visible outside of this function [-Wvisibility]
struct lock_class_key *key, struct shrinker *shrinker);
^
include/linux/list_lru.h:142:30: error: unknown type name 'spinlock_t'
struct list_lru_one *list, spinlock_t *lock, void *cb_arg);
^
>> fs/gfs2/quota.c:182:10: error: incompatible function pointer types passing 'enum lru_status (struct list_head *, struct list_lru_one *, spinlock_t *, void *)' (aka 'enum lru_status (struct list_head *, struct list_lru_one *, struct spinlock *, void *)') to parameter of type 'list_lru_walk_cb' (aka 'enum lru_status (*)(struct list_head *, struct list_lru_one *, int *, void *)') [-Werror,-Wincompatible-function-pointer-types]
gfs2_qd_isolate, &dispose);
^~~~~~~~~~~~~~~
include/linux/list_lru.h:193:25: note: passing argument to parameter 'isolate' here
list_lru_walk_cb isolate, void *cb_arg)
^
1 warning and 3 errors generated.
vim +590 mm/workingset.c
449dd6984d0e47 Johannes Weiner 2014-04-03 585
449dd6984d0e47 Johannes Weiner 2014-04-03 586 static unsigned long scan_shadow_nodes(struct shrinker *shrinker,
449dd6984d0e47 Johannes Weiner 2014-04-03 587 struct shrink_control *sc)
449dd6984d0e47 Johannes Weiner 2014-04-03 588 {
b93b016313b3ba Matthew Wilcox 2018-04-10 589 /* list_lru lock nests inside the IRQ-safe i_pages lock */
6b51e88199ca4f Sebastian Andrzej Siewior 2018-08-17 @590 return list_lru_shrink_walk_irq(&shadow_nodes, sc, shadow_lru_isolate,
6b51e88199ca4f Sebastian Andrzej Siewior 2018-08-17 591 NULL);
449dd6984d0e47 Johannes Weiner 2014-04-03 592 }
449dd6984d0e47 Johannes Weiner 2014-04-03 593
449dd6984d0e47 Johannes Weiner 2014-04-03 594 static struct shrinker workingset_shadow_shrinker = {
449dd6984d0e47 Johannes Weiner 2014-04-03 595 .count_objects = count_shadow_nodes,
449dd6984d0e47 Johannes Weiner 2014-04-03 596 .scan_objects = scan_shadow_nodes,
4b85afbdacd290 Johannes Weiner 2018-10-26 597 .seeks = 0, /* ->count reports only fully expendable nodes */
0a6b76dd23fa08 Vladimir Davydov 2016-03-17 598 .flags = SHRINKER_NUMA_AWARE | SHRINKER_MEMCG_AWARE,
449dd6984d0e47 Johannes Weiner 2014-04-03 599 };
449dd6984d0e47 Johannes Weiner 2014-04-03 600
449dd6984d0e47 Johannes Weiner 2014-04-03 601 /*
449dd6984d0e47 Johannes Weiner 2014-04-03 602 * Our list_lru->lock is IRQ-safe as it nests inside the IRQ-safe
b93b016313b3ba Matthew Wilcox 2018-04-10 603 * i_pages lock.
449dd6984d0e47 Johannes Weiner 2014-04-03 604 */
449dd6984d0e47 Johannes Weiner 2014-04-03 605 static struct lock_class_key shadow_nodes_key;
449dd6984d0e47 Johannes Weiner 2014-04-03 606
449dd6984d0e47 Johannes Weiner 2014-04-03 607 static int __init workingset_init(void)
449dd6984d0e47 Johannes Weiner 2014-04-03 608 {
612e44939c3c77 Johannes Weiner 2016-03-15 609 unsigned int timestamp_bits;
612e44939c3c77 Johannes Weiner 2016-03-15 610 unsigned int max_order;
449dd6984d0e47 Johannes Weiner 2014-04-03 611 int ret;
449dd6984d0e47 Johannes Weiner 2014-04-03 612
612e44939c3c77 Johannes Weiner 2016-03-15 613 BUILD_BUG_ON(BITS_PER_LONG < EVICTION_SHIFT);
612e44939c3c77 Johannes Weiner 2016-03-15 614 /*
612e44939c3c77 Johannes Weiner 2016-03-15 615 * Calculate the eviction bucket size to cover the longest
612e44939c3c77 Johannes Weiner 2016-03-15 616 * actionable refault distance, which is currently half of
612e44939c3c77 Johannes Weiner 2016-03-15 617 * memory (totalram_pages/2). However, memory hotplug may add
612e44939c3c77 Johannes Weiner 2016-03-15 618 * some more pages at runtime, so keep working with up to
612e44939c3c77 Johannes Weiner 2016-03-15 619 * double the initial memory by using totalram_pages as-is.
612e44939c3c77 Johannes Weiner 2016-03-15 620 */
612e44939c3c77 Johannes Weiner 2016-03-15 621 timestamp_bits = BITS_PER_LONG - EVICTION_SHIFT;
ca79b0c211af63 Arun KS 2018-12-28 622 max_order = fls_long(totalram_pages() - 1);
612e44939c3c77 Johannes Weiner 2016-03-15 623 if (max_order > timestamp_bits)
612e44939c3c77 Johannes Weiner 2016-03-15 624 bucket_order = max_order - timestamp_bits;
d3d36c4b5c5fbd Anton Blanchard 2016-07-14 625 pr_info("workingset: timestamp_bits=%d max_order=%d bucket_order=%u\n",
612e44939c3c77 Johannes Weiner 2016-03-15 626 timestamp_bits, max_order, bucket_order);
612e44939c3c77 Johannes Weiner 2016-03-15 627
39887653aab4cf Kirill Tkhai 2018-08-17 628 ret = prealloc_shrinker(&workingset_shadow_shrinker);
449dd6984d0e47 Johannes Weiner 2014-04-03 629 if (ret)
449dd6984d0e47 Johannes Weiner 2014-04-03 630 goto err;
c92e8e10cafeaa Kirill Tkhai 2018-08-17 @631 ret = __list_lru_init(&shadow_nodes, true, &shadow_nodes_key,
:::::: The code at line 590 was first introduced by commit
:::::: 6b51e88199ca4f75ff647eff28efd30bfcb08dc4 mm/list_lru: introduce list_lru_shrink_walk_irq()
:::::: TO: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week
[xilinx-xlnx:master 269/326] include/linux/firmware/xlnx-zynqmp.h:1244:5: warning: no previous prototype for 'zynqmp_pm_get_meta_header'
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 6a698dbaaf0e6caa053476c2f661b36885a0ce30
commit: 22272cc48b5399af99792722fa7004735b769e0a [269/326] firmware: xilinx: Add support to get the image meta-header info
config: arc-randconfig-r043-20220112 (https://download.01.org/0day-ci/archive/20220113/202201130615.SDjeIfek-lk...)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Xilinx/linux-xlnx/commit/22272cc48b5399af99792722fa700...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout 22272cc48b5399af99792722fa7004735b769e0a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/spi/
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/spi/spi-zynqmp-gqspi.c:13:
>> include/linux/firmware/xlnx-zynqmp.h:1244:5: warning: no previous prototype for 'zynqmp_pm_get_meta_header' [-Wmissing-prototypes]
1244 | int zynqmp_pm_get_meta_header(const u64 src, const u64 dst,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mtd/spi-nor.h:10,
from drivers/spi/spi-zynqmp-gqspi.c:26:
include/linux/mtd/cfi.h:62:2: warning: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Wcpp]
62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
| ^~~~~~~
In file included from drivers/spi/spi-zynqmp-gqspi.c:13:
include/linux/firmware/xlnx-zynqmp.h:1217:12: warning: 'zynqmp_pm_sec_mask_write_reg' defined but not used [-Wunused-function]
1217 | static int zynqmp_pm_sec_mask_write_reg(const u32 node_id, const u32 offset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/firmware/xlnx-zynqmp.h:1212:12: warning: 'zynqmp_pm_sec_read_reg' defined but not used [-Wunused-function]
1212 | static int zynqmp_pm_sec_read_reg(u32 node_id, u32 offset, u32 *ret_value)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/zynqmp_pm_get_meta_header +1244 include/linux/firmware/xlnx-zynqmp.h
1243
> 1244 int zynqmp_pm_get_meta_header(const u64 src, const u64 dst,
1245 const u32 size, u32 *count)
1246 {
1247 return -ENODEV;
1248 }
1249 #endif
1250
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months, 1 week