Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp463675rwb; Wed, 5 Oct 2022 22:59:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6N/eI9Aslu7rnXZRYTfn0dPX1Ttiq8suuG7sNZyeHu5YJE56DbBNSZYbh/dj3Rv0y+VDaG X-Received: by 2002:a17:907:728f:b0:78c:336b:d8c0 with SMTP id dt15-20020a170907728f00b0078c336bd8c0mr2549159ejc.429.1665035993527; Wed, 05 Oct 2022 22:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665035993; cv=none; d=google.com; s=arc-20160816; b=PuuLKL5smqjesdxXylVY8zPfekEqtqNw8ndKg4wYpR/wvyuF4SmpQzzxgxNbotfLrt 16eEVClD3uQiHPDjg6xVCmAIOYw4y/mqebqb7ARfLUJfsvRxN2bYP2+AJrtS3mojgAHQ tPipt2UvM0WveW2SUbySOpdl0EAZzL0OP5J9UvVitZrwyzfUQ09qZLh46WgOGnA5DHUF IVgqBhxeXQk6HQ9jvRBzA6N8see+1m92s5QfUxmgG/x7pki7SIErBXO2KreTwNzZWxf+ 5mYcOtsVE0xW1ZcN72r1Fv3xXNBti43fvpH867Mm5pyyhNG2ldFaHuK74wc+UBZaHij3 xocg== 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=6Ip5FbqEZhY2/6uRy+4XyP6kA85kzkH5L01OgLO8iNs=; b=PYL3yi7zx/G5Dvpn8dCrG4orhPXTu3NgQYg3LBArkVhP/p97fEVZQTG73drzVEKOpz IsKHf/l6CBgqh8WBoE5WnwLklEv0/8y4Z4T/7mdZfsWEzFvlnUcdqQyIj+eoBkm9+ilx sebBWlsSMgxTTkVwGnxwMDrPCqMgf8M1XQceIxnVnA8/arLL/tGqfiVX6oybx078eKFU zuLe0BlKQkjkd14uV4HnU4fdsclinInhyd5mwi3x3Dp7QhR0ayhKvYE0VvWDTlpUVDcF orOs3wWdhqqUSGIM14VEj8oMdd9tpKRdPjWcAK6kPzf/6j+8pae8Kr2cbr/or6OA4u3I faag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=SZ8Z+05t; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b="PDlEqQ/z"; 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 h2-20020a056402280200b0045938ab7129si10003835ede.330.2022.10.05.22.59.14; Wed, 05 Oct 2022 22:59:53 -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=SZ8Z+05t; dkim=pass header.i=@opensource.wdc.com header.s=dkim header.b="PDlEqQ/z"; 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 S230205AbiJFFqX (ORCPT + 99 others); Thu, 6 Oct 2022 01:46:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbiJFFqR (ORCPT ); Thu, 6 Oct 2022 01:46:17 -0400 Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B1489CF4 for ; Wed, 5 Oct 2022 22:46:11 -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=1665035171; x=1696571171; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Yp/8wvTHZ3BOX6ZZhXm6bW9O1sqoUyHC8hQp3/BcelI=; b=SZ8Z+05t1I7QaM/8cBZcbnMRqd5VzaK32yVyDPriWnL6b17YfHwpmIvc deADxQdSZbJgh2kFxsBOdZ7jGe1q5MfR3pgH7dbwxEf2v+Cj9qVImyfWL /o9k3cWC1cjdtWu9lH/R8c2szm1aLbAFXt4w41jGC/a8G+Vzoc8Z/6pWg 982AV2NMMxWhxGRLUwb2gXl/MZ3zXTUIPM3Ba5QiW4ytjY0mq9z5AzNsg T2urby0z+Ywpw7AdlSwBmpe20j2DsOr+rNPbKy5dg6c1thX7JE56vgW5b 85qejpKGyM/MuVHC20ucSmaB6QCMB3QkuEendnULuaPEVYarbFOHt1liH A==; X-IronPort-AV: E=Sophos;i="5.95,163,1661788800"; d="scan'208";a="213109327" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 06 Oct 2022 13:46:04 +0800 IronPort-SDR: 66vzhfAK91bAwIK1s/l6SX6WXd9uoqIcs+zu3/tA5OGRK4lwHe/hOStxt9GN7qGbFo+dwDqSDF knGMUedWtS7eQIGEHul8LL29OuwDCZX1gqMdiWb1wwM0v6mlqiRq/0xi1Vb91hoWllQOwssgUk HfhfxcI7yWdGOyiQDoLBkEm5XuQ67UJfa5MTwdK5zyvbiT5iMRE/Wq/jz+w1thUh4MOaOVj/nT sI3gs1EnJNt+VU5ta84ZDUxk3kuPHUicVyCx4u/kVucdYAiMA7Ah1zrTCfb3wJUH9suRRl4a9i APXjGPO533jNpHq4vQT5YblO Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 05 Oct 2022 22:00:15 -0700 IronPort-SDR: vlAJfu4bLGMwo+Oin2sOWZR+GRkJWfrHRmul5FoIjiC+X90zWP55Mo3L5f1+XFjgbhwgtawivT saERO0Fop1iMBDuESI3wbnyZZu/FbNGaW39kp7m0ZhnaxbSagrRoXFtADuuryUDd+Wi+ObmCpu sKRfdDF+2s4yNqu4z+hbA+H+gP6h/if0VFtf9poGezzJ64XsLkYQ3B9K2V3p/3LaEfOO1y7ezO 5Q3IxZ+u6nhFwMgB5iOrT7A48A3s0+zVWq6AAiow3ISmIHYimGXmGjEslnhVIHPYTkmLqINDZL eXg= 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; 05 Oct 2022 22:46: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 4MjgQz51YXz1RwqL for ; Wed, 5 Oct 2022 22:46: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= 1665035161; x=1667627162; bh=Yp/8wvTHZ3BOX6ZZhXm6bW9O1sqoUyHC8hQ p3/BcelI=; b=PDlEqQ/zg58P2ppafOSiKOdt3GeaV+8AQav+TQOIvA8qmPLH01x bRXx8tFsg7uOhKGYyMdn9RS8yr3WRgmqvhmvL/tFhNsvFd1w2JNxAA1hGth1my2C +si4Lvbu2zHlvNNGgvvJjwgynSDr+82hLvoToOS/E4fBuEFXNgJzWQEnRR/afJfL R+IEzd4/CSdA1z5FSs2GLAzKLkCK9w2dqx2GVmxsLrI0cDuBGu01Gv0INgslvlM3 3dOU2Od6PfJo8LI4i5uTirV1eRlU4/UfbcmbVu2La+iuer6lgyP/1+d5VnswdhZu 3WYnwv4WZIXM6KXLSREaSaTFoIDjW3yIKgg== 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 k29wfk365GFX for ; Wed, 5 Oct 2022 22:46:01 -0700 (PDT) Received: from [10.225.163.106] (unknown [10.225.163.106]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MjgQx0G3bz1RvLy; Wed, 5 Oct 2022 22:46:00 -0700 (PDT) Message-ID: <60557988-a5e5-8c81-72f9-c0f3ab9ed573@opensource.wdc.com> Date: Thu, 6 Oct 2022 14:45:59 +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=-5.8 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=unavailable 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 Doesn't this need fixes and cc:stable tags ? > --- > 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; > } -- Damien Le Moal Western Digital Research