From patchwork Tue Sep 24 10:51:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Bharadiya X-Patchwork-Id: 11158457 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B6F0112B for ; Tue, 24 Sep 2019 11:13:31 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id 69F8A2146E for ; Tue, 24 Sep 2019 11:13:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69F8A2146E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-16918-patchwork-kernel-hardening=patchwork.kernel.org@lists.openwall.com Received: (qmail 1464 invoked by uid 550); 24 Sep 2019 11:11:59 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Delivered-To: moderator for kernel-hardening@lists.openwall.com Received: (qmail 5354 invoked from network); 24 Sep 2019 10:58:52 -0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,543,1559545200"; d="scan'208";a="188422056" From: Pankaj Bharadiya To: pankaj.bharadiya@gmail.com, andriy.shevchenko@linux.intel.com, kernel-hardening@lists.openwall.com, keescook@chromium.org, akpm@linux-foundation.org, mayhs11saini@gmail.com Cc: pankaj.laxminarayan.bharadiya@intel.com Subject: [PATCH 4/5] linux/kernel.h: Remove FIELD_SIZEOF macro Date: Tue, 24 Sep 2019 16:21:13 +0530 Message-Id: <20190924105114.110535-5-pankaj.laxminarayan.bharadiya@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190924105114.110535-1-pankaj.laxminarayan.bharadiya@intel.com> References: <20190924105114.110535-1-pankaj.laxminarayan.bharadiya@intel.com> Now we have sizeof_member macro to find the size of a member of a struct. FIELD_SIZEOF macro is not getting used any more hence remove it. Signed-off-by: Pankaj Bharadiya --- include/linux/kernel.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 0b80d8bb3978..064497792c70 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -88,15 +88,6 @@ */ #define sizeof_member(T, m) (sizeof(((T *)0)->m)) -/** - * FIELD_SIZEOF - get the size of a struct's field - * @t: the target struct - * @f: the target struct's field - * Return: the size of @f in the struct definition without having a - * declared instance of @t. - */ -#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) - #define typeof_member(T, m) typeof(((T*)0)->m) #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP