All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/tee/optee/shm_pool.c:34:28-34: ERROR: application of sizeof to pointer
@ 2020-09-14  3:12 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-14  3:12 UTC (permalink / raw)
  To: Sumit Garg; +Cc: kbuild-all, linux-kernel, Jens Wiklander

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   856deb866d16e29bd65952e0289066f6078af773
commit: 5a769f6ff439cedc547395a6dc78faa26108f741 optee: Fix multi page dynamic shm pool alloc
date:   9 months ago
config: arm64-randconfig-c004-20200913 (attached as .config)
compiler: aarch64-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 >>)

>> drivers/tee/optee/shm_pool.c:34:28-34: ERROR: application of sizeof to pointer

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: 32773 bytes --]

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

* drivers/tee/optee/shm_pool.c:34:28-34: ERROR: application of sizeof to pointer
@ 2020-09-14  3:12 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-14  3:12 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   856deb866d16e29bd65952e0289066f6078af773
commit: 5a769f6ff439cedc547395a6dc78faa26108f741 optee: Fix multi page dynamic shm pool alloc
date:   9 months ago
config: arm64-randconfig-c004-20200913 (attached as .config)
compiler: aarch64-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 >>)

>> drivers/tee/optee/shm_pool.c:34:28-34: ERROR: application of sizeof to pointer

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: 32773 bytes --]

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

* [PATCH] optee: fix noderef.cocci warnings
  2020-09-14  3:12 ` kernel test robot
  (?)
@ 2020-09-14  3:12 ` kernel test robot
  -1 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-09-14  3:12 UTC (permalink / raw)
  To: kbuild-all

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

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

drivers/tee/optee/shm_pool.c:34:28-34: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

Fixes: 5a769f6ff439 ("optee: Fix multi page dynamic shm pool alloc")
CC: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: kernel test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   856deb866d16e29bd65952e0289066f6078af773
commit: 5a769f6ff439cedc547395a6dc78faa26108f741 optee: Fix multi page dynamic shm pool alloc

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

--- a/drivers/tee/optee/shm_pool.c
+++ b/drivers/tee/optee/shm_pool.c
@@ -31,7 +31,7 @@ static int pool_op_alloc(struct tee_shm_
 		unsigned int nr_pages = 1 << order, i;
 		struct page **pages;
 
-		pages = kcalloc(nr_pages, sizeof(pages), GFP_KERNEL);
+		pages = kcalloc(nr_pages, sizeof(*pages), GFP_KERNEL);
 		if (!pages)
 			return -ENOMEM;
 

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

end of thread, other threads:[~2020-09-14  3:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14  3:12 drivers/tee/optee/shm_pool.c:34:28-34: ERROR: application of sizeof to pointer kernel test robot
2020-09-14  3:12 ` kernel test robot
2020-09-14  3:12 ` [PATCH] optee: fix noderef.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.