Message ID | 20201015132700.2232820-6-anup.patel@wdc.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=klXktvFY; dkim=permerror header.d=wdc.com header.i=@wdc.com header.a=rsa-sha1 header.s=dkim.wdc.com header.b=k5g9Putq; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-sharedspace-onmicrosoft-com header.b=X+JBDa3P; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CBqpY6V0bz9sSs for <incoming@patchwork.ozlabs.org>; Fri, 16 Oct 2020 00:27:49 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9gCFhVXXM/1SmYfUA8LrMp3JUyNyHfhabu75Vlj+XAs=; b=klXktvFYYPdHQX9/pR9ayx7AH /hiAbK/2VF1MWjj2yRtr8zPoazPlHzRz/YrTE5/9Oq0Mcyl+nxmrem4stO1RQIYqGOumTDtByxVF7 KPZNnrCRHjtEcpfp9+dXtuspPUZu1ZvXQqNEY0gv2JBk9MyAtnbWQnDPcTlLHIvCuWRF820vLwa4R e/BMGNk6ugrXTtDuN8hcDtwf2KtdsfBBTFOu9uYsSJ3wD0JWlKE4lGpOuYnWlXAUpuOhQrqdQGWR8 aqfMGsOLYKkVYr9fW20fHhH81diUdnrpAtWSVDJbm9Idn+5BLwzWEyq4fWSOk9lmO9fEKN9CpYhfV hK8Wh7dCQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kT3IF-0004I6-GF; Thu, 15 Oct 2020 13:27:43 +0000 Received: from esa2.hgst.iphmx.com ([68.232.143.124]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kT3IC-0004Fc-Em for opensbi@lists.infradead.org; Thu, 15 Oct 2020 13:27:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1602768807; x=1634304807; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=3CnLDsUXZJFTcw6wRMhYUUETa5tvhEl3FyZbIpEZQPs=; b=k5g9PutqhJUp34fiGkihVYczwROQNaMfhiYEisOQCkwHG+Y0ry23KW8E AQyBTFTcU0efpTd+9LkN6eVFITIWycikew7yRntOepX5gLMoWXx9QQSct O6IKpI727IIbNLJ/UOO5n52OrvYkYwE0NrHv+MVy77YBW7F8ovj2Ogd7G w4xOqCY6OYPsevOPbooRgjczQvnbTbYACKWwe2WmPWlAMZMLYy3dZWJbB kOTKGg6lEHt+6oTsX6QHE5ovazDDnKkiSyrEzGLHEotQQrfJ19JNQMldg N9RQcdrHQ4Mp4cN0cqKhBSktZp8lR+8u8I9BwhkHBPhvva/eKcUV2NByy w==; IronPort-SDR: QkYyOaUxJ834c91Th2iGjvOwBkJR0DPsCE6UtF0E26QvDgIdY6DTcZeZyOWbT0HWzz1/ZqKiZW Q16QEzLvmVECAbm0dqHmXrNzlVIK6yv24C6GUH0gcQUyzR3QZFffm0HZd6/C1TTvoU84znV/qc 2Q3nUTrLL4A2lh0ussJYzCc765sHOkwIbBvxX22NfhyavqblfzgKvb+N2MLQF58hO2P3Oc72s6 SARlWAhhMWJB0ar109MI+u3KA3MOa0U9DNAVE8JB7big2oPQWaKCnIFx/h1Iv/hAerdXW+JgER Rf0= X-IronPort-AV: E=Sophos;i="5.77,379,1596470400"; d="scan'208";a="253498956" Received: from mail-bn8nam08lp2045.outbound.protection.outlook.com (HELO NAM04-BN8-obe.outbound.protection.outlook.com) ([104.47.74.45]) by ob1.hgst.iphmx.com with ESMTP; 15 Oct 2020 21:33:26 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y1at+K7VGyrOn7E2tfdb44bTQF6vb3xrQqJbACYpFPFJqh49Qf9Ua2Dtbj4TVtuyqTA+CJfar8j73+fqBpBGpL7APhHnndQFVpxDfrQ663uNzdY9Ni5Rwy4vYDx9HxqdHcY7dDD+T4iXRzcvoOngu6y/j+CH4DXl5/b7Ypl1z2IcQdwK1dp5fqS1u4xBP9e9IRp2bEAGYv9aaGsdaMa29ujOlj51reXXvk3WX6P5H4S5nP3itXxpxlQo6K31d38IGK833Ov2MPVpRDxJ9EYoetYhPtlVdFPwBttTTCvCWFWKgmC4KbDceqEIZuH7NV4mxdgSQFwyjRgIzYobLg9R4A== 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-SenderADCheck; bh=L1/SV2bLUTLZSQ1ijAk/tWOFyGtsgz3S+uTSjU++hrU=; b=koYOchMTwVf7noNQ0WVIY2ofhyuN3srMBvS+7KbDUQ+9BHDko0Zgy/c7ADAQEEqzirLWd1NP2us4yNvnoYnoCSfXvD3/ZUJlqw1ab2TXUIzTG1H3+KheBHdgmReZ9uExYqP4GOtPr58B+qexAJVMQLJx69Gh2uuSQNMj3/RrDeXVEKnO1h2la8G2eW4TOltTCjnRFc3q1WqNAhRQTdlos+AB0PCFs9fVGx9a83ZCKvp7cxLdWzK09fkcDHvCD5UFGp41OzjcbYyrLuwYLidBtLrMyRvfz3sstNNZHjvJpwwRHF0KepMLFYWNhReiXcTk+cMP48CAvHBN+5+h3jO+RQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L1/SV2bLUTLZSQ1ijAk/tWOFyGtsgz3S+uTSjU++hrU=; b=X+JBDa3PDns2YbN/MuaaA3uaWmqO0vRSb2HKElWyV5fLUDmsynDCe0h78Fcn2uuf/WBhVxW2X8BJWuAUW0yGeTEzTEiIndAQm+fUMSSoquHP9uAVWyYaQn/l822yevlkiuu0IDMSSX3RKSlpzgnFjz43xJoa2anwnKGWEIPcbns= Authentication-Results: wdc.com; dkim=none (message not signed) header.d=none;wdc.com; dmarc=none action=none header.from=wdc.com; Received: from DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) by DM6PR04MB6624.namprd04.prod.outlook.com (2603:10b6:5:1b6::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.21; Thu, 15 Oct 2020 13:27:39 +0000 Received: from DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::d035:e2c6:c11:51dd]) by DM6PR04MB6201.namprd04.prod.outlook.com ([fe80::d035:e2c6:c11:51dd%6]) with mapi id 15.20.3477.021; Thu, 15 Oct 2020 13:27:39 +0000 From: Anup Patel <anup.patel@wdc.com> To: Atish Patra <atish.patra@wdc.com>, Alistair Francis <Alistair.Francis@wdc.com> Subject: [PATCH v2 05/16] include: sbi: Make hartmask pointer const in sbi_hartmask_test_hart() Date: Thu, 15 Oct 2020 18:56:49 +0530 Message-Id: <20201015132700.2232820-6-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201015132700.2232820-1-anup.patel@wdc.com> References: <20201015132700.2232820-1-anup.patel@wdc.com> X-Originating-IP: [122.167.44.151] X-ClientProxiedBy: MAXPR0101CA0065.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::27) To DM6PR04MB6201.namprd04.prod.outlook.com (2603:10b6:5:127::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from wdc.com (122.167.44.151) by MAXPR0101CA0065.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.22 via Frontend Transport; Thu, 15 Oct 2020 13:27:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4c64198e-a720-4a6c-7e95-08d8710e1602 X-MS-TrafficTypeDiagnostic: DM6PR04MB6624: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DM6PR04MB6624558CE6595291A81097D18D020@DM6PR04MB6624.namprd04.prod.outlook.com> WDCIPOUTBOUND: EOP-TRUE X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i8K5TRKOV0fTQEDJ0Nv5Jttu9uOE9bU8cdQYcehQNbY+o0urccRs4K5N+RnV2ampKgeWVx21YwQDNcHy0Tf1SAU0YYVpWFljse+NaL8dbgo4ZDL+4bbfBAj0fFTjh6oAH6VA3OjxtLASjTBi5+8v+r30/waIt/6RMDWEKKHl8+9ND/fveyu0RzZP/OHrycHMCLf65TrubQ0xsmBdd5mWFt5T7qFjYvYSdF1i2gHlXLuBvD6pf6mthKkVlCca2G4oG92bDGfRc+Y3kLsw8QDbGBbzjePIuM9fQ2H8/+oEhknhQiHqGNs9SAeIZrlo6gdyhMWqvgdP6uQEVGObAFR6jP+DOpbv46li7R8LxMIwBVK9XRfseqCGSKm3J4qzpZNa X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR04MB6201.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(39860400002)(136003)(366004)(346002)(2906002)(66946007)(110136005)(66556008)(5660300002)(44832011)(66476007)(36756003)(6666004)(316002)(54906003)(8886007)(8676002)(8936002)(86362001)(34490700002)(4744005)(1076003)(52116002)(26005)(16526019)(186003)(55016002)(83380400001)(478600001)(956004)(2616005)(6636002)(4326008)(7696005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: dF2SMAfAWam5+vql4cx5TNlgvG08J8hbnJScTtMgUPXABXtEpn67z6GgTNpm8vmweRNdXhOIXAk1hAzlG9slVhZU3GCuuuLjhQYCxk2QbwzurIut1k7HK3IeJ6yhJIACHq8Al5U0rMtu7LBD5JJNEQUXpCoxvE7ihrj57FSTfFr5wS5wHEA/SXwH4hg0OETiA45/I618XmogWe7e0UWh784o9yjYOtiKAwOrCWFSYm+KOsR3r6fV9+WRjTjJnJ1WqlWo6K5zROw2FBvh/Z9PSnmQiXzcqYvrztVDW0gluVsexIX/xrlpyi57nnCra5Ko2HLl6tKO84/BI3mWHsbSy5nlDpNCD/xyCTm55YzKB6/ssx7suKynuB/hfbvJkjyqZWOSPUjnMdQ4Wgh93PtzVdgVYYUYjJdUiwDH9Q+uBqtk278PhS4eC5dClwQ/oopJwmOmgpzaN34SGUa9oWjYQUW+7CWjpsiKFtjTE3VzUMSPQUoW3dtB0XTLaQ1HxUAwfo6ehnr+OrWVX1mfyxxek6D6pFcTG6NL04FhAdZzqerBrlwLDUAaTTbAHciZcbAgQzNTd6CmlVbUpFflvfaHyT3+4hSlcMLuoreFEzxBuR81GRLDW2lmC8nNFBFHgFHPg8lUQD5VPkn88PfdfYXu+g== X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c64198e-a720-4a6c-7e95-08d8710e1602 X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6201.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2020 13:27:38.9875 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /LwMl90owAhzGj1AreKNclkt8VHgv97mQ5kbAaT2mnqyL9H5DbshWg/3Nz8bw3i9aINEng1UBcrv7GPBD1y2Dg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6624 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201015_092740_690130_388C9087 X-CRM114-Status: GOOD ( 15.27 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [68.232.143.124 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <opensbi.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/opensbi/> List-Post: <mailto:opensbi@lists.infradead.org> List-Help: <mailto:opensbi-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=subscribe> Cc: Anup Patel <anup@brainfault.org>, Anup Patel <anup.patel@wdc.com>, opensbi@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "opensbi" <opensbi-bounces@lists.infradead.org> Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
OpenSBI domain support
|
expand
|
On Thu, Oct 15, 2020 at 6:27 AM Anup Patel <anup.patel@wdc.com> wrote: > > The sbi_hartmask_test_hart() does not modify hartmask so the > hartmask pointer parameter should be declared const. > > Signed-off-by: Anup Patel <anup.patel@wdc.com> > --- > include/sbi/sbi_hartmask.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/sbi/sbi_hartmask.h b/include/sbi/sbi_hartmask.h > index 77e42cb..f1cef0c 100644 > --- a/include/sbi/sbi_hartmask.h > +++ b/include/sbi/sbi_hartmask.h > @@ -67,7 +67,7 @@ static inline void sbi_hartmask_clear_hart(u32 h, struct sbi_hartmask *m) > * @param h HART id to test > * @param m the hartmask pointer > */ > -static inline int sbi_hartmask_test_hart(u32 h, struct sbi_hartmask *m) > +static inline int sbi_hartmask_test_hart(u32 h, const struct sbi_hartmask *m) > { > if (h < SBI_HARTMASK_MAX_BITS) > return __test_bit(h, m->bits); > -- > 2.25.1 > > > -- > opensbi mailing list > opensbi@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/opensbi Reviewed-by: Atish Patra <atish.patra@wdc.com>
diff --git a/include/sbi/sbi_hartmask.h b/include/sbi/sbi_hartmask.h index 77e42cb..f1cef0c 100644 --- a/include/sbi/sbi_hartmask.h +++ b/include/sbi/sbi_hartmask.h @@ -67,7 +67,7 @@ static inline void sbi_hartmask_clear_hart(u32 h, struct sbi_hartmask *m) * @param h HART id to test * @param m the hartmask pointer */ -static inline int sbi_hartmask_test_hart(u32 h, struct sbi_hartmask *m) +static inline int sbi_hartmask_test_hart(u32 h, const struct sbi_hartmask *m) { if (h < SBI_HARTMASK_MAX_BITS) return __test_bit(h, m->bits);
The sbi_hartmask_test_hart() does not modify hartmask so the hartmask pointer parameter should be declared const. Signed-off-by: Anup Patel <anup.patel@wdc.com> --- include/sbi/sbi_hartmask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)