Message ID | 20201019125453.2460105-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=fGkoSEk/; dkim=permerror header.d=wdc.com header.i=@wdc.com header.a=rsa-sha1 header.s=dkim.wdc.com header.b=PGge+DSn; 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=AU1+WTip; 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 4CFGvj0wc3z9sVN for <incoming@patchwork.ozlabs.org>; Mon, 19 Oct 2020 23:55:45 +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=L/XRWLhN5W15PqZwrjGwk2hyVr+nJwya0CRR7nOWU5Q=; b=fGkoSEk/9dSlUxNP4/FYaNGAP 1OGgFCQPzv6/wCS1BpfTedpW7BqQC3yaYYBsh+crjm+tOkZ1ikY0O2k/rYYIELr5JTvNrKTx6FyUi KnzsBsXceQooGGE+kVobrKhgouKdjnKtjIVL3mF7Sjt3TP7L/OYd2XuxRGGAr2eamts1cbbfzIPFu 04LK/vgqMGHe/ZaxaPndSZrx8JkxcVv1Ze1nHa5LZ51RpUSODH0qXGTIZ715XNxH3DyzkxUfefSF3 DKwIhNGVv/m3JuuFwzu+s/5zkY7txwu5qLBI1CDAGKLGy3fwiMZNNJDIWxEqoCl+IA9dkoqhfazH4 31sCGSGIA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kUUhO-0004uH-Lg; Mon, 19 Oct 2020 12:55:38 +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 1kUUhM-0004rH-1M for opensbi@lists.infradead.org; Mon, 19 Oct 2020 12:55:36 +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=1603112807; x=1634648807; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=H7cNx76HDouNXtjSp3D69CuC+GFTHAJwJDhHQq/BIEc=; b=PGge+DSnrfWPC8xPlQtyZyZWvvRNpBv+ezu4i+5fnnzELhuj+9p2z1zZ B9taFViz6dVtVNLlxpsi3naxPmzHirFc9hlrV8Y7xcUMMc9MLmzMahqLS qMFxej+j91lUW0fILAMoeAYkOhzj7g+XVznPOTBmpL4FUqql/XJVucON+ m4SxmSBVD6LKWQXAeUSARu3Rg3bESjYM0T55iOueC6vOtMoITE+xIVuxa JFhfL313/uv4SrwCxiwcD+1gh1OdcKyVzLdkatSsSC/Q5OrC7NC/vthsI fHDTfeT2v5mapDFmJZJn/R0fi5K2ke8enDB/pjTTqLjC2t2/xwzxe6nyb Q==; IronPort-SDR: x8vzVkK/T5Reys7sYuECwXqKZpUf/Weikp/XxYZh090RAul32iX7KvRfw/CFwkL8DRr0NXQ8x2 x+BH9xZCUMUIwKDc+OsPojWZncWi/RBny6hemTvYbODbMA8Gd5x8K5IFpqke8x5f3ImWVdw6df 9fMW0Tp/Yj+fRXMRtHQ70NnAn8DS0Fv3EuAX62Q0+IxoVPEyK5MfI1Rfzl2j3JNIxxBTaOkZIc 3bMdrYfnKElwQdSS7qmCjDnhcWH/vQh4cQ1ja61J54+LMdIdcvDpP8KfBqGeT61bAP/kSWlwCM BOk= X-IronPort-AV: E=Sophos;i="5.77,394,1596470400"; d="scan'208";a="253808601" Received: from mail-cys01nam02lp2058.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([104.47.37.58]) by ob1.hgst.iphmx.com with ESMTP; 19 Oct 2020 21:06:46 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFjUDAnSe/UkBvf8ThYXIzvNbX571ACebD+KhHe+pWrE83+oxYff0QgW+k6SeLAzfC8Vdp3kOVPsZ58Jeva6opq1xA7qjiYACcsS/d9NmFP9yUe2tcVnS7Lm3jhr13dYc/dCqyIgBOfGoThFjhXAmbA+eiKlxmSivmKIPWFpkZGX9Dd5v4y7soRkuFQVsWqd78KkRgU0gvBsRlsF6YdEpmmJhxkE3lIQh3dzYFUvQxK7SS+dxJF1x4yv+SHth61hRrycO4DR1Q48mwLPpQp7DM5NPekzi8pCDqLHjSUT9An89s1GCBW5gSvIHJbHScmMk5nKydiEClTwHxIM9613xg== 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=4YsBoI19L5mx3eDKv37Ta5KFSa1x9pD0JvzkjFcksYE=; b=iiixnjneKFpGqcUUmJvcEBtoCNQO0up6zcNvs6n396LYymIJxxHfv65LUkTZ7GREPlmsWma+ZH570tsT/Vv6vUVkqWDUf+OnKYx6URHP2njtmEyNq+CqoRqIrQycXM1jzwNjMOKntgUeEK1/G2kmJI7Ltg8tHDqfzQJpA/dndy8EM39OCvW8C90zcjp5tjT09aeZOLQiftjtFjI7BjUAzLmLukgsO2j+7x4AUUPayUZSl9BZuzLB0+JsmIiFtfyL8HhthkyN7IcMlxG8k79I10iz3DjTm8XJmcadM3Q16OJE23LRvtZsUr4rk6jddy7euK5Mg/GdAxOYhWu7+eAb7w== 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=4YsBoI19L5mx3eDKv37Ta5KFSa1x9pD0JvzkjFcksYE=; b=AU1+WTipy3A2kJkdHb1D+eXNu8aS03kwPvk+DroSeCNJurE1+95Ii3RHUlda7qE1Gmni++LALbjIDe0/TTRw7gE/YUzVzoc8OTiMr4iVK6QHdQNlo5oMHZFX4RYnh6b7895/mslJOO5LzBtLtnVMOjB3ul8LttiOXNtcvPzkYYg= 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 DM6PR04MB5548.namprd04.prod.outlook.com (2603:10b6:5:12a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Mon, 19 Oct 2020 12:55:34 +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.028; Mon, 19 Oct 2020 12:55:34 +0000 From: Anup Patel <anup.patel@wdc.com> To: Atish Patra <atish.patra@wdc.com>, Alistair Francis <Alistair.Francis@wdc.com> Subject: [PATCH v3 05/16] include: sbi: Make hartmask pointer const in sbi_hartmask_test_hart() Date: Mon, 19 Oct 2020 18:24:42 +0530 Message-Id: <20201019125453.2460105-6-anup.patel@wdc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201019125453.2460105-1-anup.patel@wdc.com> References: <20201019125453.2460105-1-anup.patel@wdc.com> X-Originating-IP: [122.172.253.92] X-ClientProxiedBy: MAXPR0101CA0060.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::22) 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.172.253.92) by MAXPR0101CA0060.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21 via Frontend Transport; Mon, 19 Oct 2020 12:55:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: cdf41b7e-0d19-4510-7f94-08d8742e449a X-MS-TrafficTypeDiagnostic: DM6PR04MB5548: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DM6PR04MB55482454C1297B312B004B2F8D1E0@DM6PR04MB5548.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: ok+GF1rGJfTrNe3TxSX6D1DpzQWkAJKzq/suCkTWKiFoHDBD+lFP41cFaMg4HWHCLBbrzTXl/k9aF7UsngAN413xwSXTWMS6OT+1ytAr108Xs5R7RSjXP1qUV5nsjtvDr9+PlbJY5sb1qzOyV9tIfn8YGGMWk29AUADXtfjUfsGvCo3GTg9i2ubsweH3Pnpjp8NEpNZz9w+wDJvxIvRsWhDx2RmnaAw+iTidTALJ/1bC6MXHBF34KqrVZAxFxgLzaWjQ+RkyKlQv7eHnRaJQYJsJRnZaiwDNQM/acI9/0bvTzd4bsivFlkMSQvZv72iQ5zB4caolLyfJxy5U9FbOwg== 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)(366004)(136003)(396003)(376002)(346002)(39860400002)(6636002)(55016002)(6666004)(8886007)(66946007)(66476007)(8936002)(8676002)(66556008)(2906002)(86362001)(44832011)(83380400001)(2616005)(956004)(16526019)(5660300002)(186003)(54906003)(110136005)(52116002)(7696005)(55236004)(1076003)(4326008)(478600001)(316002)(36756003)(26005)(4744005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: YbDRVoz+wtKuLBvb04r5eCakRI6rEXqp1+aKPE51VHkf3meyRX6jNwNvsU+ruSO7nYxIM8je4zoAiBazx9nKt3LGAwimELMZJ6Ee7lgMiDa1KlJX+RIpI02rUZRVTDj4iBhlm+dCjkrIADhVRGyeFTAuM0vsLQYifDSyKtFKFNnxIo6F6TMPLuw4AKW2RzP3dUoGHcRDS1knYTGYE3ngPxB5xtqYnDUOghqSdwsc1JGUqQy7jbQ5ITMcZGS9oyauluS5Jhs+nmz11caXfQzX7/MpWbXdTKE/mqv7FABzqzgfDrXo4Ov+FjRUnjatcJsjnd5hIt/Qx89HDd8RAWjnJLpwa8NPN4cFXH2ezxW6eAcNHLFJXjNHix3FEawkmV/FC+kvdTqW7kyOIxf1rm5sDCksu0fEEDWLL43L42ST9vQiPY9vPP/4DzaXwPReEGGuDCd+YDbyOyCb/WIFgRkyAsOa2OsgQGt+31Q52IYaUlAWBpkAl5uOASdSewxOjO/5BMjogqzE7aR4GogB1BAjEY5819nKhm46lE/O5Fk4QP52qdiW7syGyn1trswLn+S2GKOfbr6WbMOtGNfX6tbWTmkR8rx/FXu246OLeoxUuk7xFRH5qt0HLrqPIct2330ZTip2G46DGowB9WjwWi1u0w== X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: cdf41b7e-0d19-4510-7f94-08d8742e449a X-MS-Exchange-CrossTenant-AuthSource: DM6PR04MB6201.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2020 12:55:34.8374 (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: Z9KCFc43GgIv1CG62RggElPR7tqWjv4ZUnFzvyXsGFCJeIOyIkoGUjMVq4HtiEvoQhYBT37D3BTFi+9+xfs01A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB5548 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201019_085536_252368_29081442 X-CRM114-Status: GOOD ( 15.76 ) 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_VALID Message has at least one valid DKIM or DK signature 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.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 Mon, 2020-10-19 at 18:24 +0530, Anup Patel 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> > Reviewed-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Alistair > --- > 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);
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);