Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753885AbbFSH0k (ORCPT ); Fri, 19 Jun 2015 03:26:40 -0400 Received: from mail-by2on0106.outbound.protection.outlook.com ([207.46.100.106]:22256 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752772AbbFSH0c convert rfc822-to-8bit (ORCPT ); Fri, 19 Jun 2015 03:26:32 -0400 Authentication-Results: spf=none (sender IP is 165.204.84.221) smtp.mailfrom=amd.com; linux.ie; dkim=none (message not signed) header.d=none; X-WSS-ID: 0NQ6KO3-07-BYI-02 X-M-MSG: Message-ID: <5583C420.4040604@amd.com> Date: Fri, 19 Jun 2015 09:26:24 +0200 From: =?windows-1252?Q?Christian_K=F6nig?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Maninder Singh , , , , CC: Subject: Re: [PATCH 1/1] drm/radeon: use kzalloc for allocating one thing References: <1434686723-12936-1-git-send-email-maninder1.s@samsung.com> In-Reply-To: <1434686723-12936-1-git-send-email-maninder1.s@samsung.com> Content-Type: text/plain; charset="windows-1252"; format=flowed X-Originating-IP: [10.224.54.137] Content-Transfer-Encoding: 8BIT X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11OLC009;1:RqjHH2GnEnXku4t745DsanTfM/FVZpB488lsaySQaezaFoWi8LlFp8OlMKQfTeJZM9Ize7EJxFdwS1wGIvyOdRpghvSpSAye39bJtBJavJxOXTc/PdSkdaXtpUH++FVFtbHZRHoMZXtidfWsACUddYO6xk7KTP7+ycs8IN+t0yLfvrF27C2VD4Z38AKGJcHswqNYxsiKaZls152cpQzMK6vw3UxVzOH1nz4nzzq33wsjo+tS/QZbB+SFjtYyCHpoynRcvyPj8S05nSwWKpkC7Am3lnZt3LlMXbuXu6de3Bo6Fs/z/wtbm8a3KbtBpaEfPUtLxhsRUelOT1yfWeUBsg== X-Forefront-Antispam-Report: CIP:165.204.84.221;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(428002)(51704005)(24454002)(199003)(189002)(47776003)(87936001)(92566002)(106466001)(36756003)(19580405001)(64126003)(87266999)(54356999)(76176999)(33656002)(50986999)(46102003)(80316001)(23746002)(65816999)(59896002)(19580395003)(50466002)(5001920100001)(86362001)(2201001)(83506001)(97736004)(5001770100001)(4001350100001)(65956001)(77156002)(189998001)(65806001)(105586002)(101416001)(2950100001)(62966003)(77096005)(68736005)(3940600001)(2101003);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR0201MB1476;H:atltwp01.amd.com;FPR:;SPF:None;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1476;2:bk6LK0PgdDmjlczAESmfMg7TfD8Zg6uAgKC3xwXT+FUbF2NOxWCaZdR//baF8thC;2:B6UnHbdd+fsQJAZFI1BBg6BWE5F2js6bcgZJZqgXtOlIczbIjpxdMnoXiq9AKRUbfFGyGU5Cw3+SVQG4Cifh7bldr+LaWE3YUZ3G3RxUBq3v2Bu3GdTMM5+b97hI2epQDaT1UoRObVqm6/FFvgraU2g8RNAOz5qVXqaBgQ39B9CAo7uik8jgaGOvzK2YWHvcRz/O6IHMcyA1pTdSFIChUv5uJXC4yo+lidApqXsPwlp+4TxvZnbVogF+VfbkxxRT;6:3r5eJb3D7GAfENj6qOQ9QfZHA3yhSvCGg5JH0geHrz4wbaeaEsC5WoqXi9+JW8h988764HHWFyGG01NW+oFTPIYclO46frJEMhA7TwAEg+SfxZrkLgXBGi7sfQGqtxFbxycZ1EuTXRWQsoxnqbS/VIeBJQ/ZzMz26I4pH3jc7bRNRJv/gx9P26C1Q2c00M0TUhaeoCaBxjxwINH5BN71PVfpMO99nr3rzI4Q1D7juz3GrbMkC0aNNHzxiEB0H4MXrtyKjTGl5Vlp/1rEq+QaRRnH0VtDbzUeX9tzZiDxVKDj1sPvbo3+sD5ZMbuxCMtFcalTl+jsdDqnhbxB/YC3tq/GudIDM1JKUGdyI5N5rh7CACVWhgdulVmbRE8sYDi6ka5ptgEnTqFRbbFQ0r3CP7x6UOj0mvCbi6572cQbviXvsJc9jMIi7xSBAuemzSl5DDJTr9nifoHHGB94KU5/ezfzvIF4UhSYeMsrjEhG7RtmLeqFW6AarOIqG8uou8Wl X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0201MB1476;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0201MB1457; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BLUPR0201MB1476;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0201MB1476; X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1476;3:JBwIZlcasm0hvGLVNMSUXwgH/H5YBCkwUlu9DpjTPNrSCEi3RKiGaHCaNEirkHWxiVhCmyFAHCMRoTduP5eDYSzXgE00MZFVCFQ8DlK1pOSDW6y5v5iDJjkeAd0zEa8oGdkn4Z5ecCW2BtLi1XiJAhKlVLL6c4ogXeIf/Drdwx3HyWKB1twVui0RNENwvKwNL4I5N8HuORNmhJRvlkzZK4TJ+qxW++MJPjelU6DIqhEhKb98149amtzqajL2Zi36IgEM6PwNoIQLx28v4kX0siN8zs6YuHoCXD0DkriVFU0= X-Forefront-PRVS: 0612E553B4 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;BLUPR0201MB1476;9:5JrHNv5Mv/qN79VczynNelOClZNLiQC4/Ui2?= =?Windows-1252?Q?xwMhe7hQtJy58prhHOphiE4nsqlMURSY4OGBYvccOOjDb6WGdgJbGNUN?= =?Windows-1252?Q?6EFSRdf4y3mff32qnwodoHfDQZkKuUgpDBC7oAZFOcubBh7lAS+yteIA?= =?Windows-1252?Q?7QPUvXJbEUDc7buPldiqjo31heZERR5szWQ0bHzX5fYH3ypvJCSXdKCB?= =?Windows-1252?Q?247ZK7nna+ucVyUX22iFbVSZlG/eG9O/6FJpEkxQyJMUrRURR7uxffMk?= =?Windows-1252?Q?j8PTHqPOCJWtUU9F0az3yiF6NVUadhVSvjlJ3MPajVJDm5ZeSnrLSWcA?= =?Windows-1252?Q?Z3gYqjxaQU7CsRoMeEA3SL29Hr8fhPJBeoF9e2oIDhUYrFYqxqRvLhF6?= =?Windows-1252?Q?sOadqcEjVqyigJ6XMZjx2i7zpYKH89KvYX83e/EHs//i+pvg7WNrfnGo?= =?Windows-1252?Q?4t7VLdDv9kW3H7NtptWVFrozPobltZdHXpcWxsTVu+bncHI3XjzKM1C2?= =?Windows-1252?Q?6MGSW7HrOkeMd6pXgwrxLIn1qz2EmQA0wvmPubXgo0jV2H/5vZcBWeuj?= =?Windows-1252?Q?KFvAu5GPcw+KzI2Am3c1fMHW1wM5ecXI+KGqESluk5lk2snnV07Efrws?= =?Windows-1252?Q?c3GdUPDMtlBt/ShT9yjFSSQjd027uvkmw3eVGG8JC2KWhuGH5HIB7H5s?= =?Windows-1252?Q?HKGVVMPlZPUt1lz9CA7uvaaVM3GvjNkvtOSMWqw9mpTioP5QCS5ibQkG?= =?Windows-1252?Q?nnaa7RcclGFtFrwRhmZJDPqhtS2qrVbOD2JyUly+I9Yp48j8GZKx7VNo?= =?Windows-1252?Q?DMfReK3EjFX7sD0eZLEGDIRHrPI7ziaRs+OebUygmGub5+5o/+ZiI0aO?= =?Windows-1252?Q?NkWb53x+FmYjxyPz/CvRAjzhYHrBxRBDvIDtp2LnN804PXHuRnEr+xrO?= =?Windows-1252?Q?BfNeCBFhdvVCaMiBsWTI6BQzz2Pv9rGIVA/zlrgwKmYW/HAqpO6tRveM?= =?Windows-1252?Q?d/tRKiLJxW4BTB6L1lnU55Y9S67BdwHbPmkVr6g7Ope9mpeq1Vy8Uvaz?= =?Windows-1252?Q?j4+ic+X5R0IFRU7acTmnZuux405UhkkGwH8dyf7pSnYr/vVhPOUb/0fx?= =?Windows-1252?Q?1Jy0EyLpT6VseByEJYxH9pOkAr/PN1r2PfYxWtuAS3bj76OR9pFGUr9L?= =?Windows-1252?Q?Gt2wQLDDWqi9E9g+elxZAaUsW1/LoqivDsOBjEF2/rCfT48DlACi?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1476;3:64PtZ23jwgThEQ99VMw47+m1p3DGEZItYY3+K4w53548lG1y5ppYXfCCrGMatWfWzrjs5eISFNoDH4g3c7hKgbVVzlMoLInsasYRxnUxbUjDB9g3JXh/b31KVAmuWx7hMhj9dJPpkjJkXuyGj1vdTA==;10:+tOjEckdy2StDrUqnbhyox86bEPz4tKyXHLDUK6v1xizupspC3tzg1/EJFsJA/agwdnNCijcwd2b4qGXvjR03Melq7jJ/LhVhN2XqRCN3vk=;6:5WDJODrafYn1KG6jHX2VIDm/prZyUuQxP2wiu5gxKkI4b97fJEaCUNtTd/fNE7Lq X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2015 07:26:29.1797 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96;Ip=[165.204.84.221];Helo=[atltwp01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0201MB1476 X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1457;2:qtcxiDw0YpF/+cLERgvxb6MPRHI/jVZdd9tnWQWRSI+LW7MJu+EHIz41zu/+x4rU;2:V5AX/AUG769nKjxqUJRzCL33KSHugObnYfluuhO1GPlM1lAbZwiObl/A1wpcwKFmz6uzr4+xGc1cF3SjQ8Xpa1Gb/tHSLE+TlnvTRWEqu59WpgEpn1mjGl0mPu9j1g+w4z/Nwvi3aQStV0D3kw9+DLz7eON5IaWlsGuhpruG+8KWiuUHSsbj07M7rPdwR+8dXtRVi2Gmo4n3BcuBxfFmmGxX241M3TO2vfRNr5klxbZF1SNZWBK02M3Ol5abqmXq;9:NG5kCEA4xAuJj9xnO4H0hIn8TKr9c1v2dls+oWre8z++0ES6aOZnfRi+Vx/89jmYhUsk/pylE4GoS7TcvdkRI6d8vhXhqC+xz1zunQvBB4wKHDLxBPfEhe+w/yWQIAhrrnfKntAX3iMQGa83GxlHng== X-OriginatorOrg: amd.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1359 Lines: 48 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: > > // > @@ > @@ > > - kcalloc(1, > + kzalloc( > ...) > // > > Signed-off-by: Maninder Singh > Reviewed-by: Vaneet Narang Reviewed-by: Christian K?nig 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; > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/