From nobody Thu Nov 28 04:32:03 2024 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82F351DD89F for ; Fri, 4 Oct 2024 18:06:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728065169; cv=none; b=JBDKu7C0W+gZGv6/uhmzw5Q3Ts3Fyxq1OmYfp/kqt6XduhWnBbqbEkkcy538uIeA9umA+Vka6Yvdi1JSi7TB21zM0bVLwCXwmNNQX97t08PFrhfS9VGU0Fhv5WzZt3fFJNyqKfm2j4QyZDtzrXabslLpFbqkDbu/t2UOK982gFQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728065169; c=relaxed/simple; bh=37ISiWEXashHyDqQQLiBkUZK1Nnd8g2zCOKb/TYBc3c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Rvcae/efJ7aAgqEequysSnWiuyLhYYR13iXTzL49hut/jmsrsnD4NPBG7DCNZxP5VM0cUia/Z/+jsAoTzrcAGK0Pc7ZtXdkkRva3NzGw0GUmVmKecRoI3MT27Ec2xLbHT92BQNNz9Xart28YK+mRqPHWXok4tW1l5mJSREWeTMQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 559E1339; Fri, 4 Oct 2024 11:06:37 -0700 (PDT) Received: from merodach.members.linode.com (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 96D7B3F58B; Fri, 4 Oct 2024 11:06:04 -0700 (PDT) From: James Morse To: x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Reinette Chatre , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , James Morse , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie , Dave Martin , Christophe JAILLET , Shaopeng Tan Subject: [PATCH v5 20/40] x86/resctrl: Slightly clean-up mbm_config_show() Date: Fri, 4 Oct 2024 18:03:27 +0000 Message-Id: <20241004180347.19985-21-james.morse@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20241004180347.19985-1-james.morse@arm.com> References: <20241004180347.19985-1-james.morse@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Christophe JAILLET 'mon_info' is already zeroed in the list_for_each_entry() loop below. There is no need to explicitly initialize it here. It just wastes some space and cycles. Remove this un-needed code. On a x86_64, with allmodconfig: Before: =3D=3D=3D=3D=3D=3D text data bss dec hex filename 74967 5103 1880 81950 1401e arch/x86/kernel/cpu/resctrl/rdtgrou= p.o After: =3D=3D=3D=3D=3D text data bss dec hex filename 74903 5103 1880 81886 13fde arch/x86/kernel/cpu/resctrl/rdtgrou= p.o Signed-off-by: Christophe JAILLET Signed-off-by: James Morse Tested-by: Shaopeng Tan Reviewed-by: Shaopeng Tan Reviewed-by: Reinette Chatre Link: https://patch.msgid.link/6be685f7-e99d-42af-b26e-d5e542f597fd@intel.c= om/ --- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/r= esctrl/rdtgroup.c index 7ed295225da7..9294bf74f3a8 100644 --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -1624,7 +1624,7 @@ static void mondata_config_read(struct rdt_mon_domain= *d, struct mon_config_info =20 static int mbm_config_show(struct seq_file *s, struct rdt_resource *r, u32= evtid) { - struct mon_config_info mon_info =3D {0}; + struct mon_config_info mon_info; struct rdt_mon_domain *dom; bool sep =3D false; =20 --=20 2.39.2