From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Brace Subject: RE: [PATCH 12/37] smartpqi: change functions to inline Date: Wed, 3 May 2017 19:32:38 +0000 Message-ID: <4993A297653ECB4581FA5C3C31323D1951D40088@avsrvexchmbx2.microsemi.net> References: <149314950730.13903.644081079070695025.stgit@brunhilda> <149314962544.13903.85998539939893843.stgit@brunhilda> <1493150863.2628.14.camel@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-sn1nam01on0085.outbound.protection.outlook.com ([104.47.32.85]:47776 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754361AbdECTco (ORCPT ); Wed, 3 May 2017 15:32:44 -0400 In-Reply-To: <1493150863.2628.14.camel@sandisk.com> Content-Language: en-US Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Bart Van Assche , "hch@infradead.org" , Viswas G , Gerry Morong , Mahesh Rajashekhara , "POSWALD@suse.com" , Scott Benesh , Bader Ali - Saleh , Kevin Barnett , "joseph.szczypek@hpe.com" , Scott Teel , "jejb@linux.vnet.ibm.com" , Justin Lindley , John Hall Cc: "linux-scsi@vger.kernel.org" > -----Original Message----- > From: Bart Van Assche [mailto:Bart.VanAssche@sandisk.com] > Sent: Tuesday, April 25, 2017 3:08 PM > To: hch@infradead.org; Viswas G ; Gerry > Morong ; Mahesh Rajashekhara > ; POSWALD@suse.com; Scott > Benesh ; Don Brace > ; Bader Ali - Saleh > ; Kevin Barnett > ; joseph.szczypek@hpe.com; Scott Teel > ; jejb@linux.vnet.ibm.com; Justin Lindley > ; John Hall > Cc: linux-scsi@vger.kernel.org > Subject: Re: [PATCH 12/37] smartpqi: change functions to inline >=20 > EXTERNAL EMAIL >=20 >=20 > On Tue, 2017-04-25 at 14:47 -0500, Don Brace wrote: > > From: Kevin Barnett > > > > Reviewed-by: Scott Benesh > > Signed-off-by: Kevin Barnett > > Signed-off-by: Don Brace > > --- > > drivers/scsi/smartpqi/smartpqi_init.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/scsi/smartpqi/smartpqi_init.c > b/drivers/scsi/smartpqi/smartpqi_init.c > > index 728db8f..523b730 100644 > > --- a/drivers/scsi/smartpqi/smartpqi_init.c > > +++ b/drivers/scsi/smartpqi/smartpqi_init.c > > @@ -432,7 +432,7 @@ static struct pqi_io_request *pqi_alloc_io_request( > > return io_request; > > } > > > > -static void pqi_free_io_request(struct pqi_io_request *io_request) > > +static inline void pqi_free_io_request(struct pqi_io_request *io_reque= st) > > { > > atomic_dec(&io_request->refcount); > > } >=20 > A patch description should not only explain what has been changed but als= o > why a change has been made. What is the reason that this function has bee= n > declared inline? Why do you think that the compiler is not smart enough t= o > decide on its own to inline this function? >=20 > Thanks, >=20 > Bart. We could have given a patch description. I'll provide one. Thanks, Don Brace ESC - Smart Storage Microsemi Corporation