* [djwong-xfs:repair-hard-problems 111/112] fs/xfs/scrub/parent_repair.c:81:43: sparse: sparse: Using plain integer as NULL pointer
@ 2020-03-25 16:58 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-03-25 16:58 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2027 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git repair-hard-problems
head: 7e5a6c6fa70827c8a21264bdb9481e9f978d451b
commit: c603fa3588644e4ebbfb7faf90144bea1eae1a2c [111/112] xfs: teach online directory repair to scan for the parent
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-187-gbff9b106-dirty
git checkout c603fa3588644e4ebbfb7faf90144bea1eae1a2c
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> fs/xfs/scrub/parent_repair.c:81:43: sparse: sparse: Using plain integer as NULL pointer
vim +81 fs/xfs/scrub/parent_repair.c
58
59 /*
60 * If this directory entry points to the directory we're rebuilding, then the
61 * directory we're scanning is the parent. Call our function.
62 *
63 * Note that the vfs readdir functions squash the nonzero codes that we return
64 * here into a "short" directory read, so the actual error codes are tracked
65 * and returned separately.
66 */
67 STATIC int
68 xrep_parents_scan_dentry(
69 struct dir_context *dc,
70 const char *name,
71 int namelen,
72 loff_t pos,
73 u64 ino,
74 unsigned type)
75 {
76 struct xrep_parents_scan *rps;
77
78 rps = container_of(dc, struct xrep_parents_scan, dc);
79
80 if (ino == rps->target_ino) {
> 81 struct xfs_name xname = { 0 };
82
83 xname.name = name;
84 xname.len = namelen;
85 rps->scan_error = rps->fn(rps->scan_dir, &xname, type,
86 rps->data);
87 if (rps->scan_error)
88 return 1;
89 }
90
91 return 0;
92 }
93
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-25 16:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 16:58 [djwong-xfs:repair-hard-problems 111/112] fs/xfs/scrub/parent_repair.c:81:43: sparse: sparse: Using plain integer as NULL pointer kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.