* [security:secure_uffd_v5.9 1/3] fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode
@ 2020-06-04 11:19 kernel test robot
2020-06-04 11:19 ` [PATCH] fix err_cast.cocci warnings kernel test robot
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-06-04 11:19 UTC (permalink / raw)
To: Daniel, Colascione,; +Cc: kbuild-all, linux-security-module, James Morris
[-- Attachment #1: Type: text/plain, Size: 752 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git secure_uffd_v5.9
head: d08ac70b1e0dc71ac2315007bcc3efb283b2eae4
commit: 2749d3f84a708110ed0359579be0eddd2c4036da [1/3] Add a new LSM-supporting anonymous inode interface
config: nios2-randconfig-c003-20200604 (attached as .config)
compiler: nios2-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>
coccinelle warnings: (new ones prefixed by >>)
>> fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26255 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] fix err_cast.cocci warnings
2020-06-04 11:19 [security:secure_uffd_v5.9 1/3] fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode kernel test robot
@ 2020-06-04 11:19 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-06-04 11:19 UTC (permalink / raw)
To: Daniel, Colascione,; +Cc: kbuild-all, linux-security-module, James Morris
From: kernel test robot <lkp@intel.com>
fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode
Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Generated by: scripts/coccinelle/api/err_cast.cocci
Fixes: 2749d3f84a70 ("Add a new LSM-supporting anonymous inode interface")
CC: Daniel Colascione <dancol@google.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git secure_uffd_v5.9
head: d08ac70b1e0dc71ac2315007bcc3efb283b2eae4
commit: 2749d3f84a708110ed0359579be0eddd2c4036da [1/3] Add a new LSM-supporting anonymous inode interface
anon_inodes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/anon_inodes.c
+++ b/fs/anon_inodes.c
@@ -89,7 +89,7 @@ struct file *_anon_inode_getfile(const c
inode = anon_inode_make_secure_inode(
name, context_inode);
if (IS_ERR(inode))
- return ERR_PTR(PTR_ERR(inode));
+ return ERR_CAST(inode);
} else {
inode = anon_inode_inode;
if (IS_ERR(inode))
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] fix err_cast.cocci warnings
2020-07-08 2:53 [security:secure_uffd_v5.9 1/3] fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode kernel test robot
@ 2020-07-08 2:53 ` kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-07-08 2:53 UTC (permalink / raw)
To: Daniel Colascione; +Cc: kbuild-all, linux-security-module, James Morris
From: kernel test robot <lkp@intel.com>
fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode
Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))
Generated by: scripts/coccinelle/api/err_cast.cocci
Fixes: 2749d3f84a70 ("Add a new LSM-supporting anonymous inode interface")
CC: Daniel Colascione <dancol@google.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git secure_uffd_v5.9
head: d08ac70b1e0dc71ac2315007bcc3efb283b2eae4
commit: 2749d3f84a708110ed0359579be0eddd2c4036da [1/3] Add a new LSM-supporting anonymous inode interface
anon_inodes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/anon_inodes.c
+++ b/fs/anon_inodes.c
@@ -89,7 +89,7 @@ struct file *_anon_inode_getfile(const c
inode = anon_inode_make_secure_inode(
name, context_inode);
if (IS_ERR(inode))
- return ERR_PTR(PTR_ERR(inode));
+ return ERR_CAST(inode);
} else {
inode = anon_inode_inode;
if (IS_ERR(inode))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-08 2:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04 11:19 [security:secure_uffd_v5.9 1/3] fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode kernel test robot
2020-06-04 11:19 ` [PATCH] fix err_cast.cocci warnings kernel test robot
2020-07-08 2:53 [security:secure_uffd_v5.9 1/3] fs/anon_inodes.c:92:10-17: WARNING: ERR_CAST can be used with inode kernel test robot
2020-07-08 2:53 ` [PATCH] fix err_cast.cocci warnings kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).