Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932136AbbLDKto (ORCPT ); Fri, 4 Dec 2015 05:49:44 -0500 Received: from mail-db3on0107.outbound.protection.outlook.com ([157.55.234.107]:37728 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752191AbbLDKtn (ORCPT ); Fri, 4 Dec 2015 05:49:43 -0500 X-Greylist: delayed 5768 seconds by postgrey-1.27 at vger.kernel.org; Fri, 04 Dec 2015 05:49:42 EST From: "Shah, Yash (Y.)" To: "Geyslan G. Bem" CC: "axboe@kernel.dk" , "linux-kernel@vger.kernel.org" , "Babu, Viswanathan (V.)" Subject: RE: [PATCH] Staging: cdrom: fix space required after that ',' Thread-Topic: [PATCH] Staging: cdrom: fix space required after that ',' Thread-Index: AQHRLnUt6bOr/COxr06Kqf8dlVqMfp66oqcAgAACQRA= Date: Fri, 4 Dec 2015 10:49:39 +0000 Message-ID: References: <20151204092130.GA6979@ubuntu> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yshah1@visteon.com; x-originating-ip: [91.212.132.115] x-microsoft-exchange-diagnostics: 1;DBXPR06MB463;5:VTFY2K9hCuSvdfYI/71tuUDY80SgYC/yc6LcO1DUvUOapAquSTCfA7Jor4pae1GlELaJYDzI0RnUhBINGfs8xkHXQOPv4socZOCT1kArptkHolGGkUcoz2cLOvjt2ZQPoD6AxtELDvCXtmvcdOnXsQ==;24:aiBTk2hAgAJOciOjusghEYWeCZvLI8nt5Shz5tENW/0p4jI971n+AMivrmsOEWsh1k/62EVf751GEp3QoShKWb4c6+1LVNoAOpKRJ95+xos= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(42134001)(42139001);SRVR:DBXPR06MB463; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(208512329853888); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001);SRVR:DBXPR06MB463;BCL:0;PCL:0;RULEID:;SRVR:DBXPR06MB463; x-forefront-prvs: 07807C55DC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(164054003)(199003)(13464003)(189002)(377424004)(76104003)(3846002)(15975445007)(1096002)(122556002)(5002640100001)(105586002)(106116001)(33656002)(92566002)(5004730100002)(74316001)(81156007)(106356001)(101416001)(1220700001)(40100003)(586003)(86362001)(102836003)(76176999)(77096005)(189998001)(6116002)(10400500002)(5003600100002)(50986999)(11100500001)(2900100001)(1411001)(2950100001)(97736004)(87936001)(107886002)(110136002)(5001960100002)(4001430100002)(5008740100001)(66066001)(54356999)(19580395003)(76576001)(19580405001);DIR:OUT;SFP:1102;SCL:1;SRVR:DBXPR06MB463;H:DBXPR06MB494.eurprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2015 10:49:39.6262 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBXPR06MB463 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id tB4AnnLT021078 Content-Length: 3860 Lines: 98 Hi, Ok I will send all the spaces related error in one single patch. Thanks, Yash Shah -----Original Message----- From: Geyslan G. Bem [mailto:geyslan@gmail.com] Sent: Friday, December 04, 2015 4:08 PM To: Shah, Yash (Y.) Cc: axboe@kernel.dk; linux-kernel@vger.kernel.org; Babu, Viswanathan (V.) Subject: Re: [PATCH] Staging: cdrom: fix space required after that ',' Hi Yash, 2015-12-04 6:21 GMT-03:00 Shah, Yash (Y.) : > From: Yash Shah > > fix space required after that ',' as detected by checkpatch.pl > > Signed-off-by: Yash Shah > --- > drivers/cdrom/cdrom.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c index > c206ccd..2d759b6 100644 > --- a/drivers/cdrom/cdrom.c > +++ b/drivers/cdrom/cdrom.c > @@ -536,7 +536,7 @@ static int cdrom_mrw_exit(struct cdrom_device_info *cdi) > int ret; > > ret = cdrom_get_disc_info(cdi, &di); > - if (ret < 0 || ret < (int)offsetof(typeof(di),disc_type)) > + if (ret < 0 || ret < (int)offsetof(typeof(di), disc_type)) > return 1; > > ret = 0; > @@ -788,7 +788,7 @@ static int cdrom_mrw_open_write(struct cdrom_device_info *cdi) > } > > ret = cdrom_get_disc_info(cdi, &di); > - if (ret < 0 || ret < offsetof(typeof(di),disc_type)) > + if (ret < 0 || ret < offsetof(typeof(di), disc_type)) > return 1; > > if (!di.erasable) > @@ -1050,7 +1050,7 @@ int open_for_data(struct cdrom_device_info *cdi) > if (CDROM_CAN(CDC_CLOSE_TRAY) && > cdi->options & CDO_AUTO_CLOSE) { > cd_dbg(CD_OPEN, "trying to close the tray\n"); > - ret=cdo->tray_move(cdi,0); > + ret=cdo->tray_move(cdi, 0); What do you think to add spaces between equal assignment too? > if (ret) { > cd_dbg(CD_OPEN, "bummer. tried to close the tray but failed.\n"); > /* Ignore the error from the > low @@ -1215,7 +1215,7 @@ static int check_for_audio_disc(struct cdrom_device_info * cdi, > if (CDROM_CAN(CDC_CLOSE_TRAY) && > cdi->options & CDO_AUTO_CLOSE) { > cd_dbg(CD_OPEN, "trying to close the tray\n"); > - ret=cdo->tray_move(cdi,0); > + ret=cdo->tray_move(cdi, 0); > if (ret) { > cd_dbg(CD_OPEN, "bummer. tried to close tray but failed.\n"); > /* Ignore the error from the > low @@ -1591,8 +1591,8 @@ void init_cdrom_command(struct > packet_command *cgc, void *buf, int len, > > /* DVD handling */ > > -#define copy_key(dest,src) memcpy((dest), (src), sizeof(dvd_key)) > -#define copy_chal(dest,src) memcpy((dest), (src), sizeof(dvd_challenge)) > +#define copy_key(dest, src) memcpy((dest), (src), sizeof(dvd_key)) > +#define copy_chal(dest, :src) memcpy((dest), (src), > +sizeof(dvd_challenge)) > > static void setup_report_key(struct packet_command *cgc, unsigned > agid, unsigned type) { > -- > 1.9.1 > -- > 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/ -- Regards, Geyslan G. Bem hackingbits.com ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?