Message ID | 20231026142716.2670533-1-sdonthineni@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 231C4C25B67 for <linux-arm-kernel@archiver.kernel.org>; Thu, 26 Oct 2023 14:28:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ydWwcFuQG+apP8bmoMsyVmR6ROCDxRj0kL5J598qppQ=; b=knTsIaekB1i0nJ lTJI7Q3Pxyk87bH0n4m7JhEgZM0ooIAIg6mvoo1MoPV8DqVkk1uIsmC5FyvWndjLOEB3ECiA7/s2o lD10i8nuCdgNl1xkBMGPK6gWOMQuvMIhl7uGzi7X9xhDHV+S4ZWk385qa0IGkaiNN1pi2ToujYvai 18PsuLrN/Ycvf83YXzZ7x1Q76IVO+w42KO9H9Fn3YLmJt1JJpiAguGzTaJAPuV55jpfmBNET/nFv6 vXVZOY2JJRWJGZKtpAvg+CtsiRHaBifIZ//Pb2xIm7GhiwTunT5SnzLTQt72aYP53PktSXkdycVXM aS33FPjyQE8TDUC0RVsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qw1LC-00Efgb-2F; Thu, 26 Oct 2023 14:28:06 +0000 Received: from mail-bn8nam11on20600.outbound.protection.outlook.com ([2a01:111:f400:7eae::600] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qw1Kv-00EfZD-3D for linux-arm-kernel@lists.infradead.org; Thu, 26 Oct 2023 14:27:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j32KPGv2AVMTPgm44zEXosSJ2ooFKHQAcBr7a7uQhSN2r0XdlRIPtAwtEK3g3hXALpErT3YJD2di6Y2mtkTUyAZEMz3yzS7vgT0xGvYis4By9pKN24XJeym0MNw+PX/+fabyfXwzRG3jjGByFkN/H0q2+VoSA+scB6u5p3RxrySt6AtWooFqO1CbLBsBWlklwIAHnZi0l2MlqKV+zhFt+GKuYtZHVLmCvH1tGSMYKcOPfT6f4JrK1PeAg3xOK38rIn89cddjSQAEs00qCo9NpqlqYFFs25KDFL1nZhBBFnJOfjecRuHnVg//TvyuVffr/fqQAgqYV25vMObXjSo7nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HwQYHJ1Kg8ZUc17oGVsnyJpdAosMruQtu39dd5tTBUs=; b=Hs9SYdxF2fvPeYPSDqQ9ByOPrExkckajnTr3EyyUr/tFNz9dy+v0zI/dKT28HjRcZoHXqmnQmLmyh9kj6L/PpUGJXNasNUT0Bd3LZh44TOgQeLYZjMiNod7gyHdBavV1oukc0L85rBM7QEPVaqEcaX6yRK1jH7KpcTMUtvqUCQvE3q9tHr3nI6jM2trGliijVGu5wHZcWEA50lx5jn3md1YVRo2uhnkDHASWf5o9ARbQHLeHQw5K8iuL8vD+mdgy3Y7NywlLhHCXpFPsZ3jmnG2tUMVRpuZJuyBkTN2c4MNvtaE/MPPxGWqc1x24htjupe/4Sl004LKPDNaNaJQfdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HwQYHJ1Kg8ZUc17oGVsnyJpdAosMruQtu39dd5tTBUs=; b=BSFF2rPSdidFAUpetlTt77bvvHc8rrcz2CsHu5qATyva+Xf9T3oHZWGOCdAn4+yNdWhyELobrRa+OzbasGvyDIEQzcVKn8opcfeSdB986vKJeBqaLvRqDps/Svc8iQSuwD7iEqZmL5i0K1jOcGgkJWYPcgcslkGVrCv28T0ZwtrcUl5v7kjG6NIcGGpkIL4nHf715RE+cKvdYhY+4Mc9QyiXi+kBZZILG4y08xCPvz1RPYl73H1rTzMJ+VnDFIYva/OwVv4nfM+JK7kWT5NAgcHarRyvzufCEE41Wb6sJz2pn+8ECq9oHzJIPrxac38wsvT2p3aYIHswpU6XUPCC1Q== Received: from PR1P264CA0034.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:19f::21) by LV8PR12MB9357.namprd12.prod.outlook.com (2603:10b6:408:1ff::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Thu, 26 Oct 2023 14:27:41 +0000 Received: from SN1PEPF00026367.namprd02.prod.outlook.com (2603:10a6:102:19f:cafe::b4) by PR1P264CA0034.outlook.office365.com (2603:10a6:102:19f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19 via Frontend Transport; Thu, 26 Oct 2023 14:27:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by SN1PEPF00026367.mail.protection.outlook.com (10.167.241.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.15 via Frontend Transport; Thu, 26 Oct 2023 14:27:39 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 26 Oct 2023 07:27:18 -0700 Received: from drhqmail202.nvidia.com (10.126.190.181) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 26 Oct 2023 07:27:18 -0700 Received: from SDONTHINENI-DESKTOP.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Thu, 26 Oct 2023 07:27:17 -0700 From: Shanker Donthineni <sdonthineni@nvidia.com> To: James Morse <james.morse@arm.com> CC: Catalin Marinas <catalin.marinas@arm.com>, Mark Rutland <mark.rutland@arm.com>, Will Deacon <will@kernel.org>, Shanker Donthineni <sdonthineni@nvidia.com>, <linux-arm-kernel@lists.infradead.org>, "Rohit Mathew" <Rohit.Mathew@arm.com>, Vikram Sethi <vsethi@nvidia.com> Subject: [PATCH 1/1] arm_mpam: Fix the build error in resctrl_arch_is_evt_configurable() Date: Thu, 26 Oct 2023 09:27:16 -0500 Message-ID: <20231026142716.2670533-1-sdonthineni@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF00026367:EE_|LV8PR12MB9357:EE_ X-MS-Office365-Filtering-Correlation-Id: 28a5a9ac-9946-465c-01fa-08dbd62fb54e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xBdhI7GdLA5x7ExDssVt3fRBxELm6GEqdkvUzQ0Jt5xtRAtnpZhModRhGsdOvHrpIwBryEf5PLgiGI7JVgn4r5x1P5W4mnZEBVw0DB0uU596kSL3pIhyjSp+z9dVdbX5sxYFhNlOVpRhMZRi+ZzYtewBz6boDdxEYHqOXj9CoUsZvS3cMP/SKUOwDwKdeYShSe6qHSuJ6ypVEKJOBLwYZU9zBY3aRKHm6g93tlhWZogAANX+J0xwxGA282zqfiNNjour5ylK94LEPqVSaS6aq6ux1u553dMbS34M0098RtTRL+sSB5fpjUo1zaKLpArFrjaSmc+QZ5XZi+uTu6QsZuKU2hFnz0qc01ZZmPjBgdyAgqSHsAVPDCXQiuvSJpXJ4YDn+DiNnw3OzwpshoUYDgJPJ6kp01A0BEhL2i/fbUJysjNOJHeW2DiBt1JUrB02zE4hmmLC3XdOQY+OpQ7AJy7ZCL+27TCcqoIy8kGhIjHEe/Z4ge5yF74U4KGBZBlZbynAD7ir/sRJXEOzbz6P8UUcAilK7vc3mTphFLUFpK1IzZlYCH5G5ymBosZ+AkEisNkbmbadNgYTZWiVE8Juc8uGP2ZIbwl1xviY2tMYgENdBicHMMDjqC9d8kp7JJAyU7y9b7v73VAUNqTW0o8BFEQE/CX43oSfhX7myXLHxUs+4BsMxq/XTpZKJGo/vzOvlP8gmOvrsZwyf+Xgq6jLR8gGBQD3HkPVQCM6JVheASRa2mHCL1PxBBUEYEVJI321 X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230031)(4636009)(39860400002)(346002)(376002)(396003)(136003)(230922051799003)(64100799003)(82310400011)(186009)(1800799009)(451199024)(40470700004)(36840700001)(46966006)(26005)(2906002)(7696005)(36860700001)(4744005)(36756003)(5660300002)(86362001)(6916009)(41300700001)(8936002)(4326008)(40460700003)(478600001)(8676002)(107886003)(2616005)(7636003)(83380400001)(1076003)(54906003)(316002)(70206006)(356005)(70586007)(82740400003)(47076005)(336012)(40480700001)(426003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2023 14:27:39.5402 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28a5a9ac-9946-465c-01fa-08dbd62fb54e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF00026367.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9357 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231026_072750_036005_65110E51 X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/1] arm_mpam: Fix the build error in resctrl_arch_is_evt_configurable()
|
expand
|
diff --git a/drivers/platform/mpam/mpam_resctrl.c b/drivers/platform/mpam/mpam_resctrl.c index 6e9925fcf934..1a691535d23d 100644 --- a/drivers/platform/mpam/mpam_resctrl.c +++ b/drivers/platform/mpam/mpam_resctrl.c @@ -740,9 +740,10 @@ static void mpam_resctrl_pick_mba(void) bool resctrl_arch_is_evt_configurable(enum resctrl_event_id evt) { + struct mpam_props *cprops; + switch (evt) { case QOS_L3_MBM_LOCAL_EVENT_ID: - struct mpam_props *cprops; if (!mbm_local_class) return false;
Move the declaration of the variable 'cprops' outside of the switch statement in order to resolve the build error. mpam_resctrl.c: In function ‘resctrl_arch_is_evt_configurable’: mpam_resctrl.c:745:3: error: a label can only be part of a statement and a declaration is not a statement 745 | struct mpam_props *cprops; | ^~~~~~ Signed-off-by: Shanker Donthineni <sdonthineni@nvidia.com> --- drivers/platform/mpam/mpam_resctrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)