Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3837672rwi; Sun, 16 Oct 2022 19:46:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6v0JmhKJz3NtFQV3m2NgyIUEICPE8HS+xpYTqAoHvEO8kQyPWW1Tricr0qL9F5zT0Co97T X-Received: by 2002:a63:4f4f:0:b0:434:b9db:b9f with SMTP id p15-20020a634f4f000000b00434b9db0b9fmr8932868pgl.438.1665974814941; Sun, 16 Oct 2022 19:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665974814; cv=none; d=google.com; s=arc-20160816; b=0biOZ/X1gid04RXaxOdUkuI0CMXOFLTnBtC/zkHYYt89SW1qUVoQXHUs9qP0uTPbl6 61aiJPXsygqyTP4erj/TYkQuoERMNO9q3kuJB3fiIWcJMxYIvVy35KKS2XIHiZZEXS4W sFvBerNK9P8eHT0tyZoTK/cEd40lxJEUspW3Rez94XISUdtgcxU/zwoorUmJwonv8Z6t fMDwZH4nlm7VDmB2DwQcYyq8Crnpjqekvpj8EWFlA+QrhvXP7lAdKtrs6IMSeL7HuOEx zksZZsxL8B7a/3re1yDsOhDc/zZQKn+mydRuiJF+gBVLduelRmE2rXR+JzttZwXsALss HTrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature :wdcironportexception:ironport-sdr:ironport-sdr:dkim-signature; bh=u2cxxHBedz+4Qw9gbxLD/IuuqctUOFdrLHxUDavr82w=; b=RnzY6G0Ph9Mbi1yDegarq0KrKvLxaypZ+LGeFO0v6QSVormtWVwcSGKt1UJa/8Lxw1 nvl/p7pURLJSoGue9uVoggsvRK2QXJEKytOR6RMZ9SAS4hFYvzMrZPeKeLbCOO0emNTw 7p1+RpW+aaQB4OFp9/jYS6is5TVH0cfXGbDFEbH1qc/2fuHg6Spu2gNbpiBEYTQJRb7T 9Z9DMNwKNDXh9yHYLZSupI2wdLIgY8v7sX88GY78mvs9HoqNnteKca3eIGtgXdj6QxDF m9P9EJdnQYVTJypuxa71qVHelCkWqQcfSb+wgbuw+pmcL8PIXgFpv8BLScX4FTt1NSqM J03A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=bvncR5eH; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=q9s6mtIT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a17090ab90600b001fd9be4fb6csi15192120pjr.39.2022.10.16.19.46.43; Sun, 16 Oct 2022 19:46:54 -0700 (PDT) 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=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=bvncR5eH; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b=q9s6mtIT; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=opensource.wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231244AbiJQCnL (ORCPT + 99 others); Sun, 16 Oct 2022 22:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231262AbiJQCnG (ORCPT ); Sun, 16 Oct 2022 22:43:06 -0400 Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 139CF46865 for ; Sun, 16 Oct 2022 19:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1665974584; x=1697510584; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=7p1TMFScOznFktsWCSCUifkFaarpweirabw7CA2YiUQ=; b=bvncR5eH0Ab0dvoH5v7ZqNeiWep7qne3tO5XcmwFH8AZ2yv9SEy1KfJm GuRNbAn+45d7wg6MocsiC3NZaKpSMRMe+9DiLV5ZH9fEIckvbexYAezTh FTWozNgJY1ctw+5LvlfGH8dm1pEY39NHbyTtSoqoMZCtohrXN9qfpY5tt LTcRuHicbyzuVS/eX2VrgnCrR8kzgoIoAhPIdxcGUL6ztkDKMaa4bc0/+ Hco7eLp16lGddb2W/BTUIGggZrwJVN5eoOGNnFXkItQ42OqNWlaU2K5lG LnCOS3DlArZ8IHUQS6x/f8LUhYgK38jRxFq6GxKAHqNwol7QzuD4ZZEmW A==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214363091" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 17 Oct 2022 10:43:03 +0800 IronPort-SDR: lW4KeUyAieZpvknA4tfW+gCYiqBbS2pEvU8w5Kb4Ni9gO3ZZTyyrb/OjZk6A85bHTlu0CCfdjz dlNzeRbzF1DDQr1ysx6atsvvACCRXxcmFF5/MP+fp2yXXzs9kCBWPCtKL/10MEWkZicmC3Fd+d gzoHfT/TBQ+BoaqBKyjHknYgHr7CX64vXH611fP4FiMgy3a2NUOH/WWpxDyox6eeynzIuGkXJ1 chfnxzEF3Zx1wL5/H1bmUEB5m2xERJvqWJ/cvZABz+bXB98G2Ov1IXccTcbACvepJzU339iDJD swmAP6DfzKHHXqv2PTqoWIrj Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 19:02:37 -0700 IronPort-SDR: FaHCLoLG+ZZvVHIfogvJTdSoTVGzfugOzoGu0NfnTr5s9Ys7f8jjgA8Qn5kHfk9fw7W1XShc9T WTg9cvaapWFxSXUTyahlYeBULKWOI4U8cjjJ7C92ohGKI2lcKS/Xudp6yaPE9NB+VuLeHo2G10 k/Tb2xdLZvT5syUE7nCRlMvr4Wk05seQFNdcuz+A4cTl7yPckD+mlx3CdS6FZdCdLczAv535xB cZ3SFycOxpFTI+GeCvn3oXRRj3Sq3JmG/rZ2UYboYx8OV/zLgaETzINJyodln5fGPG4GDecEs1 SLA= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 19:43:04 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4MrLrl3Sqgz1RwqL for ; Sun, 16 Oct 2022 19:43:03 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:content-type :in-reply-to:organization:from:references:to:content-language :subject:user-agent:mime-version:date:message-id; s=dkim; t= 1665974583; x=1668566584; bh=7p1TMFScOznFktsWCSCUifkFaarpweirabw 7CA2YiUQ=; b=q9s6mtITpeENVR1Es+hLT9EVSyoE8GVWa1lLojU1AY6YjZHprwo siaChWviaTVETRNhu3FoVJDauevBgKVhuSA5Jbedm0YsGYo9XksXPVmdkyE2zOvf 7ErF1bDD4ubWVxzoClIhsCa+74XU3J9hM9nWL8FZoWC7pKVIojIimnJTNASj/lHS MyUN/Q+J+yf/KtJSWowBziP7eU27z/GoeAeqs5GXcxcTzhxUENB73Y35ek/VxQI7 tIO4GufonIBnMwVVMdtiavMTv5bBaFNmPAA7BuaRk2CgealpXcJPGwSZMAkwG/Gl PDO7f4fJ28qMRnB4SIxNE6Ppnq8MPMNypjQ== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bVBMyRe-V5SL for ; Sun, 16 Oct 2022 19:43:03 -0700 (PDT) Received: from [10.225.163.121] (unknown [10.225.163.121]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MrLrk3Lh3z1RvLy; Sun, 16 Oct 2022 19:43:02 -0700 (PDT) Message-ID: <0368fdce-436d-4a19-1fec-fdd2f3038eca@opensource.wdc.com> Date: Mon, 17 Oct 2022 11:43:01 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH] ata: pata_mpc52xx: Replace NO_IRQ by 0 Content-Language: en-US To: Christophe Leroy , Sergey Shtylyov Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org References: From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 On 10/6/22 14:17, Christophe Leroy wrote: > NO_IRQ is used to check the return of irq_of_parse_and_map(). > > On some architecture NO_IRQ is 0, on other architectures it is -1. > > irq_of_parse_and_map() returns 0 on error, independent of NO_IRQ. > > So use 0 instead of using NO_IRQ. > > Signed-off-by: Christophe Leroy > --- > drivers/ata/pata_mpc52xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c > index 6559b606736d..3ebd6522a1fd 100644 > --- a/drivers/ata/pata_mpc52xx.c > +++ b/drivers/ata/pata_mpc52xx.c > @@ -731,7 +731,7 @@ static int mpc52xx_ata_probe(struct platform_device *op) > udma_mask = ATA_UDMA2 & ((1 << (*prop + 1)) - 1); > > ata_irq = irq_of_parse_and_map(op->dev.of_node, 0); > - if (ata_irq == NO_IRQ) { > + if (!ata_irq) { > dev_err(&op->dev, "error mapping irq\n"); > return -EINVAL; > } Applied to for-6.2. Thanks ! -- Damien Le Moal Western Digital Research