From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20086.outbound.protection.outlook.com [40.107.2.86]) by dpdk.org (Postfix) with ESMTP id 709DF532C for ; Tue, 22 Nov 2016 12:27:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pYtw2kfbBnY6s45UYmFPjB10OACbfTv2DypM9l92OdE=; b=pJPCraNRjGgMJKTtMveXOAyzJnkMSXu7Dig4Gm4SnCVL580N+J7Jqxvxv6mp1VsJNz/A0qujCeZxaA/IeRA/Rmq+QmDuBt7sgpKlyj/JT4o/Lo65ACYS1wvMREHdMTRKy+yogdjpttKzXvVJPiipZobSXEUZDeBu8Xlsj38JeTE= Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com (10.166.11.137) by DB5PR0401MB2054.eurprd04.prod.outlook.com (10.166.11.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Tue, 22 Nov 2016 11:27:06 +0000 Received: from DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) by DB5PR0401MB2054.eurprd04.prod.outlook.com ([10.166.11.137]) with mapi id 15.01.0734.014; Tue, 22 Nov 2016 11:27:06 +0000 From: Shreyansh Jain To: Thomas Monjalon , Jan Blunck CC: "dev@dpdk.org" , "david.marchand@6wind.com" , Jan Viktorin Thread-Topic: [dpdk-dev] [PATCH v2 1/8] eal: define container_of macro Thread-Index: AQHSRBhMlhx76elYk0WwOBrgQQLPE6Dky73wgAARrPA= Date: Tue, 22 Nov 2016 11:26:50 +0000 Deferred-Delivery: Tue, 22 Nov 2016 11:26:10 +0000 Message-ID: References: <1479747322-5774-1-git-send-email-jblunck@infradead.org> <2433517.txJaDuniYc@xps13> In-Reply-To: <2433517.txJaDuniYc@xps13> 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=shreyansh.jain@nxp.com; x-originating-ip: [192.88.169.1] x-microsoft-exchange-diagnostics: 1; DB5PR0401MB2054; 7:yE0zoGO6f2pV+CAnhmLq+RVR2tNpgonMyNKhboLXpM/v10DBmbcbbouYtCmZpqq1RRaS1ZiLna1KMZi840PaAcMr6JEYZCR3bHS8aBGly0ltuLy/XZ1SH+CYgF4p6spXGpa5zIrb55aKxtKt2rn0CZ6rvv87OYQ/oMZIX2E52qCjru82ZMuzNKJNoDVt00gwke3ogOZOMUU+hRCp5+7iNU7AyPwKOoqB5Ay+9B3/7kzD7WIR9n2siR1szWMzrV+8SExH4QBv4O4gjt2XpTd933p4wJBgAMY4boY0UpwAdHQ7wefMg7XOqjENK24uDpcCUf4v46mjmtgkdPWAe2t8qlZcTLwqOfz5w8QhG7rnTQA= x-ms-office365-filtering-correlation-id: 932cfb3e-11cf-43b9-522e-08d412ca7d5a x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DB5PR0401MB2054; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6045199)(6040307)(6060326)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6061324)(6046074)(6041248); SRVR:DB5PR0401MB2054; BCL:0; PCL:0; RULEID:; SRVR:DB5PR0401MB2054; x-forefront-prvs: 0134AD334F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(13464003)(377424004)(377454003)(24454002)(199003)(189002)(81156014)(81166006)(2900100001)(305945005)(38730400001)(77096005)(74316002)(33656002)(8676002)(106356001)(87936001)(3660700001)(3280700002)(5660300001)(106116001)(86362001)(92566002)(105586002)(50986999)(101416001)(4001150100001)(122556002)(76576001)(4326007)(76176999)(54356999)(66066001)(229853002)(97736004)(2906002)(7696004)(5001770100001)(189998001)(2950100002)(3846002)(102836003)(6116002)(7846002)(7736002)(6666003)(9686002)(6506003)(8936002)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR0401MB2054; H:DB5PR0401MB2054.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2016 11:27:06.0936 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0401MB2054 Subject: Re: [dpdk-dev] [PATCH v2 1/8] eal: define container_of macro X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Nov 2016 11:27:07 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Tuesday, November 22, 2016 3:50 PM > To: Shreyansh Jain ; Jan Blunck > > Cc: dev@dpdk.org; david.marchand@6wind.com; Jan Viktorin > > Subject: Re: [dpdk-dev] [PATCH v2 1/8] eal: define container_of macro >=20 > 2016-11-22 15:33, Shreyansh Jain: > > On Monday 21 November 2016 10:25 PM, Jan Blunck wrote: > > > This macro is based on Jan Viktorin's original patch but also checks = the > > > type of the passed pointer against the type of the member. > > > > > > Signed-off-by: Jan Viktorin > > > Signed-off-by: Shreyansh Jain > > > [jblunck@infradead.org: add type checking and __extension__] > > > Signed-off-by: Jan Blunck > > > > I will start using this in my patchset. > > > > Acked-by: Shreyansh Jain >=20 > It is a bit strange to have this patch in a series which do > not use it. I am in favor of getting it when it is used > (and included) in another series. I can add this patch to my series, if Jan is ok about this. - Shreyansh