From: kernel test robot <lkp@intel.com>
To: Johannes Thumshirn <johannes.thumshirn@wdc.com>,
David Sterba <dsterba@suse.cz>
Cc: kbuild-all@lists.01.org, linux-btrfs@vger.kernel.org,
Johannes Thumshirn <johannes.thumshirn@wdc.com>
Subject: Re: [PATCH] btrfs: pass checksum type via BTRFS_IOC_FS_INFO ioctl
Date: Wed, 24 Jun 2020 22:15:20 +0800 [thread overview]
Message-ID: <202006242200.sloaHMOL%lkp@intel.com> (raw)
In-Reply-To: <20200624102136.12495-1-johannes.thumshirn@wdc.com>
[-- Attachment #1: Type: text/plain, Size: 3001 bytes --]
Hi Johannes,
I love your patch! Perhaps something to improve:
[auto build test WARNING on kdave/for-next]
[also build test WARNING on v5.8-rc2 next-20200624]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Johannes-Thumshirn/btrfs-pass-checksum-type-via-BTRFS_IOC_FS_INFO-ioctl/20200624-182429
base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: x86_64-randconfig-s021-20200624 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-dirty
# save the attached .config to linux build tree
make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
fs/btrfs/ioctl.c:1715:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
fs/btrfs/ioctl.c:1715:17: sparse: struct rcu_string [noderef] <asn:4> *
fs/btrfs/ioctl.c:1715:17: sparse: struct rcu_string *
>> fs/btrfs/ioctl.c:3221:25: sparse: sparse: cast to restricted __le16
fs/btrfs/ioctl.c:3260:40: sparse: sparse: incompatible types in comparison expression (different address spaces):
fs/btrfs/ioctl.c:3260:40: sparse: struct rcu_string [noderef] <asn:4> *
fs/btrfs/ioctl.c:3260:40: sparse: struct rcu_string *
vim +3221 fs/btrfs/ioctl.c
3194
3195 static long btrfs_ioctl_fs_info(struct btrfs_fs_info *fs_info,
3196 void __user *arg)
3197 {
3198 struct btrfs_ioctl_fs_info_args *fi_args;
3199 struct btrfs_device *device;
3200 struct btrfs_fs_devices *fs_devices = fs_info->fs_devices;
3201 int ret = 0;
3202
3203 fi_args = kzalloc(sizeof(*fi_args), GFP_KERNEL);
3204 if (!fi_args)
3205 return -ENOMEM;
3206
3207 rcu_read_lock();
3208 fi_args->num_devices = fs_devices->num_devices;
3209
3210 list_for_each_entry_rcu(device, &fs_devices->devices, dev_list) {
3211 if (device->devid > fi_args->max_id)
3212 fi_args->max_id = device->devid;
3213 }
3214 rcu_read_unlock();
3215
3216 memcpy(&fi_args->fsid, fs_devices->fsid, sizeof(fi_args->fsid));
3217 fi_args->nodesize = fs_info->nodesize;
3218 fi_args->sectorsize = fs_info->sectorsize;
3219 fi_args->clone_alignment = fs_info->sectorsize;
3220 fi_args->csum_type =
> 3221 le16_to_cpu(btrfs_super_csum_type(fs_info->super_copy));
3222 fi_args->flags |= BTRFS_FS_INFO_FLAG_CSUM_TYPE;
3223
3224 if (copy_to_user(arg, fi_args, sizeof(*fi_args)))
3225 ret = -EFAULT;
3226
3227 kfree(fi_args);
3228 return ret;
3229 }
3230
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35697 bytes --]
next prev parent reply other threads:[~2020-06-24 14:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 10:21 [PATCH] btrfs: pass checksum type via BTRFS_IOC_FS_INFO ioctl Johannes Thumshirn
2020-06-24 11:03 ` Qu Wenruo
2020-06-24 11:41 ` Johannes Thumshirn
2020-06-24 11:55 ` Qu Wenruo
2020-06-24 12:14 ` Hans van Kranenburg
2020-06-24 12:17 ` Johannes Thumshirn
2020-06-24 12:21 ` Nikolay Borisov
2020-06-24 13:01 ` Johannes Thumshirn
2020-06-24 15:36 ` David Sterba
2020-06-24 12:00 ` Nikolay Borisov
2020-06-24 12:16 ` Hans van Kranenburg
2020-06-24 12:18 ` Johannes Thumshirn
2020-06-24 14:15 ` kernel test robot [this message]
2020-06-24 15:40 ` David Sterba
2020-06-25 7:48 ` Johannes Thumshirn
2020-06-24 15:31 ` David Sterba
2020-06-25 2:26 ` Hans van Kranenburg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202006242200.sloaHMOL%lkp@intel.com \
--to=lkp@intel.com \
--cc=dsterba@suse.cz \
--cc=johannes.thumshirn@wdc.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox