Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp770937pxb; Tue, 5 Apr 2022 22:36:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfmtG7eA86WWDPrfcVQpuHiccR7IC/TvaZ3MrtGQfZzqRkj4npvnseMAyJ2KVqs/KwFjma X-Received: by 2002:a17:902:8e81:b0:154:710b:c2e8 with SMTP id bg1-20020a1709028e8100b00154710bc2e8mr6946185plb.126.1649223406579; Tue, 05 Apr 2022 22:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649223406; cv=none; d=google.com; s=arc-20160816; b=Lza0zfqFBtHn/uhvP4rlh7WIsIEzWYfHKI2katD2gUbQ8G3zoR49wtDqBidJPsJjF3 771ZbN+LYVXSuQvlXJzIftqwT/QwnVu1NmdlYD64AO80R2LME6bwKBJJjyi/tEa1fDdt iqvsPZnP+spQjuSP6LU5KTFr54kfaTDxP3fC3+7/m1sRU/MsLZR+d+A9dW449z3o54We rfhgwmTyyfvaN7XAV4NOMrugUdu/Kc+A9DwKt/NYzNNDNNIQziGwrtD3IoNT36lAYGt3 31FhN+ODAKof0SSTvja+iFkkdnhHNlokhnH1NVEId9WYWpQpckCKyZioDXs6cmJqPkUy NlIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=csCYSZXs/k/y3JYV+c94UAameL8Wjh0jsXSIlb67K8Q=; b=uIXBgY/AZvsHsnL9+r15KPRCmt3vqfNlMC0Ur+wvtGFkaTMkbInFkMGUJJsJ7Z+koG jBIy8b+H5RytmrLA7E7nkbDBIvLoSVjwBhiV/bSeJEqIg9r0sVhumzOk8+A2PrDQ1hR9 7Qni4RAHd+ao7Qlwg9Qnn4OkNx3w+Nz8G/W1yqpAYq3OHxl+U4UMEME/SdGiifKcA9uT 52WY9hW0V/600JQ4oqNAA+9kIlsiS/pTC6Y0s/EiW4A51ju2LRBKK2cwRZjk2IoE52iI 86YXOTCZY6UlMhcgVs9ZqdrbbVk3ukurX+RL7UeX38gTy3Xhq63C4wJKjXH+q/N9g9v7 wthg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zr4sKJQN; dkim=neutral (no key) header.i=@linutronix.de header.b=XzVbtc0P; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bj27-20020a056a02019b00b0039942b974b1si6586655pgb.303.2022.04.05.22.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:36:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Zr4sKJQN; dkim=neutral (no key) header.i=@linutronix.de header.b=XzVbtc0P; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 34074454064; Tue, 5 Apr 2022 21:33:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1849575AbiDFCjB (ORCPT + 99 others); Tue, 5 Apr 2022 22:39:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442091AbiDEWKn (ORCPT ); Tue, 5 Apr 2022 18:10:43 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AFC128E24; Tue, 5 Apr 2022 13:56:20 -0700 (PDT) Date: Tue, 05 Apr 2022 20:56:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649192179; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=csCYSZXs/k/y3JYV+c94UAameL8Wjh0jsXSIlb67K8Q=; b=Zr4sKJQNms3Vp7nOKsP72FCqJfO4TRJz7omngb9vSBMDJDAf7n74gXj5GCTRs+ZcvFEuIu B5ttCJJzeUrXEtTkG/0L0ajHfAt1bkS/LmBQgbrn3Fo2jDu8phAsjiig+F7HAcAmk3QAlJ iHgjnOgiRjvIfz5lBIBaptu6SVyEjAwY4tZ1jUFMaTpMRbsKBAtUsKYlmx/1Qs7xsHWfj6 vxzbZeF8vBco+5medXHnq5IJLbV2gZuyI2Acnm3Dl+T9x4f9eqwpu+999BZn4vYI2cMwz5 ZWfp8OL+y3keD/NO2r54CDkk+Q1h4UzF1R813auQG3Reirt/eZtiiVD5RGOW3g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649192179; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=csCYSZXs/k/y3JYV+c94UAameL8Wjh0jsXSIlb67K8Q=; b=XzVbtc0PhLoeBULUpsFatERhaBFi0mVkI83ccJvS6jdX6s4U2t3B1GwXQqy3yYn62wiGab nPv+KADNT84x3qCg== From: "tip-bot2 for Smita Koralahalli" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] x86/mce: Avoid unnecessary padding in struct mce_bank Cc: Smita Koralahalli , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220225193342.215780-2-Smita.KoralahalliChannabasappa@amd.com> References: <20220225193342.215780-2-Smita.KoralahalliChannabasappa@amd.com> MIME-Version: 1.0 Message-ID: <164919217791.389.16926889046664512675.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the ras/core branch of tip: Commit-ID: 9f1b19b977ee3cbd3fe9135ff63dbf221eac1d6a Gitweb: https://git.kernel.org/tip/9f1b19b977ee3cbd3fe9135ff63dbf221eac1d6a Author: Smita Koralahalli AuthorDate: Fri, 25 Feb 2022 13:33:40 -06:00 Committer: Borislav Petkov CommitterDate: Tue, 05 Apr 2022 21:23:34 +02:00 x86/mce: Avoid unnecessary padding in struct mce_bank Convert struct mce_bank member "init" from bool to a bitfield to get rid of unnecessary padding. $ pahole -C mce_bank arch/x86/kernel/cpu/mce/core.o before: /* size: 16, cachelines: 1, members: 2 */ /* padding: 7 */ /* last cacheline: 16 bytes */ after: /* size: 16, cachelines: 1, members: 3 */ /* last cacheline: 16 bytes */ No functional changes. Signed-off-by: Smita Koralahalli Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220225193342.215780-2-Smita.KoralahalliChannabasappa@amd.com --- arch/x86/kernel/cpu/mce/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.c index 981496e..d775fcd 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -69,7 +69,9 @@ DEFINE_PER_CPU_READ_MOSTLY(unsigned int, mce_num_banks); struct mce_bank { u64 ctl; /* subevents to enable */ - bool init; /* initialise bank? */ + + __u64 init : 1, /* initialise bank? */ + __reserved_1 : 63; }; static DEFINE_PER_CPU_READ_MOSTLY(struct mce_bank[MAX_NR_BANKS], mce_banks_array);