From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754162AbbLOSOi (ORCPT ); Tue, 15 Dec 2015 13:14:38 -0500 Received: from mta02.ornl.gov ([128.219.177.12]:63167 "EHLO mta02.ornl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753925AbbLOSOg convert rfc822-to-8bit (ORCPT ); Tue, 15 Dec 2015 13:14:36 -0500 X-SG: RELAYLIST X-IronPort-AV: E=Sophos;i="5.20,433,1444708800"; d="scan'208";a="94303730" From: "Simmons, James A." To: "'Dan Carpenter'" , James Simmons CC: "devel@driverdev.osuosl.org" , Andreas Dilger , Greg Kroah-Hartman , Linux Kernel Mailing List , Oleg Drokin , Amir Shehata , "lustre-devel@lists.lustre.org" Subject: RE: [PATCH 13/40] staging: lustre: Dynamic LNet Configuration (DLC) show command Thread-Topic: [PATCH 13/40] staging: lustre: Dynamic LNet Configuration (DLC) show command Thread-Index: AQHRLPOSs02Aw2T1LUmyysw/D3E4PJ7Mbd/A Date: Tue, 15 Dec 2015 18:14:19 +0000 Message-ID: <944b6e806bc44a3fa4d6d5e1904a894a@EXCHCS32.ornl.gov> References: <1448062576-23757-1-git-send-email-jsimmons@infradead.org> <1448062576-23757-14-git-send-email-jsimmons@infradead.org> <20151202112055.GM18797@mwanda> In-Reply-To: <20151202112055.GM18797@mwanda> 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="us-ascii" 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 >> struct libcfs_ioctl_hdr { >> __u32 ioc_len; >> @@ -87,6 +88,13 @@ do { \ >> data.ioc_hdr.ioc_len = sizeof(data); \ >> } while (0) >> >> +#define LIBCFS_IOC_INIT_V2(data, hdr) \ >> +do { \ >> + memset(&(data), 0, sizeof(data)); \ >> + (data).hdr.ioc_version = LIBCFS_IOCTL_VERSION2; \ >> + (data).hdr.ioc_len = sizeof(data); \ >> +} while (0) >> + > >Do we really need this? Would you be okay if this was a inline function? This is used by user land and kernel space code.