* [intel-tdx:guest 129/144] kernel/dma/swiotlb.c:389:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
@ 2021-11-20 8:33 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-11-20 8:33 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
tree: https://github.com/intel/tdx.git guest
head: 41fe88a1b3c28543f49fa6ed9e0e9b6650ed7614
commit: 4529b5784c141782c72ec9bd9a92df2b68cb7d45 [129/144] swiotlb: Split up single swiotlb lock
config: x86_64-randconfig-c002-20211118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> kernel/dma/swiotlb.c:389:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
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: 34513 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-tdx:guest 129/144] kernel/dma/swiotlb.c:389:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
@ 2021-11-20 8:33 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-11-20 8:33 UTC (permalink / raw)
To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan
[-- Attachment #1: Type: text/plain, Size: 751 bytes --]
tree: https://github.com/intel/tdx.git guest
head: 41fe88a1b3c28543f49fa6ed9e0e9b6650ed7614
commit: 4529b5784c141782c72ec9bd9a92df2b68cb7d45 [129/144] swiotlb: Split up single swiotlb lock
config: x86_64-randconfig-c002-20211118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> kernel/dma/swiotlb.c:389:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
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: 34513 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] swiotlb: fix alloc_cast.cocci warnings
2021-11-20 8:33 ` kernel test robot
@ 2021-11-20 8:33 ` kernel test robot
-1 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-11-20 8:33 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1567 bytes --]
From: kernel test robot <lkp@intel.com>
kernel/dma/swiotlb.c:389:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
Remove casting the values returned by memory allocation functions
like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
Semantic patch information:
This makes an effort to find cases of casting of values returned by
kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes
the casting as it is not required. The result in the patch case may
need some reformatting.
Generated by: scripts/coccinelle/api/alloc/alloc_cast.cocci
Fixes: 4529b5784c14 ("swiotlb: Split up single swiotlb lock")
CC: Andi Kleen <ak@linux.intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://github.com/intel/tdx.git guest
head: 41fe88a1b3c28543f49fa6ed9e0e9b6650ed7614
commit: 4529b5784c141782c72ec9bd9a92df2b68cb7d45 [129/144] swiotlb: Split up single swiotlb lock
:::::: branch date: 9 days ago
:::::: commit date: 9 days ago
swiotlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -386,7 +386,7 @@ swiotlb_late_init_with_tbl(char *tlb, un
return -ENOMEM;
}
- mem->areas = (struct io_tlb_area *)kcalloc(num_areas,
+ mem->areas = kcalloc(num_areas,
sizeof(struct io_tlb_area),
GFP_KERNEL);
if (!mem->areas) {
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH] swiotlb: fix alloc_cast.cocci warnings
@ 2021-11-20 8:33 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-11-20 8:33 UTC (permalink / raw)
To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan
From: kernel test robot <lkp@intel.com>
kernel/dma/swiotlb.c:389:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
Remove casting the values returned by memory allocation functions
like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
Semantic patch information:
This makes an effort to find cases of casting of values returned by
kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes
the casting as it is not required. The result in the patch case may
need some reformatting.
Generated by: scripts/coccinelle/api/alloc/alloc_cast.cocci
Fixes: 4529b5784c14 ("swiotlb: Split up single swiotlb lock")
CC: Andi Kleen <ak@linux.intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://github.com/intel/tdx.git guest
head: 41fe88a1b3c28543f49fa6ed9e0e9b6650ed7614
commit: 4529b5784c141782c72ec9bd9a92df2b68cb7d45 [129/144] swiotlb: Split up single swiotlb lock
:::::: branch date: 9 days ago
:::::: commit date: 9 days ago
swiotlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -386,7 +386,7 @@ swiotlb_late_init_with_tbl(char *tlb, un
return -ENOMEM;
}
- mem->areas = (struct io_tlb_area *)kcalloc(num_areas,
+ mem->areas = kcalloc(num_areas,
sizeof(struct io_tlb_area),
GFP_KERNEL);
if (!mem->areas) {
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-tdx:guest-rebased 115/133] kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
@ 2022-02-16 4:19 kernel test robot
2022-02-16 4:11 ` kernel test robot
0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2022-02-16 4:19 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 851 bytes --]
tree: https://github.com/intel/tdx.git guest-rebased
head: 36c91f6d572820e8556972fd7644bd96798e85d6
commit: 77d5cb1c6d4fe32593d65a38b4732da6c90b8f29 [115/133] swiotlb: Split up single swiotlb lock
config: x86_64-randconfig-c002-20220214 (https://download.01.org/0day-ci/archive/20220216/202202161256.1zrqppDy-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
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] 7+ messages in thread
* [PATCH] swiotlb: fix alloc_cast.cocci warnings
2022-02-16 4:19 [intel-tdx:guest-rebased 115/133] kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless kernel test robot
@ 2022-02-16 4:11 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2022-02-16 4:11 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
From: kernel test robot <lkp@intel.com>
kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
Remove casting the values returned by memory allocation functions
like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
Semantic patch information:
This makes an effort to find cases of casting of values returned by
kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes
the casting as it is not required. The result in the patch case may
need some reformatting.
Generated by: scripts/coccinelle/api/alloc/alloc_cast.cocci
Fixes: 77d5cb1c6d4f ("swiotlb: Split up single swiotlb lock")
CC: Andi Kleen <ak@linux.intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://github.com/intel/tdx.git guest-rebased
head: 36c91f6d572820e8556972fd7644bd96798e85d6
commit: 77d5cb1c6d4fe32593d65a38b4732da6c90b8f29 [115/133] swiotlb: Split up single swiotlb lock
:::::: branch date: 19 hours ago
:::::: commit date: 2 weeks ago
kernel/dma/swiotlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -430,7 +430,7 @@ swiotlb_late_init_with_tbl(char *tlb, un
return -ENOMEM;
}
- mem->areas = (struct io_tlb_area *)kcalloc(num_areas,
+ mem->areas = kcalloc(num_areas,
sizeof(struct io_tlb_area),
GFP_KERNEL);
if (!mem->areas) {
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH] swiotlb: fix alloc_cast.cocci warnings
@ 2022-02-16 4:11 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2022-02-16 4:11 UTC (permalink / raw)
To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kirill A. Shutemov
From: kernel test robot <lkp@intel.com>
kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
Remove casting the values returned by memory allocation functions
like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
Semantic patch information:
This makes an effort to find cases of casting of values returned by
kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes
the casting as it is not required. The result in the patch case may
need some reformatting.
Generated by: scripts/coccinelle/api/alloc/alloc_cast.cocci
Fixes: 77d5cb1c6d4f ("swiotlb: Split up single swiotlb lock")
CC: Andi Kleen <ak@linux.intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://github.com/intel/tdx.git guest-rebased
head: 36c91f6d572820e8556972fd7644bd96798e85d6
commit: 77d5cb1c6d4fe32593d65a38b4732da6c90b8f29 [115/133] swiotlb: Split up single swiotlb lock
:::::: branch date: 19 hours ago
:::::: commit date: 2 weeks ago
kernel/dma/swiotlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -430,7 +430,7 @@ swiotlb_late_init_with_tbl(char *tlb, un
return -ENOMEM;
}
- mem->areas = (struct io_tlb_area *)kcalloc(num_areas,
+ mem->areas = kcalloc(num_areas,
sizeof(struct io_tlb_area),
GFP_KERNEL);
if (!mem->areas) {
^ permalink raw reply [flat|nested] 7+ messages in thread
* [intel-tdx:guest-rebased 65/83] kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
@ 2022-03-26 8:10 kernel test robot
2022-03-26 8:09 ` [PATCH] swiotlb: fix alloc_cast.cocci warnings kernel test robot
0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2022-03-26 8:10 UTC (permalink / raw)
To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan
tree: https://github.com/intel/tdx.git guest-rebased
head: 4c095660b91dbdd18042456e395af0deeef93485
commit: 4ab45cefa80f97ba2bdc31226523c891832d1080 [65/83] swiotlb: Split up single swiotlb lock
config: s390-randconfig-c023-20220324 (https://download.01.org/0day-ci/archive/20220326/202203261644.zQlZ2Jw4-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
cocci warnings: (new ones prefixed by >>)
>> kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
Please review and possibly fold the followup patch.
--
0-DAY CI Kernel Test Service
https://01.org/lkp
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] swiotlb: fix alloc_cast.cocci warnings
2022-03-26 8:10 [intel-tdx:guest-rebased 65/83] kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless kernel test robot
@ 2022-03-26 8:09 ` kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2022-03-26 8:09 UTC (permalink / raw)
To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan
From: kernel test robot <lkp@intel.com>
kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless.
Remove casting the values returned by memory allocation functions
like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
Semantic patch information:
This makes an effort to find cases of casting of values returned by
kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
kmem_cache_alloc_node, kmalloc_node and kzalloc_node and removes
the casting as it is not required. The result in the patch case may
need some reformatting.
Generated by: scripts/coccinelle/api/alloc/alloc_cast.cocci
Fixes: 4ab45cefa80f ("swiotlb: Split up single swiotlb lock")
CC: Andi Kleen <ak@linux.intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---
tree: https://github.com/intel/tdx.git guest-rebased
head: 4c095660b91dbdd18042456e395af0deeef93485
commit: 4ab45cefa80f97ba2bdc31226523c891832d1080 [65/83] swiotlb: Split up single swiotlb lock
:::::: branch date: 13 hours ago
:::::: commit date: 3 days ago
kernel/dma/swiotlb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/dma/swiotlb.c
+++ b/kernel/dma/swiotlb.c
@@ -430,7 +430,7 @@ swiotlb_late_init_with_tbl(char *tlb, un
return -ENOMEM;
}
- mem->areas = (struct io_tlb_area *)kcalloc(num_areas,
+ mem->areas = kcalloc(num_areas,
sizeof(struct io_tlb_area),
GFP_KERNEL);
if (!mem->areas) {
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-03-26 8:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-20 8:33 [intel-tdx:guest 129/144] kernel/dma/swiotlb.c:389:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless kernel test robot
2021-11-20 8:33 ` kernel test robot
2021-11-20 8:33 ` [PATCH] swiotlb: fix alloc_cast.cocci warnings kernel test robot
2021-11-20 8:33 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2022-02-16 4:19 [intel-tdx:guest-rebased 115/133] kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless kernel test robot
2022-02-16 4:11 ` [PATCH] swiotlb: fix alloc_cast.cocci warnings kernel test robot
2022-02-16 4:11 ` kernel test robot
2022-03-26 8:10 [intel-tdx:guest-rebased 65/83] kernel/dma/swiotlb.c:433:15-33: WARNING: casting value returned by memory allocation function to (struct io_tlb_area *) is useless kernel test robot
2022-03-26 8:09 ` [PATCH] swiotlb: fix alloc_cast.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.