Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2995360ybt; Mon, 29 Jun 2020 12:24:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo2hzM0qOcDRrzIrRP7F6n2c9ssiE5ZHFuWBLkmZNn9cfOTRSACxRkKD3L9S+cbzmVh9xD X-Received: by 2002:a17:906:8392:: with SMTP id p18mr16243155ejx.24.1593458649954; Mon, 29 Jun 2020 12:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593458649; cv=none; d=google.com; s=arc-20160816; b=wUKOTOxeu1ojWXl0k6xINrzVSFfFHCgUH3Wl2Pd9d4c/k/W+3lSflqaQcIUIlVZndH lBj91tbhV4Pajt8iFIfE0HZ1pJ38Eyz8RlJiq0YXC3NcBSzvOWP3B6XW7nu4lb3HRpaL CZJYsb0dw28cbg/w4syRK3TEMslkYF7EUN3gJFDu5V1tDgef1c1wonyU6S04t47JXBg0 icsGyme7LDGFGPtz2vDF3Ru3w0m/7iRZf8shb0AnZxnSg1lChlC/8nCwMbQ7vczE/Y1S 6IIkACrXkbDFJAdZVFyMG8zkRuS/CpoP3F/7oFoMcIMIb4M6V9VfQiFJkEHD87qxhHHP Xc9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=X9rfAlOxfe38VMX/oL2KWbXJmMAccAeFpKeQ6kbgS5I=; b=tEvoNPGswk9ZTA8H/kiB18Cas0OQVy+OZ0rt+NLaG9x6NT2kTU5YRwk5/gWrpMTXAI MrpZEXBrLF1EYryX6ZqoaAoIC1o5ozwPnkttF5zABFUoWcQFLd8r1gulyXMHvvpOzLFy vtfEQI+rgHQCf7X5TFBGesvg+WqtQtA6Cdvbs8dtBfjfbA6iKL8WDoUR3Mr98HfdOLgr /6dd/cYrm1Q08ZjgIJ4CibLIfJhZ6vI8iQayLGFsDaJimZXUUkG6bP5hxxJsWHIAWowh X/xqNzERh7QHZXKwgk7RSfrEeHiXAMChLKZHMrVGyIXUBANePN59Y1zCW64wATGryqGb GdeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=UZ6FVKc7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si325016edl.218.2020.06.29.12.23.46; Mon, 29 Jun 2020 12:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=UZ6FVKc7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730283AbgF2TXc (ORCPT + 99 others); Mon, 29 Jun 2020 15:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732123AbgF2TWp (ORCPT ); Mon, 29 Jun 2020 15:22:45 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42945C030F34 for ; Mon, 29 Jun 2020 09:54:26 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g75so16034291wme.5 for ; Mon, 29 Jun 2020 09:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=X9rfAlOxfe38VMX/oL2KWbXJmMAccAeFpKeQ6kbgS5I=; b=UZ6FVKc7frhOr+27BqHpUSAAlW/b6bGMLjuQl7IYNjpAn9UP9nwBkgtlMucNWw5P0M YTRq3+LIylKWY1EpNL4FD5Vuwel8piO0VIk6nUxpzG9Ls450pSl99qLEi2KfmUEV4fC3 Q0HMPnnWRd7jZFkfC02SLQXuTxIeg1aAPTOqI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=X9rfAlOxfe38VMX/oL2KWbXJmMAccAeFpKeQ6kbgS5I=; b=abdsggMxO0YZ8Pqga8Cb1+KTT2Ntz3U65lWasbm9CChwOUkSbykc1NEguRsF1Em7th iV/0SE8rM2jzzUBZDW5+oYpterjSbdWUJsbnHMNCu5cBzlMgrznlcpplYpZk0T+Z1o+s N+JaJXUlh8bKAxbeDlv2qz0Q9ARA5IVT96DzHvb5FMRif1h3wa7ljNprEGUzj4z/P+qK uA7mKnrzSAQbUwrDSdJZmEUUP95ioz3Qtb+foVMkf6YqQ+5aOLcaYh7C4PV9iPwL55QD kuQ4SdSfubT6eKK8OqE9UY7eEnUgafMHdywBf1WIEDX6LV3ZyjiqJw9AO6J2bAPHKoTy Xttw== X-Gm-Message-State: AOAM530Js/HR98D7qhJvPAIMj6sqM/ZHQ6fS20h3vWk+rj2pdfITbwca ErB0zlHw7g9YCEe2srOSkex/4g== X-Received: by 2002:a05:600c:c1:: with SMTP id u1mr17895281wmm.48.1593449664783; Mon, 29 Jun 2020 09:54:24 -0700 (PDT) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id e8sm396022wrp.26.2020.06.29.09.54.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jun 2020 09:54:24 -0700 (PDT) Subject: Re: [PATCH 1/4] pwm: bcm-iproc: Remove impossible comparison when validating duty cycle To: Florian Fainelli , Lee Jones , thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, linux-pwm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ray Jui , Scott Branden , Yendapally Reddy Dhananjaya Reddy , bcm-kernel-feedback-list@broadcom.com References: <20200629124752.1018358-1-lee.jones@linaro.org> <20200629124752.1018358-2-lee.jones@linaro.org> <3470e941-aa86-11a8-674b-5258a08fedb1@gmail.com> From: Scott Branden Message-ID: <76a657ca-d30e-c5f2-f057-1c1bb7c8e1bf@broadcom.com> Date: Mon, 29 Jun 2020 09:54:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <3470e941-aa86-11a8-674b-5258a08fedb1@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-29 9:45 a.m., Florian Fainelli wrote: > > On 6/29/2020 5:47 AM, Lee Jones wrote: >> 'duty' here is an unsigned int, thus checking for <0 will always >> evaluate to false. >> >> Fixes the following W=1 warning: >> >> drivers/pwm/pwm-bcm-iproc.c:147:12: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] >> >> Cc: Ray Jui >> Cc: Scott Branden >> Cc: Yendapally Reddy Dhananjaya Reddy >> Cc: bcm-kernel-feedback-list@broadcom.com >> Cc: linux-pwm@vger.kernel.org >> Signed-off-by: Lee Jones > And IPROC_PWM_DUTY_CYCLE_MIN is unused after remove this single use of > the define, if you also remove it you can add: > > Reviewed-by: Florian Fainelli We actually made this same change internally recently but hadn't upstreamed it yet. Tested-by: Scott Branden