All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] counter: fix stream_open.cocci warnings
  2020-10-14  5:41 [dlech-linux:bone-counter 3/12] drivers/counter/counter-chrdev.c:294:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
@ 2020-10-14  5:41 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-10-14  5:41 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1397 bytes --]

CC: kbuild-all(a)lists.01.org
TO: William Breathitt Gray <vilhelm.gray@gmail.com>
CC: David Lechner <david@lechnology.com>
CC: linux-iio(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org

From: kernel test robot <lkp@intel.com>

drivers/counter/counter-chrdev.c:294:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.

Generated by: scripts/coccinelle/api/stream_open.cocci

Fixes: c4408f814b1a ("counter: Add character device interface")
CC: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://github.com/dlech/linux bone-counter
head:   f8f0ad10f30b5c1bea1a22f5de5dc9f2c6b7db1a
commit: c4408f814b1a257c3854ec272e8348ef8fe55f48 [3/12] counter: Add character device interface
:::::: branch date: 4 hours ago
:::::: commit date: 2 days ago

Please take the patch only if it's a positive warning. Thanks!

 counter-chrdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/counter/counter-chrdev.c
+++ b/drivers/counter/counter-chrdev.c
@@ -291,7 +291,7 @@ static int counter_chrdev_open(struct in
 	get_device(&counter->dev);
 	filp->private_data = counter;
 
-	return nonseekable_open(inode, filp);
+	return stream_open(inode, filp);
 }
 
 static int counter_chrdev_release(struct inode *inode, struct file *filp)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [dlech-linux:bone-counter 3/21] drivers/counter/counter-chrdev.c:307:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.
@ 2020-12-14  1:46 kernel test robot
  2020-12-14  1:46 ` [PATCH] counter: fix stream_open.cocci warnings kernel test robot
  0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2020-12-14  1:46 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]

CC: kbuild-all(a)lists.01.org
TO: William Breathitt Gray <vilhelm.gray@gmail.com>
CC: David Lechner <david@lechnology.com>

tree:   https://github.com/dlech/linux bone-counter
head:   dc99d06b0f101cff0b3157b1cb49e28e95387c46
commit: d698926a635b0cf342b9b18e04b5f15701834158 [3/21] counter: Add character device interface
:::::: branch date: 2 hours ago
:::::: commit date: 6 hours ago
config: parisc-randconfig-c003-20201213 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


"coccinelle warnings: (new ones prefixed by >>)"
>> drivers/counter/counter-chrdev.c:307:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21860 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] counter: fix stream_open.cocci warnings
  2020-12-14  1:46 [dlech-linux:bone-counter 3/21] drivers/counter/counter-chrdev.c:307:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
@ 2020-12-14  1:46 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-12-14  1:46 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

CC: kbuild-all(a)lists.01.org
TO: William Breathitt Gray <vilhelm.gray@gmail.com>
CC: David Lechner <david@lechnology.com>
CC: linux-iio(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org

From: kernel test robot <lkp@intel.com>

drivers/counter/counter-chrdev.c:307:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.

Generated by: scripts/coccinelle/api/stream_open.cocci

Fixes: d698926a635b ("counter: Add character device interface")
CC: William Breathitt Gray <vilhelm.gray@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://github.com/dlech/linux bone-counter
head:   dc99d06b0f101cff0b3157b1cb49e28e95387c46
commit: d698926a635b0cf342b9b18e04b5f15701834158 [3/21] counter: Add character device interface
:::::: branch date: 2 hours ago
:::::: commit date: 6 hours ago

Please take the patch only if it's a positive warning. Thanks!

 counter-chrdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/counter/counter-chrdev.c
+++ b/drivers/counter/counter-chrdev.c
@@ -304,7 +304,7 @@ static int counter_chrdev_open(struct in
 	get_device(&counter->dev);
 	filp->private_data = counter;
 
-	return nonseekable_open(inode, filp);
+	return stream_open(inode, filp);
 }
 
 static int counter_chrdev_release(struct inode *inode, struct file *filp)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] counter: fix stream_open.cocci warnings
  2020-12-31  2:29 [dlech-linux:bone-counter 3/11] drivers/counter/counter-chrdev.c:319:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
@ 2020-12-31  2:29 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-12-31  2:29 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

CC: kbuild-all(a)lists.01.org
TO: William Breathitt Gray <vilhelm.gray@gmail.com>
CC: David Lechner <david@lechnology.com>
CC: linux-iio(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org

From: kernel test robot <lkp@intel.com>

drivers/counter/counter-chrdev.c:319:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.

Generated by: scripts/coccinelle/api/stream_open.cocci

Fixes: a4ac03457672 ("counter: Add character device interface")
CC: William Breathitt Gray <vilhelm.gray@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://github.com/dlech/linux bone-counter
head:   bf76333d3e9172a0cf1d9dc2e02ea0a48a44a37f
commit: a4ac0345767253ad4b7c9516d6a5babc70d275d9 [3/11] counter: Add character device interface
:::::: branch date: 4 hours ago
:::::: commit date: 7 hours ago

Please take the patch only if it's a positive warning. Thanks!

 counter-chrdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/counter/counter-chrdev.c
+++ b/drivers/counter/counter-chrdev.c
@@ -316,7 +316,7 @@ static int counter_chrdev_open(struct in
 	get_device(&counter->dev);
 	filp->private_data = counter;
 
-	return nonseekable_open(inode, filp);
+	return stream_open(inode, filp);
 }
 
 static int counter_chrdev_release(struct inode *inode, struct file *filp)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] counter: fix stream_open.cocci warnings
  2021-07-13 13:20 [PATCH v13 10/17] counter: Add character device interface kernel test robot
@ 2021-07-13 13:20 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-07-13 13:20 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <ea787eb4139421bc2ec23ebbdecdc5c5db6fed81.1626165765.git.vilhelm.gray@gmail.com>
References: <ea787eb4139421bc2ec23ebbdecdc5c5db6fed81.1626165765.git.vilhelm.gray@gmail.com>
TO: William Breathitt Gray <vilhelm.gray@gmail.com>

From: kernel test robot <lkp@intel.com>

drivers/counter/counter-chrdev.c:342:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.

Generated by: scripts/coccinelle/api/stream_open.cocci

CC: William Breathitt Gray <vilhelm.gray@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

url:    https://github.com/0day-ci/linux/commits/William-Breathitt-Gray/Introduce-the-Counter-character-device-interface/20210713-175710
base:   50be9417e23af5a8ac860d998e1e3f06b8fd79d7
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago

Please take the patch only if it's a positive warning. Thanks!

 counter-chrdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/counter/counter-chrdev.c
+++ b/drivers/counter/counter-chrdev.c
@@ -339,7 +339,7 @@ static int counter_chrdev_open(struct in
 	get_device(&counter->dev);
 	filp->private_data = counter;
 
-	return nonseekable_open(inode, filp);
+	return stream_open(inode, filp);
 }
 
 static int counter_chrdev_release(struct inode *inode, struct file *filp)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] counter: fix stream_open.cocci warnings
  2021-08-03 16:39 [PATCH v14 10/17] counter: Add character device interface kernel test robot
@ 2021-08-03 16:39 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-08-03 16:39 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1483 bytes --]

CC: kbuild-all(a)lists.01.org
In-Reply-To: <2c51fa594245c3396400617caa686b8bf0887d16.1627990337.git.vilhelm.gray@gmail.com>
References: <2c51fa594245c3396400617caa686b8bf0887d16.1627990337.git.vilhelm.gray@gmail.com>
TO: William Breathitt Gray <vilhelm.gray@gmail.com>

From: kernel test robot <lkp@intel.com>

drivers/counter/counter-chrdev.c:370:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.

Generated by: scripts/coccinelle/api/stream_open.cocci

CC: William Breathitt Gray <vilhelm.gray@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

url:    https://github.com/0day-ci/linux/commits/William-Breathitt-Gray/Introduce-the-Counter-character-device-interface/20210803-201000
base:   https://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32.git stm32-next
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago

Please take the patch only if it's a positive warning. Thanks!

 counter-chrdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/counter/counter-chrdev.c
+++ b/drivers/counter/counter-chrdev.c
@@ -367,7 +367,7 @@ static int counter_chrdev_open(struct in
 	get_device(&counter->dev);
 	filp->private_data = counter;
 
-	return nonseekable_open(inode, filp);
+	return stream_open(inode, filp);
 }
 
 static int counter_chrdev_release(struct inode *inode, struct file *filp)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] counter: fix stream_open.cocci warnings
  2021-10-09  4:45 [linux-next:master 4784/6929] drivers/counter/counter-chrdev.c:394:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
@ 2021-10-09  4:45 ` kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-10-09  4:45 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: William Breathitt Gray <vilhelm.gray@gmail.com>
CC: Jonathan Cameron <Jonathan.Cameron@huawei.com>
CC: linux-iio(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org

From: kernel test robot <lkp@intel.com>

drivers/counter/counter-chrdev.c:394:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open.

Generated by: scripts/coccinelle/api/stream_open.cocci

Fixes: 6877f0924e38 ("counter: Add character device interface")
CC: William Breathitt Gray <vilhelm.gray@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   683f29b781aeaab6bf302eeb2ef08a5e5f9d8a27
commit: 6877f0924e38f95da76cdac254121acbbdbaeacb [4784/6929] counter: Add character device interface
:::::: branch date: 22 hours ago
:::::: commit date: 7 days ago

Please take the patch only if it's a positive warning. Thanks!

 counter-chrdev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/counter/counter-chrdev.c
+++ b/drivers/counter/counter-chrdev.c
@@ -391,7 +391,7 @@ static int counter_chrdev_open(struct in
 	get_device(&counter->dev);
 	filp->private_data = counter;
 
-	return nonseekable_open(inode, filp);
+	return stream_open(inode, filp);
 }
 
 static int counter_chrdev_release(struct inode *inode, struct file *filp)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-10-09  4:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-14  1:46 [dlech-linux:bone-counter 3/21] drivers/counter/counter-chrdev.c:307:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
2020-12-14  1:46 ` [PATCH] counter: fix stream_open.cocci warnings kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-10-09  4:45 [linux-next:master 4784/6929] drivers/counter/counter-chrdev.c:394:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
2021-10-09  4:45 ` [PATCH] counter: fix stream_open.cocci warnings kernel test robot
2021-08-03 16:39 [PATCH v14 10/17] counter: Add character device interface kernel test robot
2021-08-03 16:39 ` [PATCH] counter: fix stream_open.cocci warnings kernel test robot
2021-07-13 13:20 [PATCH v13 10/17] counter: Add character device interface kernel test robot
2021-07-13 13:20 ` [PATCH] counter: fix stream_open.cocci warnings kernel test robot
2020-12-31  2:29 [dlech-linux:bone-counter 3/11] drivers/counter/counter-chrdev.c:319:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
2020-12-31  2:29 ` [PATCH] counter: fix stream_open.cocci warnings kernel test robot
2020-10-14  5:41 [dlech-linux:bone-counter 3/12] drivers/counter/counter-chrdev.c:294:8-24: WARNING: counter_fops: .read() has stream semantic; safe to change nonseekable_open -> stream_open kernel test robot
2020-10-14  5:41 ` [PATCH] counter: fix stream_open.cocci warnings kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.