Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp608788rwb; Thu, 6 Oct 2022 01:47:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6L6CxgfQR3216pjKugDIg66LH37kzdIlf8oEQEaocsgW4N2UFP65qGjsAxXZLwtVIrCvE8 X-Received: by 2002:a05:6a00:84a:b0:542:4254:17f9 with SMTP id q10-20020a056a00084a00b00542425417f9mr3917190pfk.75.1665046045786; Thu, 06 Oct 2022 01:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665046045; cv=none; d=google.com; s=arc-20160816; b=tVoafWORgdBgkIIkFMsqvcCGRMZ5WyxAQHuUxQWzM9vwPwqXk0Kq235O6vU7nfNny1 2bf6I1syJ5KU0OWsxik5ZCpl83rnjE/Ws3TJhCnH2d+ZgDcwI8L2LTcotW7rxBvLmBrS fKJSE0Wepu8/GG3pNPXSrwcEUBGT2Oq40czQp9NhZYVLBo7Cv+dByYn2W2Q+tf/g25gK s0L8i5pms9rbdLbqLyZRUxg4+O0YXjaaDJISal//FMlL62DLHHNY21+bInpIooBm0tlG BQ6DOhAKtp82fJbDpt5barzPXGw7JSKuCzWXSN0ALbWPfxuyJJHLU3zwMtVW3zHEjkcM vc/w== 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; bh=XtOddv9+W8CWsXPgA0rxuDgQ9mezB9QPOOl1oSYiDGc=; b=ppH2nIRKCYJ/UW2nZFjTddzK3Oo3ABElYSW6TBw+fnhmgYStvH+pZ60zpLZHv4xZWc vF0Vgd+vXsFfEh/j6Mv4rw6DlY4DQHrEYgTKEkuTfAcA5bJEnJfTUqfK0m/Szc1klPJu CfdTqDoiZacP1tetgsnUk5o1I+O1AcsaS7eqiZbjv7/UTC+Ag5ZbplqUxU1O40Q4KlYX N4lju4RN8ajvnVnjmiNcWlmaPZMgGIzvoJPSfFoKijUMLPH3Gho0AjpZebWtCggdYHxb NbRNMi1V6AJbKsb5p4+Cogw8PBcln1AXUJC8ixNfoavwa+9uCV4fbTtoeWGnYmvnTfLM 90yA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 189-20020a6306c6000000b00459c69121fbsi3394479pgg.158.2022.10.06.01.47.10; Thu, 06 Oct 2022 01:47:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbiJFIhe (ORCPT + 99 others); Thu, 6 Oct 2022 04:37:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230280AbiJFIhb (ORCPT ); Thu, 6 Oct 2022 04:37:31 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 608BF95ACA; Thu, 6 Oct 2022 01:37:27 -0700 (PDT) Received: from [192.168.1.103] (178.176.76.174) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Thu, 6 Oct 2022 11:37:17 +0300 Subject: Re: [PATCH] ata: pata_mpc52xx: Replace NO_IRQ by 0 To: Christophe Leroy , Damien Le Moal CC: , References: From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <3a89c963-df7c-8fac-7213-d37c1b04f864@omp.ru> Date: Thu, 6 Oct 2022 11:37:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [178.176.76.174] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 10/06/2022 08:14:42 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 173063 [Oct 05 2022] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 500 500 6cc86d8f5638d79810308830d98d6b6279998c49 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.76.174 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 178.176.76.174 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: 178.176.76.174:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.76.174 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 10/06/2022 08:18:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/6/2022 6:00:00 AM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 Hello! Perhaps s/by/with/ in the subject? On 10/6/22 8:17 AM, 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 Reviewed-by: Sergey Shtylyov [...] MBR, Sergey