CC: [email protected]
BCC: [email protected]
TO: Roman Gushchin <[email protected]>

From: kernel test robot <[email protected]>

mm/shrinker_debug.c:105:8-24: WARNING: shrinker_debugfs_scan_fops: .write() has 
stream semantic; safe to change nonseekable_open -> stream_open.

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

Fixes: 44d87615ffe3 ("mm: shrinkers: add scan interface for shrinker debugfs")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---

tree:   https://github.com/rgushchin/linux.git shrinker.5
head:   be0b94668aac83e3bc04f73b06ad0b309bd51477
commit: 44d87615ffe3c376b23b6087b0b1fa02a3f86b62 [7/9] mm: shrinkers: add scan 
interface for shrinker debugfs
:::::: branch date: 15 hours ago
:::::: commit date: 2 days ago

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

 mm/shrinker_debug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/shrinker_debug.c
+++ b/mm/shrinker_debug.c
@@ -102,7 +102,7 @@ DEFINE_SHOW_ATTRIBUTE(shrinker_debugfs_c
 static int shrinker_debugfs_scan_open(struct inode *inode, struct file *file)
 {
        file->private_data = inode->i_private;
-       return nonseekable_open(inode, file);
+       return stream_open(inode, file);
 }
 
 static ssize_t shrinker_debugfs_scan_write(struct file *file,
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to