* [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing
@ 2015-06-19 4:05 Maninder Singh
2015-06-19 7:26 ` Christian König
0 siblings, 1 reply; 5+ messages in thread
From: Maninder Singh @ 2015-06-19 4:05 UTC (permalink / raw)
To: alexander.deucher, christian.koenig, airlied, dri-devel, linux-kernel
Cc: pankaj.m, Maninder Singh
Use kzalloc for allocating one thing rather than
kcalloc(1...
The semantic patch that makes this change is as follows:
// <smpl>
@@
@@
- kcalloc(1,
+ kzalloc(
...)
// </smpl>
Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
---
drivers/gpu/drm/radeon/radeon_ttm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
index edafd3c..06ac59f 100644
--- a/drivers/gpu/drm/radeon/radeon_ttm.c
+++ b/drivers/gpu/drm/radeon/radeon_ttm.c
@@ -719,7 +719,7 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm)
return 0;
if (gtt && gtt->userptr) {
- ttm->sg = kcalloc(1, sizeof(struct sg_table), GFP_KERNEL);
+ ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
if (!ttm->sg)
return -ENOMEM;
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing
2015-06-19 4:05 [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing Maninder Singh
@ 2015-06-19 7:26 ` Christian König
0 siblings, 0 replies; 5+ messages in thread
From: Christian König @ 2015-06-19 7:26 UTC (permalink / raw)
To: Maninder Singh, alexander.deucher, airlied, dri-devel, linux-kernel
Cc: pankaj.m
On 19.06.2015 06:05, Maninder Singh wrote:
> Use kzalloc for allocating one thing rather than
> kcalloc(1...
>
> The semantic patch that makes this change is as follows:
>
> // <smpl>
> @@
> @@
>
> - kcalloc(1,
> + kzalloc(
> ...)
> // </smpl>
>
> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Alex should pick that up in his 4.2 branch.
Regards,
Christian.
> ---
> drivers/gpu/drm/radeon/radeon_ttm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
> index edafd3c..06ac59f 100644
> --- a/drivers/gpu/drm/radeon/radeon_ttm.c
> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
> @@ -719,7 +719,7 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm)
> return 0;
>
> if (gtt && gtt->userptr) {
> - ttm->sg = kcalloc(1, sizeof(struct sg_table), GFP_KERNEL);
> + ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
> if (!ttm->sg)
> return -ENOMEM;
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing
@ 2015-06-19 7:26 ` Christian König
0 siblings, 0 replies; 5+ messages in thread
From: Christian König @ 2015-06-19 7:26 UTC (permalink / raw)
To: Maninder Singh, alexander.deucher, airlied, dri-devel, linux-kernel
Cc: pankaj.m
On 19.06.2015 06:05, Maninder Singh wrote:
> Use kzalloc for allocating one thing rather than
> kcalloc(1...
>
> The semantic patch that makes this change is as follows:
>
> // <smpl>
> @@
> @@
>
> - kcalloc(1,
> + kzalloc(
> ...)
> // </smpl>
>
> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Alex should pick that up in his 4.2 branch.
Regards,
Christian.
> ---
> drivers/gpu/drm/radeon/radeon_ttm.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
> index edafd3c..06ac59f 100644
> --- a/drivers/gpu/drm/radeon/radeon_ttm.c
> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
> @@ -719,7 +719,7 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm)
> return 0;
>
> if (gtt && gtt->userptr) {
> - ttm->sg = kcalloc(1, sizeof(struct sg_table), GFP_KERNEL);
> + ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
> if (!ttm->sg)
> return -ENOMEM;
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing
2015-06-19 7:26 ` Christian König
@ 2015-06-24 19:02 ` Alex Deucher
-1 siblings, 0 replies; 5+ messages in thread
From: Alex Deucher @ 2015-06-24 19:02 UTC (permalink / raw)
To: Christian König
Cc: Maninder Singh, Deucher, Alexander, Dave Airlie,
Maling list - DRI developers, LKML, pankaj.m
On Fri, Jun 19, 2015 at 3:26 AM, Christian König
<christian.koenig@amd.com> wrote:
> On 19.06.2015 06:05, Maninder Singh wrote:
>>
>> Use kzalloc for allocating one thing rather than
>> kcalloc(1...
>>
>> The semantic patch that makes this change is as follows:
>>
>> // <smpl>
>> @@
>> @@
>>
>> - kcalloc(1,
>> + kzalloc(
>> ...)
>> // </smpl>
>>
>> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
>> Reviewed-by: Vaneet Narang <v.narang@samsung.com>
>
>
> Reviewed-by: Christian König <christian.koenig@amd.com>
>
> Alex should pick that up in his 4.2 branch.
Applied. thanks!
Alex
>
> Regards,
> Christian.
>
>> ---
>> drivers/gpu/drm/radeon/radeon_ttm.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c
>> b/drivers/gpu/drm/radeon/radeon_ttm.c
>> index edafd3c..06ac59f 100644
>> --- a/drivers/gpu/drm/radeon/radeon_ttm.c
>> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
>> @@ -719,7 +719,7 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm)
>> return 0;
>> if (gtt && gtt->userptr) {
>> - ttm->sg = kcalloc(1, sizeof(struct sg_table), GFP_KERNEL);
>> + ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
>> if (!ttm->sg)
>> return -ENOMEM;
>>
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing
@ 2015-06-24 19:02 ` Alex Deucher
0 siblings, 0 replies; 5+ messages in thread
From: Alex Deucher @ 2015-06-24 19:02 UTC (permalink / raw)
To: Christian König
Cc: LKML, Maling list - DRI developers, Deucher, Alexander,
Maninder Singh, pankaj.m
On Fri, Jun 19, 2015 at 3:26 AM, Christian König
<christian.koenig@amd.com> wrote:
> On 19.06.2015 06:05, Maninder Singh wrote:
>>
>> Use kzalloc for allocating one thing rather than
>> kcalloc(1...
>>
>> The semantic patch that makes this change is as follows:
>>
>> // <smpl>
>> @@
>> @@
>>
>> - kcalloc(1,
>> + kzalloc(
>> ...)
>> // </smpl>
>>
>> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
>> Reviewed-by: Vaneet Narang <v.narang@samsung.com>
>
>
> Reviewed-by: Christian König <christian.koenig@amd.com>
>
> Alex should pick that up in his 4.2 branch.
Applied. thanks!
Alex
>
> Regards,
> Christian.
>
>> ---
>> drivers/gpu/drm/radeon/radeon_ttm.c | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c
>> b/drivers/gpu/drm/radeon/radeon_ttm.c
>> index edafd3c..06ac59f 100644
>> --- a/drivers/gpu/drm/radeon/radeon_ttm.c
>> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
>> @@ -719,7 +719,7 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm)
>> return 0;
>> if (gtt && gtt->userptr) {
>> - ttm->sg = kcalloc(1, sizeof(struct sg_table), GFP_KERNEL);
>> + ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
>> if (!ttm->sg)
>> return -ENOMEM;
>>
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-24 19:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19 4:05 [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing Maninder Singh
2015-06-19 7:26 ` Christian König
2015-06-19 7:26 ` Christian König
2015-06-24 19:02 ` Alex Deucher
2015-06-24 19:02 ` Alex Deucher
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.