Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp260029pxb; Sat, 10 Apr 2021 01:52:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzixr5BGAfcRi1j5PhwkVHGY31Uy8Cc5uIra0ieW/+YbtY5eSaivkclFYPPxL/hAKoF91O2 X-Received: by 2002:aa7:9f0c:0:b029:241:d69c:6b6a with SMTP id g12-20020aa79f0c0000b0290241d69c6b6amr15615095pfr.37.1618044776218; Sat, 10 Apr 2021 01:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618044776; cv=none; d=google.com; s=arc-20160816; b=nrxK4kUP6iddOGbWGxkSKSOLQLV7/5x1I4bfeJVZifiV1ekDCb2i0N0M+wpkPGHdZq w4DTLITgYNaPLuJWc6NxYeEEdSp0/x24YCnBpF8Jx/AfksfigwFR7muwhsGlyi11FYZM 1gOdMvsTBzOnvV6zdvhdiL6as7E05qNh1aNrvJsZD54DMqVf+AI9R83md9+3Cu4CHOv2 UOSqnYmnxgpG3D88SBcyqrBuOnSTeDlmu55wry7GVI9pghOuEdB2J2t5kMXq819i8gzG w5lNLQ5zJmHL9AOlH7jf0oCS7jYXSJ/NvtXLamojMmnzSGcx4rpvp+7WN1agpyNmYtSH F5Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=4svQIHaWyonus6NC9Wt6UCIb/Wkk+iEs+l9TOzqnCus=; b=NeZM2AEeJQbLn3FZwGqtn8IKgbjWiCHThQrJWtF/PCiJPWc76imUgOxZDblK4p7rja CqGyywgFb53yeb55f9qRlU4l/jOoNwc134VyM+WwOOkDcmhIXufmHQjHKmaJ2JU+KM7Y OwF0uR55hUIBbDRfCdsrNT2pqHSZOS1Mv0BIU/JuopuWDQpE0NOfU8/Dri5iWGbNyHFX 02ttZ9ZTX7Jr1K7AmJY879gQykfomyU+0Hb1yTPf6g59Aku9SiNN8r+rmLhRbawmjfmf hsB4T5KhgZyUGetVZjIoFdlk0g8XPZ4M5Qy+vFyfSwTQVyoPDTWdK69Aaw90GwRraSGB phqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oo8UIIim; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si5840901pjv.41.2021.04.10.01.52.42; Sat, 10 Apr 2021 01:52:56 -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=@gmail.com header.s=20161025 header.b=oo8UIIim; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbhDJIw1 (ORCPT + 99 others); Sat, 10 Apr 2021 04:52:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhDJIw0 (ORCPT ); Sat, 10 Apr 2021 04:52:26 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60827C061762; Sat, 10 Apr 2021 01:52:12 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id b4so13402938lfi.6; Sat, 10 Apr 2021 01:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4svQIHaWyonus6NC9Wt6UCIb/Wkk+iEs+l9TOzqnCus=; b=oo8UIIim2xX9Ykzn12egb1Q5OuDF5+RMeJ/pNLTiGQ3lmNhLpVcr4qIDxU2IrRVBzh zfwXRKUUhD9PQcZ+rvtkmoKaC+J+pC1SuYWmSlOF2Z7k9kcXlH9uE3Q+Zhk4gCv1++V/ EzRpb5tLY5tIW91EDLkQXQvkksFGmdsoKSY4UC6bllpuIutvFKDJxRoo0dsd7Lobj3oT My6bbwzh0bDXhBE8LF7t8E6FJnokffka3OiL/mZ2pRHY/kbXqP+21xnKtW0li2qli5iJ wuSj2FdHnXq0xFh06nLR2JXXFjp+TOqZZBnIchDr8hjrYXFHhGd/Hct3o7N6CV9LTv5V xf0w== 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:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=4svQIHaWyonus6NC9Wt6UCIb/Wkk+iEs+l9TOzqnCus=; b=Ox29weTYOVxOM+wUq0Hl5PmVRu830dB89t07ziqKZ4O9q4gqHCaEVEjgWsLeYhj0nd YVlMntfIYXTdbkra+vYs2CbaZyEwVXyVMmkeD3sQdD/mmp+i4pMzLFxnEotV0JY69ldP wAovrYf6oj4L4wJHYVyIlBKoBeNa8ss9JZxitI3U8wJYL4fTewvi71srlQz4VPTNmwSi 9/L2L05Q9uaCQBoy9CKHsmYwNAkJfLXBTAiCQZWwfgzaxqdWyYG31NObWUQv6yADvctB Ouqixc97AStovSdbzD8pnTGa87vlp6tLSfbA2Iz+W+NmaHn+tNagLfrKrVvN4tz0WhBR i+Zw== X-Gm-Message-State: AOAM53012JPJNsPhMYBr5ddp7TVvXWT2Pnds1NJsJD3rbGg/27/W1eHY 4Q2FPUBjo2gIe5ndk0qGk6ah2llJnqY= X-Received: by 2002:a19:e206:: with SMTP id z6mr1375798lfg.100.1618044730773; Sat, 10 Apr 2021 01:52:10 -0700 (PDT) Received: from [192.168.1.100] ([178.176.75.45]) by smtp.gmail.com with ESMTPSA id m3sm897123lfo.190.2021.04.10.01.52.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Apr 2021 01:52:10 -0700 (PDT) Subject: Re: [PATCH v1] pata_ipx4xx_cf: Fix unsigned comparison with less than zero To: angkery , axboe@kernel.dk Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Junlin Yang References: <20210409234242.1979-1-angkery@163.com> From: Sergei Shtylyov Organization: Brain-dead Software Message-ID: Date: Sat, 10 Apr 2021 11:52:08 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210409234242.1979-1-angkery@163.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.04.2021 2:42, angkery wrote: > From: Junlin Yang > > The return from the call to platform_get_irq() is int, it can be > a negative error code, however this is being assigned to an unsigned > int variable 'irq', so making 'irq' an int, and change the position to > keep the code format. > > Fixes coccicheck warnings: > ./drivers/ata/pata_ixp4xx_cf.c:168:5-8: > WARNING: Unsigned expression compared with zero: irq > 0 > > Signed-off-by: Junlin Yang > --- > changes in v1: > update the commit information. Not seeing what's updated, and anwyways it should read irq < 0, else it doesn't make sense... [...] MBR, Sergei