TO: Rojhalat Ibrahim <[email protected]>
CC: Linus Walleij <[email protected]>
tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: efefb5ca5da52f7537c7ced03d6e53408f13a26e
commit: ccd713b77874ceb73d3fd4112cf293725edf9b0f [6887/7369] gpiolib: allow
simultaneous setting of multiple GPIO outputs
reproduce:
# apt-get install sparse
git checkout ccd713b77874ceb73d3fd4112cf293725edf9b0f
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
:::::: branch date: 5 hours ago
:::::: commit date: 3 days ago
>> drivers/gpio/gpiolib.c:1297:36: sparse: Variable length array is used.
>> drivers/gpio/gpiolib.c:1298:36: sparse: Variable length array is used.
>> drivers/gpio/gpiolib.c:1304:33: sparse: cannot size expression
git remote add next
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update next
git checkout ccd713b77874ceb73d3fd4112cf293725edf9b0f
vim +1297 drivers/gpio/gpiolib.c
ccd713b7 Rojhalat Ibrahim 2014-11-04 1291 int
*value_array)
ccd713b7 Rojhalat Ibrahim 2014-11-04 1292 {
ccd713b7 Rojhalat Ibrahim 2014-11-04 1293 int i = 0;
ccd713b7 Rojhalat Ibrahim 2014-11-04 1294
ccd713b7 Rojhalat Ibrahim 2014-11-04 1295 while (i < array_size) {
ccd713b7 Rojhalat Ibrahim 2014-11-04 1296 struct gpio_chip *chip
= desc_array[i]->chip;
ccd713b7 Rojhalat Ibrahim 2014-11-04 @1297 unsigned long
mask[BITS_TO_LONGS(chip->ngpio)];
ccd713b7 Rojhalat Ibrahim 2014-11-04 @1298 unsigned long
bits[BITS_TO_LONGS(chip->ngpio)];
ccd713b7 Rojhalat Ibrahim 2014-11-04 1299 int count = 0;
ccd713b7 Rojhalat Ibrahim 2014-11-04 1300
ccd713b7 Rojhalat Ibrahim 2014-11-04 1301 if (!can_sleep) {
ccd713b7 Rojhalat Ibrahim 2014-11-04 1302
WARN_ON(chip->can_sleep);
ccd713b7 Rojhalat Ibrahim 2014-11-04 1303 }
ccd713b7 Rojhalat Ibrahim 2014-11-04 @1304 memset(mask, 0,
sizeof(mask));
ccd713b7 Rojhalat Ibrahim 2014-11-04 1305 do {
ccd713b7 Rojhalat Ibrahim 2014-11-04 1306 struct
gpio_desc *desc = desc_array[i];
ccd713b7 Rojhalat Ibrahim 2014-11-04 1307 int hwgpio =
gpio_chip_hwgpio(desc);
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
_______________________________________________
kbuild mailing list
[email protected]
https://lists.01.org/mailman/listinfo/kbuild