Message ID | 20210205083111.804-1-priyanka.jain@nxp.com |
---|---|
State | Accepted |
Commit | 43d1d391f6580a500659745343a6226c5034361e |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2025432jah; Fri, 5 Feb 2021 00:31:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/ZvEK6V17KNlwzG/5BNV0IJQE2GhThWHn5L5wZkBnpcs0FSs2y0lwk7JR/8hpqvi6GmCt X-Received: by 2002:a17:906:2407:: with SMTP id z7mr3093698eja.219.1612513906169; Fri, 05 Feb 2021 00:31:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612513906; cv=pass; d=google.com; s=arc-20160816; b=HJh1H8ZPvWYLAYw5JhS1pkeSxg3VOQfv/H/mCqnjwCEQ/UZumiVvGxL/02OMZoVg2m u0dMo8v7xRpyuhkMEQ/w/hQPwbseOlRL/NMS6RkR1eK2lIZm50li2ddGhA7jA2bfb2KF daB35fE5XC5NhsR5r86e+avVGNit62jz2V24q11YYZGxxbjoGHbLTJuxx61BsPmk0qYx kgATtNx8W9YLtBF8RcQC0gF4dRjlMaKxkt46j1RRN99rhErXlLkj8HiF9UpY1BxKJV2K 0YkLgzHBWiSleqx6JujFa9iw3uJChoNH9QIRfydzHb912TcULPzAE2CaipaR6p7d0JBk JZyg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=PtIerpIn3bHm63WjSpd/ThzDWRVr710I05qYJXI+Jt0=; b=eJW/93tlRE+D+pXDKBZS0Yprow+m3EijzmJJOYIA/TKAL59avXxUCNUi7lGLyJSTKR a4rI0SrzClD7JZ0ggohC02KGs4TFpERi2ONEnevttLYit+GXuS6Jb/Fga5x8fOGQgHRm erI5+OyrRTowSgVseeuHldXigOuQOPk7vVgzDpUsFV2Uwnw0bwbTWeWiyUUPTnbM8isz NvV0AbQMSGtVhMiWdwSJmD1EenNNf/Vgeu5zrK0Se8Xi6lSq5kbf6I5/JMg9r+aPkonH l0tm/miuDVahK5IhBy8IuIsQCmUv5J/lst84FstBUlkCzek7OdVNeLDhVGNcmHa956Pf 6bdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="akg5TR/D"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id ku3si4787854ejc.497.2021.02.05.00.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 00:31:46 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="akg5TR/D"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A74AE82A09; Fri, 5 Feb 2021 09:31:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="akg5TR/D"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B51C882A13; Fri, 5 Feb 2021 09:31:39 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03on062d.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::62d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A9261829BC for <u-boot@lists.denx.de>; Fri, 5 Feb 2021 09:31:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=priyanka.jain@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kupL41DBMyCzs6CYi2W5Rj15CuCZDHvcMeHEy46rsuVHalxrr5JzxMGvEBg1w8QXytLvzVeC0XZ86EW9pVmstS8gAOIwJrjYpcfiiV5vk9NGONGOHKhqkAvNIYKHiSckSt3LVa47CGUJH1ihclSv6cWhPaEGeLVqVrB2Avb/EgUZT+L9c8L6beI6IDCsKhqc3YYAK3ecnfRLaH7j6Y2SPLdTA+z1amwJlD+Q/uUtxp7fznrIN2vwKjxh17NFrcOWTou6ozjGy4nsURZmI8x98/KoVGwN4d6vkrBT2eBseC2vOLzFrI9zEkoXDbU3mo3JCr8I7rU5FUHInzS9OgYXrw== 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=PtIerpIn3bHm63WjSpd/ThzDWRVr710I05qYJXI+Jt0=; b=EKvgLFx7A1Uez1/FZ+AWywKHijAya60UggM/9TONzP8O89tAGHYEE/NxvLxdCGj2IdfS+njlOt9StwCaWGbflixj2t4q+ERIfSk2Y5xXpzhAmVDdwP0isfoH9pVwBvcjS23QrUfnfzHBqM8YO6HtzjfYAYtcxVQiW9UoEZnIq95lRCA1f+8QyPHtyuTxz390iQ9jDxChDMURWpiN7ctFLhxpycicdhRfr1wWNGdLojkX7RJt0ngdjxUG1Yb9715m+uSZxqJS/ZE5N3I3EkY86Zdb9F3zVfPTcZt1SuT/ieMiG1SPjhatWSsFBIjHJoNRbdNYwfSIb83rFOBBZ0zZPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PtIerpIn3bHm63WjSpd/ThzDWRVr710I05qYJXI+Jt0=; b=akg5TR/D9VYGZdGaIBsB645ZXuSaK+QvTKgrcNxDXFefvuAiR2+D9apQgKQFwgu0C+iAL2rk37uCBMlSOYGlJXRJpi6YVMaeUqJ8E6KivZSAoK4z6GlXAee1kcjzaG/c0jtFbYPCXp6VhaGUl/z9ADH392w2hpm4KWIA9KA3Igc= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none; lists.denx.de; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6494.eurprd04.prod.outlook.com (2603:10a6:803:127::15) by VE1PR04MB6496.eurprd04.prod.outlook.com (2603:10a6:803:11c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.20; Fri, 5 Feb 2021 08:31:35 +0000 Received: from VE1PR04MB6494.eurprd04.prod.outlook.com ([fe80::d852:910a:33d3:51a6]) by VE1PR04MB6494.eurprd04.prod.outlook.com ([fe80::d852:910a:33d3:51a6%6]) with mapi id 15.20.3825.023; Fri, 5 Feb 2021 08:31:35 +0000 From: Priyanka Jain <priyanka.jain@nxp.com> To: u-boot@lists.denx.de Cc: dean.saridakis@baesystems.com, Priyanka Jain <priyanka.jain@nxp.com> Subject: [PATCH] mpc8xxx: fsl_pamu: Update data type in config_pamu Date: Fri, 5 Feb 2021 14:01:11 +0530 Message-Id: <20210205083111.804-1-priyanka.jain@nxp.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-Originating-IP: [14.142.151.118] X-ClientProxiedBy: SG2PR02CA0061.apcprd02.prod.outlook.com (2603:1096:4:54::25) To VE1PR04MB6494.eurprd04.prod.outlook.com (2603:10a6:803:127::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv03169.swis.in-blr01.nxp.com (14.142.151.118) by SG2PR02CA0061.apcprd02.prod.outlook.com (2603:1096:4:54::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.19 via Frontend Transport; Fri, 5 Feb 2021 08:31:33 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5e334257-1539-4f3a-ccab-08d8c9b072b2 X-MS-TrafficTypeDiagnostic: VE1PR04MB6496: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <VE1PR04MB64960D6E25B8CB5A25F707B6E6B29@VE1PR04MB6496.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:2000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gY5t2tS87LywgA4aOFapyT87kJiZXpcBNA0pfu0EuvQ/5qZ+vA9qSdHHxs+7B/e+hrNoF4YL6VTc89EpGyLnuLM1TRDAEHpfe/odK3KYiz103gWtymH1ZPo1tiuQDuX4BtqPoz6ZoIBmaGHQl9dALwxuTAE16pdbyj2ksnBw3cQJ3YvWUNSq2kkAUELhTNfuQD3zMVIuZxPXT4YjBwxn7EKfbLr4ozN9wouYb4IO3+uDtudAJ4g4r3x7YtMnCVXHT4/CPRFJcUm4i76XjMSlStmCS492fWesnpJPVt8W34Shno6xTummuYojDeAGHDK6cSdeSDQ8elwSQbWGzUg2b02xZVuF9gprtZf5tgtNzP4JLjZeq3q2Kh2XoKXZPmX7Bed9Kfhe4jECIwceXdL6dPuu1BdukTcNlNZVJk37v56XEv8iKlhaGsmq8ZprXuJ63LjMzPAZHZIrHMf8RoYxaLvR6FVpNSeroKYhFjIVjAjyEKGUObsSKwZwz0BKynYh/VxSIi1VRprMtPvWqm4ah30Aby9fHBQYd3oHK++8ocO2iO5eINiI9jpOLXt13LGZuhutRNOyR2BQvispVIjDrdAKPc257f2iji2ol1EG+sI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6494.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(39860400002)(366004)(396003)(346002)(6486002)(15650500001)(2616005)(956004)(186003)(66476007)(16526019)(2906002)(316002)(44832011)(66556008)(83380400001)(55236004)(26005)(478600001)(1076003)(4744005)(66946007)(1006002)(6666004)(52116002)(5660300002)(36756003)(6916009)(4326008)(8936002)(8676002)(7696005)(86362001)(110426009)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 1yGOA+uWmW6Sp6SpwyWom/t7k3TV+q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P1kMiL5AM5MCF6HrSD3XJVgpN+srLCLbJZnc8s+BqEyMxew6xb4jMg6TKdU9yZBqMtQVUT9kgQxyM5Bmgam6xh+w68KYUZMXEOoACHH1YxhhW0DWV3G2qprUFsOdXHyDEMkP04onaCPVjCHXIKVRZvfkI/xOMUxyXV3Q2GqlkY7gg+KN6V599lWRPN33/LTGARTWOZKW2Fzq5A/c+WsRlpRxpmIXF9ifgktCdZcFXKAhW1fBIuAWxnsU X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e334257-1539-4f3a-ccab-08d8c9b072b2 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6494.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2021 08:31:35.3170 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cOx9zgRBG07aDRL4qcxpcU5M6pKuU5lNQaYawEK/cnCwuckPuGVrcmeT2g+jb/ehBNmEMt8+lUf5g2KEoBSzIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6496 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
mpc8xxx: fsl_pamu: Update data type in config_pamu
|
expand
|
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c index 2c378b7615..5229949951 100644 --- a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c +++ b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c @@ -390,7 +390,7 @@ int config_pamu(struct pamu_addr_tbl *tbl, int num_entries, uint32_t liodn) return -1; sizebit = __ilog2_roundup_64(size); - size = 1 << sizebit; + size = 1ull << sizebit; debug("min start_addr is %llx\n", min_addr); debug("max end_addr is %llx\n", max_addr); debug("size found is %llx\n", size);
Update data type of '1' to '1ull' in below assignment size = 1ull << sizebit; to fix incorrect assignment issue. e.g: when sizebit was 31, 0x80000000 got sign extended to 0xffffffff_80000000 Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> Reported-by: Dean Saridakis <dean.saridakis@baesystems.com> --- arch/powerpc/cpu/mpc8xxx/fsl_pamu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1