Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp167613rwb; Thu, 17 Nov 2022 22:54:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Tq6iDl/7raEf85qtao1XeQdfgsvX4t77leCYzUpK9jCBVTjBvlUHgjLt+m6AB0Smv6+Ks X-Received: by 2002:a17:90b:3944:b0:214:1df0:fe53 with SMTP id oe4-20020a17090b394400b002141df0fe53mr12143429pjb.214.1668754455892; Thu, 17 Nov 2022 22:54:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668754455; cv=none; d=google.com; s=arc-20160816; b=p6vbtA6Y+6tIpzP/RDvASlzy6At8hVnaUeCucKMUC9pSC0ZmhwogLqktSaIfzTK+N1 7r8azAlKZg2YDWyqEViuFJK3sV/IZU80pEEUxn4GA0+7tQOvd7tBuppaahRPonPdz85m BzMvuAV9T7cwbOG318ShbqKbd92NwH2pjbrHr9nHNtIzgAmoquPYjo3mKrVX8Dalfc2D CWdYtDMMfWcXqkIcpNde2uw8bzXg1CYDcIU+tQl7p+mTJw1Kfh4vPWbU3jE/50CgRJVc rYJn8oNphpur0+9yIwn23mNiYw1u+2L/MbfdKv19TOOkpCtlTHHf97RL7N+hrc5rKu1Z QUZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h6CxYHRM9Zn+3KcDKgeunTZ9HLvRKum2ivGbFC1vvMM=; b=rYXJF75rtMJc6aZWCh5zvxP1SuPLKQLz0yfvmhqz4fDhlDd5zZapB2QkyBadqGGEUE MHQGShrJVKcZYObwy7jbVuTYmEkZBmmIrjGLag/Q2E4sdMM280+fUjW4e7Iy547vzG2l G2ZnycBZzajpZOpBV6CvDE756fFt13ECNyrwEChZnVXe+q43h//ZQhf+SGeD+ycKSxyS WXYANQP/vu9A7VigABFtwEmX1CIgJr/mCLhaTWgRODjc+AcxX7vHzCBZtjAj2yN2MYcY wGke+m74ER9DpQhAgT3gAK40y0gLPBr1jtVxkRIfO6bYTNhOOVgFDRivg3DWc6bZubhT ExGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wVDfywP+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ij30-20020a170902ab5e00b00188ec2857dfsi2761532plb.275.2022.11.17.22.54.04; Thu, 17 Nov 2022 22:54:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wVDfywP+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241184AbiKRGjh (ORCPT + 91 others); Fri, 18 Nov 2022 01:39:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239518AbiKRGjZ (ORCPT ); Fri, 18 Nov 2022 01:39:25 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B316B9A5F5 for ; Thu, 17 Nov 2022 22:39:24 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so6838554wmb.2 for ; Thu, 17 Nov 2022 22:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=h6CxYHRM9Zn+3KcDKgeunTZ9HLvRKum2ivGbFC1vvMM=; b=wVDfywP+wfkvyvPtAy0+5GJ2Cxi5HyktVpg0OkJUNO3u3TMRv0okjrAWDf7YU5foNB 0cCWQlcmIf9nqQjN5YyLmuExQdlCNxSHWWLXMYjkBQSDSE8KYb62LdNlVG2ETYD7XpXH GrLSb5YQkrmtyaodNSeW6nMD2/8424vLWm50pjZAqsu74SQTsyxHYmFoLdbx4D7Itx4F 3/98567ellps41N4ECLKsveASgtSyxzTWq3lhZUpGWBlaCHf54mTUGjAWYPe440P9pMP 8oVL0y8Bb4yudnvwrBdrEssbUc2IlDU3gNm1LW5vNQb8KlNgXSSD3t//SiCnux+AfbrR sSfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h6CxYHRM9Zn+3KcDKgeunTZ9HLvRKum2ivGbFC1vvMM=; b=eIlBKmfcF/SL0fhLIYX3L1oSOlmMfMNwNvs8+2IAhnUj+QjWDUPHZjUahTLzt8ndxH MPiqzfxL2aCfn0ZrajAxhAf90d6J7d8Tudfv/3htKrBgOxImfah6OW6ULhII7uyXCPd3 G/HQBy+dGiDkcEURV3LrF6QzAmNYtboVUxrHhrJdzEPS14xr+G+MrUqMfg5dazYErS4b K8FwHmKyNPmS/JsPi82ij5dfEWSdFjMO3S2TFXGQTOCH+ICDK+t1V2iIIVYZHmqiAFN5 7IwizrmAaQkuOM5ZKihjE86ezebrVVulLbAwaQfcLYnvrn8RE0mSnRcibhDJUm9QleWY JXkw== X-Gm-Message-State: ANoB5plXzS2gdaGA7HXJhqWN600zJ1wOm/K1/I3Hsd3tW83Sug+luffe 3Fdgc2sVoUqJ9pi7vbnEd2BYfA== X-Received: by 2002:a7b:ce8c:0:b0:3cf:8b2d:8cbc with SMTP id q12-20020a7bce8c000000b003cf8b2d8cbcmr3954223wmj.89.1668753563239; Thu, 17 Nov 2022 22:39:23 -0800 (PST) Received: from localhost.localdomain ([167.98.215.174]) by smtp.gmail.com with ESMTPSA id n24-20020a7bcbd8000000b003b4fdbb6319sm7853861wmi.21.2022.11.17.22.39.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 22:39:22 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Horatiu Vultur , kernel test robot , Dan Carpenter , Srinivas Kandagatla Subject: [PATCH 4/4] nvmem: lan9662-otp: Change return type of lan9662_otp_wait_flag_clear() Date: Fri, 18 Nov 2022 06:38:40 +0000 Message-Id: <20221118063840.6357-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118063840.6357-1-srinivas.kandagatla@linaro.org> References: <20221118063840.6357-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Horatiu Vultur The blamed commit introduced the following smatch warning in the function lan9662_otp_wait_flag_clear: drivers/nvmem/lan9662-otpc.c:43 lan9662_otp_wait_flag_clear() warn: signedness bug returning '(-110)' Fix this by changing the return type of the function lan9662_otp_wait_flag_clear() to be int instead of bool. Fixes: 9e8f208ad5229d ("nvmem: lan9662-otp: add support") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Horatiu Vultur Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/lan9662-otpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/lan9662-otpc.c b/drivers/nvmem/lan9662-otpc.c index 377bf34c2946..56fc19f092a7 100644 --- a/drivers/nvmem/lan9662-otpc.c +++ b/drivers/nvmem/lan9662-otpc.c @@ -36,7 +36,7 @@ struct lan9662_otp { void __iomem *base; }; -static bool lan9662_otp_wait_flag_clear(void __iomem *reg, u32 flag) +static int lan9662_otp_wait_flag_clear(void __iomem *reg, u32 flag) { u32 val; -- 2.25.1