From patchwork Tue Oct 4 05:52:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Abbarapu, Venkatesh" X-Patchwork-Id: 1685868 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=5PtaBm7K; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MhZng1v8Sz1yqj for ; Tue, 4 Oct 2022 22:13:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6765584E0A; Tue, 4 Oct 2022 13:12:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.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=amd.com header.i=@amd.com header.b="5PtaBm7K"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 56AB8847F4; Tue, 4 Oct 2022 07:53:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2053.outbound.protection.outlook.com [40.107.94.53]) (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 D5A4880384 for ; Tue, 4 Oct 2022 07:53:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=venkatesh.abbarapu@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qrn6k0TtbONaz2mZ5ZLnB08Jv/sZ7qP3Y0DqENETWAllWB0HKLX9meb1GCsi/erGTJS5AdhW7cAjtheqQYVwhJgihw3L+byUiPtu9jyBjcVpfi3xqbIgxAI4SmAEZoTxcFsUu3D9KAg6ASh7psMJ/uka4REj0UT4wTZlli7GLfqm7sPMx3FDVev1TLOPu4lwl8bH+Ob00Hk37V8Gvkmxst6SJcSmV3+085NMQJfp4VrZhFxnhtPY/eZNk9SC4J+GQ9U2wgfIinoGaMuz8WdtFNJTN8FGnRCzhM+hqPe0yDQwnKJTHslMYWHTyfcoGgXZFSGEdFfDH+8aUVrEVWa+9w== 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=LMWjyRDPKBL7+p81mL757Y2yEe+xUjAy0oscLyCSEmo=; b=IzK1imNrtVc1M1dMeb42iKYmtW7cQa5lCklIM+TRIBQ9YoXmVLC8ki45ICdRvBYwHxN2cnI5grlafy6KK04lQ6oSAZ4WVvOUvCPGMDzsIqPjV2FJgiynXJnhlBmGBtBYp9GJcN2C7MsEuRX9NT7nygvCgYjmsSAwSy7Sr5aT5imnwdhbi+NQVZVMk6slizEHG6MslyFDpPUCM0voZ/puRaiYKtcP64LYUaFruByJS5J/VdZd0h0uG+V+t3xROsp2c+6ZQ1IQLkGQSn4z6L646G8E8aFwu7hjk9pn7A0KyboTItJdGo5UEVYuf40Re8LrCWwsitIpqFdyQ/Wwl0cS1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LMWjyRDPKBL7+p81mL757Y2yEe+xUjAy0oscLyCSEmo=; b=5PtaBm7KIufzs+B3dqmCX4oXOmpg2FWzYdWo7Idr4qq+bYRWUwZ7+G9poDWRJcwgiexkRphyBrfkBkaRErRqiTBYXaI86yD5unHvCf+NGpJ4sp/mP46NT2Se4jQGFYJ88NaqDuvZ3leAkIV5b9i80ybgiBflhlmRTFG8IOJb3Ho= Received: from DM6PR03CA0102.namprd03.prod.outlook.com (2603:10b6:5:333::35) by PH8PR12MB7325.namprd12.prod.outlook.com (2603:10b6:510:217::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17; Tue, 4 Oct 2022 05:53:04 +0000 Received: from DM6NAM11FT101.eop-nam11.prod.protection.outlook.com (2603:10b6:5:333:cafe::14) by DM6PR03CA0102.outlook.office365.com (2603:10b6:5:333::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.26 via Frontend Transport; Tue, 4 Oct 2022 05:53:04 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT101.mail.protection.outlook.com (10.13.172.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5676.17 via Frontend Transport; Tue, 4 Oct 2022 05:53:03 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Tue, 4 Oct 2022 00:53:02 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Tue, 4 Oct 2022 00:53:02 -0500 Received: from xhdvabbarap40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Tue, 4 Oct 2022 00:53:01 -0500 From: Venkatesh Yadav Abbarapu To: CC: , Subject: [PATCH] xilinx: zynqmp: change the type of multiboot variable Date: Tue, 4 Oct 2022 11:22:54 +0530 Message-ID: <20221004055254.26246-1-venkatesh.abbarapu@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT101:EE_|PH8PR12MB7325:EE_ X-MS-Office365-Filtering-Correlation-Id: d1d75601-f1ff-4a22-b154-08daa5ccb3b3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YJgRnNG6vWReZYaBJFgEYzHBvBAJh/SmA568LAjEdXiSBIIilifb5fXS6xUUSG5WQBJyRIzPCVgLAZ3euDqFsrDYtpGungUUH3dmh0oQOixjP86kzTXlbN/C8hNEIyVaAECTPpkHlI+6zstn1sc3tASGp/VeJr3XRVDv7p8lly596dLz3yBkQjTBDwKwAIvDaf8pTYF3KPWqlt4ODh25IwrsT3x4/ycxFzQLTid0iQZ+N/q5BRX8VqQ5oV16gnnQhPCYILuA5NMT1TYf7mjOMuL8+rG2UcAlOL5zUqocmx3xStCp1bpMlTala6j7ckyVBslJnJVyNk111rNm5RF9Jhn9QRkzV3BwyKZIjlpiteDQOlJQV34nA2HIthQ5xblwsobfIpviNCjr2546Eg8RFnHDKHPFgziwxueKEWHfBCUHs3WHMOOR6mYE/UkoVNTsKfJIRstR0yueby752u/x6vi/URCesEiutTtxZMNLpr2Eidwnru58GSiUo82kgWNWvCAhwwGjGPtfNo6Z3teXNhGCLoiUsoDuITQhh/zd/fy0BfctSZ+e+Dkwd+hiVQZxuw4LZeK/+bkcvtbcwlOQ8VFHYRgqpNckfKuB74483DNcsNFt+Yl986XLtw/nQS/CG4hdZumkPg2q6SSCH4IA49f4rtHM5NAStjs1cI8T+FybM4kRXnjfuZbZv+xApzjydyVeOYk+XHT5zQRW1unO3OR+eFpXl0Y64MwNyzzc1V5DsSEBSf0D1UB7ix8+b93fLlSrBkQW0y33aiV0+nRGuR9qVGNyusrbMIDUelEHN05jaNsriob97/o9ddXmHaXg X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(136003)(376002)(346002)(396003)(451199015)(46966006)(36840700001)(40470700004)(478600001)(5660300002)(316002)(70206006)(70586007)(54906003)(82310400005)(86362001)(6916009)(83380400001)(336012)(186003)(8676002)(4326008)(40480700001)(41300700001)(1076003)(2616005)(47076005)(426003)(356005)(82740400003)(40460700003)(2906002)(8936002)(36860700001)(6666004)(26005)(36756003)(107886003)(81166007)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2022 05:53:03.2218 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1d75601-f1ff-4a22-b154-08daa5ccb3b3 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT101.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7325 X-Mailman-Approved-At: Tue, 04 Oct 2022 13:11:23 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean In function ‘set_dfu_alt_info’ a comparison of a u8 value against 0 is done. Since it is always false, change the signature of this function to use an `int` instead, which match the type used in caller: `multi_boot()`. Fix the following warning triggered with W=1: board/xilinx/zynqmp/zynqmp.c:651:23: warning: comparison is always false due to limited range of data type [-Wtype-limits] 651 | if (multiboot < 0) Signed-off-by: Venkatesh Yadav Abbarapu --- board/xilinx/zynqmp/zynqmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 57259b60a0..81f551ee99 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -636,7 +636,7 @@ enum env_location env_get_location(enum env_operation op, int prio) void set_dfu_alt_info(char *interface, char *devstr) { - u8 multiboot; + int multiboot; int bootseq = 0; ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);