Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1234678
| From | kbuild test robot <lkp@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] leds: add debugfs to device trigger |
| Date | 2015-09-29 05:50 +0200 |
| Message-ID | <qdU5r-373-9@gated-at.bofh.it> (permalink) |
| References | <qdNx1-23T-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Maciek,
[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]
reproduce:
# apt-get install sparse
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> drivers/leds/trigger/ledtrig-device.c:214:22: sparse: incorrect type in argument 1 (different address spaces)
drivers/leds/trigger/ledtrig-device.c:214:22: expected char const *<noident>
drivers/leds/trigger/ledtrig-device.c:214:22: got char const [noderef] <asn:1>*buf
vim +214 drivers/leds/trigger/ledtrig-device.c
198 .read = seq_read,
199 .llseek = seq_lseek,
200 .release = single_release
201 };
202
203 static int get_dev_from_user(const char __user *buf, size_t size,
204 dev_t *dev)
205 {
206 unsigned int major;
207 unsigned int minor;
208 int ret;
209
210 WARN_ON(dev == NULL);
211 if (dev == NULL)
212 return -EINVAL;
213
> 214 ret = sscanf(buf, "%u:%u", &major, &minor);
215 if (ret < 2)
216 return -EINVAL;
217
218 *dev = MKDEV(major, minor);
219 return 0;
220 }
221
222 static ssize_t ledtrig_dev_register_write(struct file *filp,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/3] leds: add device trigger Maciek Borzecki <maciek.borzecki@gmail.com> - 2015-09-28 22:50 +0200
[PATCH 2/3] leds: add debugfs to device trigger Maciek Borzecki <maciek.borzecki@gmail.com> - 2015-09-28 22:50 +0200
Re: [PATCH 2/3] leds: add debugfs to device trigger kbuild test robot <lkp@intel.com> - 2015-09-29 05:50 +0200
Re: [PATCH 2/3] leds: add debugfs to device trigger Maciek Borzecki <maciek.borzecki@gmail.com> - 2015-09-29 09:10 +0200
Re: [PATCH 2/3] leds: add debugfs to device trigger Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-09-30 16:10 +0200
Re: [PATCH 2/3] leds: add debugfs to device trigger Maciek Borzecki <maciek.borzecki@gmail.com> - 2015-09-30 17:50 +0200
Re: [PATCH 2/3] leds: add debugfs to device trigger Jacek Anaszewski <j.anaszewski@samsung.com> - 2015-10-01 09:40 +0200
[PATCH 3/3] Documentation: leds: document ledtrig-device trigger Maciek Borzecki <maciek.borzecki@gmail.com> - 2015-09-28 22:50 +0200
csiph-web