Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754615AbaGKR2l (ORCPT ); Fri, 11 Jul 2014 13:28:41 -0400 Received: from smtprelay0208.hostedemail.com ([216.40.44.208]:38351 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751386AbaGKR2k (ORCPT ); Fri, 11 Jul 2014 13:28:40 -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:1261:1 X-HE-Tag: queen36_680164ec1213e X-Filterd-Recvd-Size: 2258 Message-ID: <1405099712.2796.19.camel@joe-AO725> Subject: Re: [PATCH 09/83] hsa/radeon: Add code base of hsa driver for AMD's GPUs From: Joe Perches To: Jerome Glisse Cc: Oded Gabbay , David Airlie , Alex Deucher , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, John Bridgman , Andrew Lewycky , Joerg Roedel , Oded Gabbay , Greg Kroah-Hartman , "Rafael J. Wysocki" , Kishon Vijay Abraham I , Sandeep Nair , Kenneth Heitke , Srinivas Pandruvada , Santosh Shilimkar , Andreas Noever , Lucas Stach , Philipp Zabel Date: Fri, 11 Jul 2014 10:28:32 -0700 In-Reply-To: <20140711170411.GJ1870@gmail.com> References: <1405029027-6085-1-git-send-email-oded.gabbay@amd.com> <1405029027-6085-8-git-send-email-oded.gabbay@amd.com> <20140711170411.GJ1870@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.10.4-0ubuntu1 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 On Fri, 2014-07-11 at 13:04 -0400, Jerome Glisse wrote: > On Fri, Jul 11, 2014 at 12:50:09AM +0300, Oded Gabbay wrote: [] > > +static long kfd_ioctl(struct file *, unsigned int, unsigned long); > > Nitpick, avoid unsigned int just use unsigned. I suggest unsigned int is much more common (and better) than just unsigned. $ git grep -P '\bunsigned\s+(?!long|int|short|char)' -- "*.[ch]" | wc -l 20778 $ git grep -P "\bunsigned\s+int\b" -- "*.[ch]" | wc -l 98068 > > +static int kfd_open(struct inode *, struct file *); It's also generally better to use types and names tno improve how a human reads and understands the code. -- 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/