Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1256873ybl; Wed, 28 Aug 2019 11:53:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIfgQIUqCUH4cXYJIUPrwM3IxKfk6edbBizSlGv4OFd5CMQ4wLmdObtpFWlo2UWh3X4FCh X-Received: by 2002:aa7:8a98:: with SMTP id a24mr3529719pfc.101.1567018382230; Wed, 28 Aug 2019 11:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567018382; cv=none; d=google.com; s=arc-20160816; b=VXzb01GTyrW7QF4tt3pyObNyDLKhMMMjGmBZd8Kx9AoAMVi92a2rJRZL0Avm1z2vZA U1D5HaZj0qUXi/U/a6Hcu0P6el/EVrGEO6I/B1rrYf7GVv/uwbQHTnCayMwKxFJqNnuU vyiP+bYhZV8j5gF7MXYLbbsFt6W53BUfQrbFVbbemE3uSyWo5HZ3JuwwaAXGzlFUvQJ2 qG97edvAwXJUR2/FkM1XWna4vHub+7GSBXSewd7za9wtuT+HWNufab+H+89rw8bB8K7G 8gkW9EqdAeVopjv0N2M61TKwkKBdinV/eFX2C/iRBtFI7jghiyX3llmUJ3/7ZYcYvFs/ vFPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=QlbyqFw/oxOkkGYpfesRkWqykuTU1Unh+Icl+zlHDCM=; b=MXotHLtrLI+AEM4noH98iDSjV7eugIXlFDhROYHU8qKJSXN4yXJrr4Mgw9e0KApnmi vpdM5Ap1ZJwq7oSqKuByKC74o+OS1n/ZQBRt1NzRDooBOrMs8ftd+/j+etqb89QTLCvp i/yxTKMCxDIRbQJVFnJdven3Ufozl2up+x+4h6UDNoM+egFNvknZ4Ed5luzURitEEwyo NGWCVHv9N+Tm7CZ9568XN66KdI7VGgbe1D9e8d+Isl3K5X2UC+WUafyGMetPdkkFklSQ 1zWJIxSV0NM670SwXeWjiJGchueD9z7vIAE0x2Dsfi6NSuGAcJYELKjR1V6hkOuinDPi eHvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si2539693plb.256.2019.08.28.11.52.46; Wed, 28 Aug 2019 11:53:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726805AbfH1Svb (ORCPT + 99 others); Wed, 28 Aug 2019 14:51:31 -0400 Received: from mga01.intel.com ([192.55.52.88]:20397 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbfH1Svb (ORCPT ); Wed, 28 Aug 2019 14:51:31 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Aug 2019 11:51:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,442,1559545200"; d="scan'208";a="175014339" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga008.jf.intel.com with ESMTP; 28 Aug 2019 11:51:30 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 28 Aug 2019 11:51:30 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.127]) by FMSMSX157.amr.corp.intel.com ([169.254.14.57]) with mapi id 14.03.0439.000; Wed, 28 Aug 2019 11:51:29 -0700 From: "Verma, Vishal L" To: "Williams, Dan J" , "Jiang, Dave" , "gustavo@embeddedor.com" , "Busch, Keith" , "Weiny, Ira" CC: "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" Subject: Re: [PATCH] libnvdimm, region: Use struct_size() in kzalloc() Thread-Topic: [PATCH] libnvdimm, region: Use struct_size() in kzalloc() Thread-Index: AQHVH9BpuhzKadnSBkOkhqdJ05WiaacR2OoA Date: Wed, 28 Aug 2019 18:51:28 +0000 Message-ID: <3e80b36c86942278ee66aebdd5ea2632f104083a.camel@intel.com> References: <20190610210613.GA21989@embeddedor> In-Reply-To: <20190610210613.GA21989@embeddedor> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.30.5 (3.30.5-1.fc29) x-originating-ip: [10.232.112.185] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDE5LTA2LTEwIGF0IDE2OjA2IC0wNTAwLCBHdXN0YXZvIEEuIFIuIFNpbHZhIHdy b3RlOg0KPiBPbmUgb2YgdGhlIG1vcmUgY29tbW9uIGNhc2VzIG9mIGFsbG9jYXRpb24gc2l6ZSBj YWxjdWxhdGlvbnMgaXMNCj4gZmluZGluZw0KPiB0aGUgc2l6ZSBvZiBhIHN0cnVjdHVyZSB0aGF0 IGhhcyBhIHplcm8tc2l6ZWQgYXJyYXkgYXQgdGhlIGVuZCwgYWxvbmcNCj4gd2l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