Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1CECCC433F5 for ; Fri, 7 Oct 2022 09:48:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 32D1F84DBA; Fri, 7 Oct 2022 11:48:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="ljomFfqo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 30F3684E14; Fri, 7 Oct 2022 11:48:38 +0200 (CEST) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 90AF384D6A for ; Fri, 7 Oct 2022 11:48:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x532.google.com with SMTP id u21so6260828edi.9 for ; Fri, 07 Oct 2022 02:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IR19QtveHF0aiiitE2aa/7CaTWWsTZthEjDc+abwSrs=; b=ljomFfqoOAPH+l+A559AJxbOXcplZR2GWRdMClkg05/FrTMxC8/JPe4AuxFInwqKGW VN1PEDq4nXIikx/XB0mZNg8Omohuq+P9vjMdtX7ATIAL9fBN04H7qA7aHB2m4No60Bcx wvOG00Rd87RzTpdAm7ka5awMvjNb8K71tk5ZX+SbwWY00qdzo9d//J1tednwsx+rZEU5 2MovvyWf0PWXIokT/XUZ5RjH5csz6/C8cJiiY+CgFBv71Qi+bj7r32B6S/3DtG4xWH8L cN64E6uOAKrM7eTVOnWF58/7P5hrtRu7h7LH99u+gzwyOedkH/UjdxN4kHvmiAb4US/2 WQEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IR19QtveHF0aiiitE2aa/7CaTWWsTZthEjDc+abwSrs=; b=pKxqNi/izPTGgj/Qfo3OrrrvQl2dJ29kRm0YqJ9YWu41yQ03klupAFUKezlj+b8vDA pvB1QZomX8S5pbPom4ad8/i0fat6gPPdhxsDG3qCGoF/aIJ1Hclcmw1rkXbDM7tpf7DI IBTOAKAcOm+pInwNk94Od43I5h8ZJ/ZKzmA3dw+G1P8XmhFtYSxVLJuvgx81yjL8ArWd ADVs+PVhczPYDMUQMLWstIH2rNfZm31tC2ePCZVYz4RV8Qlf3EIMunjiCfQctfplf1et 2lH4USMbOStXvU+gO4+0+AmdD6ZmDFquS7D4MpJ2e7rs44sHTyNi4t0U9BdDWgnT16B9 rQxw== X-Gm-Message-State: ACrzQf1fCfbtEEWWOujn3J6vbLBzariiBPYZrHtzKqY/SPH+dhOMke4W m5PxR5KryEBBSZ4TQ5Q1zskbHANwwpN1Fw== X-Google-Smtp-Source: AMsMyM4ugIugPDU0Xq8MC26HC7hcDP6OvehPod2fD/+MgafWePekuulAqKUQ4Ut9Ck+u9Io4i+06PQ== X-Received: by 2002:a05:6402:368:b0:458:9b5e:fd35 with SMTP id s8-20020a056402036800b004589b5efd35mr3807988edw.141.1665136115233; Fri, 07 Oct 2022 02:48:35 -0700 (PDT) Received: from ?IPV6:2a02:768:2307:40d6::648? ([2a02:768:2307:40d6::648]) by smtp.gmail.com with ESMTPSA id s26-20020a056402165a00b00456d40f6b73sm1115060edx.87.2022.10.07.02.48.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Oct 2022 02:48:34 -0700 (PDT) Message-ID: Date: Fri, 7 Oct 2022 11:48:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH] xilinx: zynqmp: change the type of multiboot variable Content-Language: en-US To: Venkatesh Yadav Abbarapu , u-boot@lists.denx.de Cc: git@xilinx.com References: <20221004055254.26246-1-venkatesh.abbarapu@amd.com> From: Michal Simek In-Reply-To: <20221004055254.26246-1-venkatesh.abbarapu@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 On 10/4/22 07:52, Venkatesh Yadav Abbarapu wrote: > 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); Applied. M -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs