From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752022AbcBLXVv (ORCPT ); Fri, 12 Feb 2016 18:21:51 -0500 Received: from mta02.ornl.gov ([128.219.177.12]:12620 "EHLO mta02.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751873AbcBLXVt convert rfc822-to-8bit (ORCPT ); Fri, 12 Feb 2016 18:21:49 -0500 X-Greylist: delayed 345 seconds by postgrey-1.27 at vger.kernel.org; Fri, 12 Feb 2016 18:21:49 EST X-SG: RELAYLIST X-IronPort-AV: E=Sophos;i="5.22,437,1449550800"; d="scan'208";a="97816439" From: "Simmons, James A." To: "'Joe Perches'" , James Simmons , Greg Kroah-Hartman , "devel@driverdev.osuosl.org" , Andreas Dilger , "Oleg Dorkin" CC: Linux Kernel Mailing List , "Lustre Development List" Subject: RE: [lustre-devel] [PATCH 06/11] staging: lustre: add missing spaces for LNet layer reported by checkpatch.pl Thread-Topic: [lustre-devel] [PATCH 06/11] staging: lustre: add missing spaces for LNet layer reported by checkpatch.pl Thread-Index: AQHRZbu6lZ8+aaE4KEaHJWnp7na4Sp8pDFSg Date: Fri, 12 Feb 2016 23:20:40 +0000 Message-ID: References: <1455296769-5481-1-git-send-email-jsimmons@infradead.org> <1455296769-5481-7-git-send-email-jsimmons@infradead.org> <1455298503.4235.4.camel@perches.com> In-Reply-To: <1455298503.4235.4.camel@perches.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [128.219.12.132] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >On Fri, 2016-02-12 at 12:06 -0500, James Simmons wrote: >> Add missing spaces in the code reported by checkpatch.pl. >[] >> diff --git a/drivers/staging/lustre/include/linux/lnet/lib-types.h b/drivers/staging/lustre/include/linux/lnet/lib-types.h >[] >> @@ -112,7 +112,7 @@ typedef struct lnet_libhandle { >>  } lnet_libhandle_t; >>   >>  #define lh_entry(ptr, type, member) \ >> - ((type *)((char *)(ptr)-(char *)(&((type *)0)->member))) >> + ((type *)((char *)(ptr) - (char *)(&((type *)0)->member))) > >This could use offsetof(type, member) Will send a later patch to cover this.