tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-spi head: e0be1da1758837a9ba07726648ac75d9a27fe8ae commit: 30170dbebec2a25e7ae92a521798d4f02967236a [4/8] gpio: pass lookup and descriptor flags to request_own reproduce: # apt-get install sparse git checkout 30170dbebec2a25e7ae92a521798d4f02967236a 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@xxxxxxxxx> sparse warnings: (new ones prefixed by >>) >> drivers/hid/hid-cp2112.c:1206:69: sparse: sparse: incorrect type in argument 4 (invalid types) @@ expected incomplete type enum gpio_lookup_flags lflags @@ got gs lflags @@ >> drivers/hid/hid-cp2112.c:1206:69: sparse: expected incomplete type enum gpio_lookup_flags lflags >> drivers/hid/hid-cp2112.c:1206:69: sparse: got int vim +1206 drivers/hid/hid-cp2112.c 1196 1197 static int __maybe_unused cp2112_allocate_irq(struct cp2112_device *dev, 1198 int pin) 1199 { 1200 int ret; 1201 1202 if (dev->desc[pin]) 1203 return -EINVAL; 1204 1205 dev->desc[pin] = gpiochip_request_own_desc(&dev->gc, pin, > 1206 "HID/I2C:Event", 0, 0); 1207 if (IS_ERR(dev->desc[pin])) { 1208 dev_err(dev->gc.parent, "Failed to request GPIO\n"); 1209 return PTR_ERR(dev->desc[pin]); 1210 } 1211 1212 ret = gpiochip_lock_as_irq(&dev->gc, pin); 1213 if (ret) { 1214 dev_err(dev->gc.parent, "Failed to lock GPIO as interrupt\n"); 1215 goto err_desc; 1216 } 1217 1218 ret = gpiod_to_irq(dev->desc[pin]); 1219 if (ret < 0) { 1220 dev_err(dev->gc.parent, "Failed to translate GPIO to IRQ\n"); 1221 goto err_lock; 1222 } 1223 1224 return ret; 1225 1226 err_lock: 1227 gpiochip_unlock_as_irq(&dev->gc, pin); 1228 err_desc: 1229 gpiochip_free_own_desc(dev->desc[pin]); 1230 dev->desc[pin] = NULL; 1231 return ret; 1232 } 1233 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation