Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754083AbdHXUu7 (ORCPT ); Thu, 24 Aug 2017 16:50:59 -0400 Received: from smtprelay0059.hostedemail.com ([216.40.44.59]:51790 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753246AbdHXUu5 (ORCPT ); Thu, 24 Aug 2017 16:50:57 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1539:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3351:3622:3865:3867:3868:3870:3871:3873:3874:4321:5007:7903:7904:8603:10004:10400:10848:11026:11232:11657:11658:11914:12043:12048:12296:12740:12760:12895:13069:13163:13229:13311:13357:13439:14181:14659:14721:21080:21434:21627:30012:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: body16_7c5069682d73a X-Filterd-Recvd-Size: 1539 Message-ID: <1503607848.12569.12.camel@perches.com> Subject: Re: [PATCH] Staging: Android: fix code style in ion_cma_heap.c From: Joe Perches To: Abishek V Ashok , labbott@redhat.com, gregkh@linuxfoundation.org, sumit.semwal@linaro.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Thu, 24 Aug 2017 13:50:48 -0700 In-Reply-To: <20170824154050.11345-1-abishekvashok@gmail.com> References: <20170824154050.11345-1-abishekvashok@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 686 Lines: 16 On Thu, 2017-08-24 at 21:10 +0530, Abishek V Ashok wrote: > This is a patch to the ion_cma_heap.c file in > /drivers/staging/andrioid/ion that fixes a blank line and > kmalloc size warning found by the checkpatch.pl tool. [] > diff --git a/drivers/staging/android/ion/ion_cma_heap.c b/drivers/staging/android/ion/ion_cma_heap.c [] > @@ -46,7 +45,7 @@ static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, > if (!pages) > return -ENOMEM; > > - table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); > + table = kmalloc(sizeof(struct * table), GFP_KERNEL); Please make sure you compile the files modified by your proposed patches before sending the patches.