CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Kent Gibson <[email protected]> TO: [email protected] TO: [email protected] TO: [email protected] TO: [email protected] CC: Kent Gibson <[email protected]>
From: kbuild test robot <[email protected]> drivers/gpio/gpiolib-cdev.c:1043:7-23: WARNING: gpio_fileops: .read() has stream semantic; safe to change nonseekable_open -> stream_open. Generated by: scripts/coccinelle/api/stream_open.cocci CC: Kent Gibson <[email protected]> Signed-off-by: kbuild test robot <[email protected]> --- url: https://github.com/0day-ci/linux/commits/Kent-Gibson/gpiolib-split-character-device-into-gpiolib-cdev/20200528-000035 base: 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8 :::::: branch date: 12 hours ago :::::: commit date: 12 hours ago Please take the patch only if it's a positive warning. Thanks! gpiolib-cdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -1040,7 +1040,7 @@ static int gpio_chrdev_open(struct inode get_device(&gdev->dev); filp->private_data = priv; - ret = nonseekable_open(inode, filp); + ret = stream_open(inode, filp); if (ret) goto out_unregister_notifier; _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
