All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ANDROID: fix err_cast.cocci warnings
  2020-01-31  7:19 [android-common:android-5.4 1/6] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
@ 2020-01-31  7:19 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-01-31  7:19 UTC (permalink / raw)
  To: kbuild-all

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

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

fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg


 Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

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

Fixes: 1be052b20ba0 ("ANDROID: Initial commit of Incremental FS")
CC: Eugene Zemtsov <ezemtsov@google.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://android.googlesource.com/kernel/common android-5.4
head:   383f53ee186a22c3d04cc6809e3b5e13bc2b571d
commit: 1be052b20ba04b635cf87bcff80de5314697953e [1/6] ANDROID: Initial commit of Incremental FS

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

--- a/fs/incfs/integrity.c
+++ b/fs/incfs/integrity.c
@@ -135,7 +135,7 @@ struct mtree *incfs_alloc_mtree(enum inc
 
 	hash_alg = incfs_get_hash_alg(id);
 	if (IS_ERR(hash_alg))
-		return ERR_PTR(PTR_ERR(hash_alg));
+		return ERR_CAST(hash_alg);
 
 	if (root_hash.len < hash_alg->digest_size)
 		return ERR_PTR(-EINVAL);

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

* [PATCH] ANDROID: fix err_cast.cocci warnings
  2020-03-18 21:13 [android-goldfish:android-4.14 1/3] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
@ 2020-03-18 21:13 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-03-18 21:13 UTC (permalink / raw)
  To: kbuild-all

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

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

fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg


 Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

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

Fixes: 318babce66a6 ("ANDROID: Initial commit of Incremental FS")
CC: Eugene Zemtsov <ezemtsov@google.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://android.googlesource.com/kernel/goldfish android-4.14
head:   4a1f984742c7b4ebfd2d77f48bf24b4ffcb069fd
commit: 318babce66a62d8bc8d5434909a044b89ab3a53e [1/3] ANDROID: Initial commit of Incremental FS

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

--- a/fs/incfs/integrity.c
+++ b/fs/incfs/integrity.c
@@ -135,7 +135,7 @@ struct mtree *incfs_alloc_mtree(enum inc
 
 	hash_alg = incfs_get_hash_alg(id);
 	if (IS_ERR(hash_alg))
-		return ERR_PTR(PTR_ERR(hash_alg));
+		return ERR_CAST(hash_alg);
 
 	if (root_hash.len < hash_alg->digest_size)
 		return ERR_PTR(-EINVAL);

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

* [android-common:android-4.19 1/4] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg
@ 2020-04-14  0:10 kbuild test robot
  2020-04-14  0:10 ` [PATCH] ANDROID: fix err_cast.cocci warnings kbuild test robot
  0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2020-04-14  0:10 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://android.googlesource.com/kernel/common android-4.19
head:   7bab03039e64ed6c26be90530e08978eab3be578
commit: 040942fc50b20325bb56737c32b303268bb6f35c [1/4] ANDROID: Initial commit of Incremental FS

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>


coccinelle warnings: (new ones prefixed by >>)

>> fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg

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

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

* [PATCH] ANDROID: fix err_cast.cocci warnings
  2020-04-14  0:10 [android-common:android-4.19 1/4] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
@ 2020-04-14  0:10 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-04-14  0:10 UTC (permalink / raw)
  To: kbuild-all

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

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

fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg


 Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

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

Fixes: 040942fc50b2 ("ANDROID: Initial commit of Incremental FS")
CC: Eugene Zemtsov <ezemtsov@google.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://android.googlesource.com/kernel/common android-4.19
head:   7bab03039e64ed6c26be90530e08978eab3be578
commit: 040942fc50b20325bb56737c32b303268bb6f35c [1/4] ANDROID: Initial commit of Incremental FS

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

--- a/fs/incfs/integrity.c
+++ b/fs/incfs/integrity.c
@@ -135,7 +135,7 @@ struct mtree *incfs_alloc_mtree(enum inc
 
 	hash_alg = incfs_get_hash_alg(id);
 	if (IS_ERR(hash_alg))
-		return ERR_PTR(PTR_ERR(hash_alg));
+		return ERR_CAST(hash_alg);
 
 	if (root_hash.len < hash_alg->digest_size)
 		return ERR_PTR(-EINVAL);

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

end of thread, other threads:[~2020-04-14  0:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-14  0:10 [android-common:android-4.19 1/4] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
2020-04-14  0:10 ` [PATCH] ANDROID: fix err_cast.cocci warnings kbuild test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-03-18 21:13 [android-goldfish:android-4.14 1/3] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
2020-03-18 21:13 ` [PATCH] ANDROID: fix err_cast.cocci warnings kbuild test robot
2020-01-31  7:19 [android-common:android-5.4 1/6] fs/incfs/integrity.c:138:9-16: WARNING: ERR_CAST can be used with hash_alg kbuild test robot
2020-01-31  7:19 ` [PATCH] ANDROID: fix err_cast.cocci warnings kbuild 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.