* [PATCH] arch/sparc: Use kzalloc_node
@ 2018-11-03 5:24 Sabyasachi Gupta
2018-11-15 17:53 ` Sabyasachi Gupta
2018-11-19 2:59 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Sabyasachi Gupta @ 2018-11-03 5:24 UTC (permalink / raw)
To: davem, khandual; +Cc: jrdr.linux, sparclinux, linux-kernel, brajeswar.linux
Replaced kmalloc_node + memset with kzalloc_node
Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
---
arch/sparc/kernel/iommu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c
index 40d008b..05eb016 100644
--- a/arch/sparc/kernel/iommu.c
+++ b/arch/sparc/kernel/iommu.c
@@ -108,10 +108,9 @@ int iommu_table_init(struct iommu *iommu, int tsbsize,
/* Allocate and initialize the free area map. */
sz = num_tsb_entries / 8;
sz = (sz + 7UL) & ~7UL;
- iommu->tbl.map = kmalloc_node(sz, GFP_KERNEL, numa_node);
+ iommu->tbl.map = kzalloc_node(sz, GFP_KERNEL, numa_node);
if (!iommu->tbl.map)
return -ENOMEM;
- memset(iommu->tbl.map, 0, sz);
iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT,
(tlb_type != hypervisor ? iommu_flushall : NULL),
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arch/sparc: Use kzalloc_node
2018-11-03 5:24 [PATCH] arch/sparc: Use kzalloc_node Sabyasachi Gupta
@ 2018-11-15 17:53 ` Sabyasachi Gupta
2018-11-15 18:05 ` David Miller
2018-11-19 2:59 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Sabyasachi Gupta @ 2018-11-15 17:53 UTC (permalink / raw)
To: davem, khandual
Cc: Souptick Joarder, sparclinux, linux-kernel, Brajeswar Ghosh
On Sat, Nov 3, 2018 at 10:54 AM Sabyasachi Gupta
<sabyasachi.linux@gmail.com> wrote:
>
> Replaced kmalloc_node + memset with kzalloc_node
>
> Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
Any comment on this patch?
> ---
> arch/sparc/kernel/iommu.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/sparc/kernel/iommu.c b/arch/sparc/kernel/iommu.c
> index 40d008b..05eb016 100644
> --- a/arch/sparc/kernel/iommu.c
> +++ b/arch/sparc/kernel/iommu.c
> @@ -108,10 +108,9 @@ int iommu_table_init(struct iommu *iommu, int tsbsize,
> /* Allocate and initialize the free area map. */
> sz = num_tsb_entries / 8;
> sz = (sz + 7UL) & ~7UL;
> - iommu->tbl.map = kmalloc_node(sz, GFP_KERNEL, numa_node);
> + iommu->tbl.map = kzalloc_node(sz, GFP_KERNEL, numa_node);
> if (!iommu->tbl.map)
> return -ENOMEM;
> - memset(iommu->tbl.map, 0, sz);
>
> iommu_tbl_pool_init(&iommu->tbl, num_tsb_entries, IO_PAGE_SHIFT,
> (tlb_type != hypervisor ? iommu_flushall : NULL),
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arch/sparc: Use kzalloc_node
2018-11-15 17:53 ` Sabyasachi Gupta
@ 2018-11-15 18:05 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2018-11-15 18:05 UTC (permalink / raw)
To: sabyasachi.linux
Cc: khandual, jrdr.linux, sparclinux, linux-kernel, brajeswar.linux
From: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
Date: Thu, 15 Nov 2018 23:23:42 +0530
> On Sat, Nov 3, 2018 at 10:54 AM Sabyasachi Gupta
> <sabyasachi.linux@gmail.com> wrote:
>>
>> Replaced kmalloc_node + memset with kzalloc_node
>>
>> Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
>
> Any comment on this patch?
Just too busy to get to it and am at plumbers this week.
Will try to look at it next week.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arch/sparc: Use kzalloc_node
2018-11-03 5:24 [PATCH] arch/sparc: Use kzalloc_node Sabyasachi Gupta
2018-11-15 17:53 ` Sabyasachi Gupta
@ 2018-11-19 2:59 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2018-11-19 2:59 UTC (permalink / raw)
To: sabyasachi.linux
Cc: khandual, jrdr.linux, sparclinux, linux-kernel, brajeswar.linux
From: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
Date: Sat, 3 Nov 2018 10:54:52 +0530
> Replaced kmalloc_node + memset with kzalloc_node
>
> Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-19 2:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-03 5:24 [PATCH] arch/sparc: Use kzalloc_node Sabyasachi Gupta
2018-11-15 17:53 ` Sabyasachi Gupta
2018-11-15 18:05 ` David Miller
2018-11-19 2:59 ` David Miller
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).