Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp179053imw; Fri, 8 Jul 2022 00:24:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vTWjblVoNdDZH/5153CoUiBF+d6BxbCnkugelbfBSbFKl6bbzMSG0ax016+WbBDxeeAZoG X-Received: by 2002:aa7:c657:0:b0:43a:4a68:bcc5 with SMTP id z23-20020aa7c657000000b0043a4a68bcc5mr2937501edr.337.1657265044826; Fri, 08 Jul 2022 00:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657265044; cv=none; d=google.com; s=arc-20160816; b=d0Hi39WTkC35L5wRoiG6bywB1wCNTSG2qtdh/Nj1MTbyAQ46r7OGPtgpCrEhDYWNAv FRklN6puEIqEOqO4Ai5QIrza5x7KeXoDn1a4dn3hNEab6CBWePsxXmRVL3vg9dU556ge ipnFPZNWnC9P9Ue/VtWrlBVtqWJZVAIu9mp4pK9eE1qejzdSGqPBpvQ2my0rfddU0Xbj W6f2hH/EE229FcD86Sf7fpwdaX7PFqXDEKYaOPn+lwDDEMPsVLoBaC3KGtn4iZv2wAwR sfAj9I2qjyDd31hdaRJg38qFLsvbJ7hFiZyO+K48RxMPUuEn4ZR1LYWzUFonFDtg0RL8 jXMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=GvvRMmXe/W/yHzxfWik0njW5paFc8q2KyxzF/KWRKkg=; b=bJ7Skot5nhrnaq8pvB1rcM3e/SePbsngcTig3GeU8Df5LWMrhhbT0bMVw3VHJ03RQK gf9/L8vLfUrV87kOiG3D1dks7/wimnBfQChlaIxUPF2DT8LQiIUREz2LGtHpFTqO0YWZ kj40y9HvUryA8+1FiiNpo15Mm9s6rYirDzc8MVKAhrAvJuRRSp3O58UpoiB+KROVrOzv aYPUqJDNfb6q2gv1yN/JTIZ7qUV0wIVZpn3eINcxqRfZ6aRyMdP0bMOixjHIJxAjNN0w xb0k8G9gEkB188nW43G2UEFTxrHnTL3n30oA6NKbU1FC68UNcpS989m6/3DobRaQMYeM DqGQ== 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 du20-20020a17090772d400b0072a6be70d30si555767ejc.385.2022.07.08.00.23.39; Fri, 08 Jul 2022 00:24:04 -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 S237369AbiGHHL6 (ORCPT + 99 others); Fri, 8 Jul 2022 03:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236525AbiGHHLy (ORCPT ); Fri, 8 Jul 2022 03:11:54 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD9D7735A0; Fri, 8 Jul 2022 00:11:53 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4LfPbP33V6z9tKy; Fri, 8 Jul 2022 09:11:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rA1tWbRo3HMk; Fri, 8 Jul 2022 09:11:45 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4LfPbK6rPnz9tHw; Fri, 8 Jul 2022 09:11:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id CEA818B7A9; Fri, 8 Jul 2022 09:11:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id afkSoB4pgl9z; Fri, 8 Jul 2022 09:11:41 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.233.202]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 76E4B8B79F; Fri, 8 Jul 2022 09:11:41 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (localhost [127.0.0.1]) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.16.1) with ESMTPS id 2687BSxD603399 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 8 Jul 2022 09:11:28 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 2687BSh6603398; Fri, 8 Jul 2022 09:11:28 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Michael Ellerman , Nicholas Piggin , deller@gmx.de, manoj@linux.ibm.com, mrochs@linux.ibm.com, ukrishn@linux.ibm.com, jejb@linux.ibm.com, martin.petersen@oracle.com, tzimmermann@suse.de Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-scsi@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [PATCH v3 2/4] scsi: cxlflash: Include missing linux/irqdomain.h Date: Fri, 8 Jul 2022 09:11:06 +0200 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1657264266; l=1730; s=20211009; h=from:subject:message-id; bh=48X8ZLFinvI6xSHRLAcSqxxzVN1Ahbtv4N3knADh6qU=; b=YU4h1peK3Lo6jA0K/Z7WhkAnSK9Cu6oz10qTglFNiF9Q9RaG18x5Vk4CCG1tdqhESa+HLbWUbqCN dCVKoT/aDiYSnVJbr3snkdDjQhvZGW03ftlLugoYxjuh0RQJxCWq X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 powerpc's asm/prom.h brings some headers that it doesn't need itself. Once those headers are removed from asm/prom.h, the following errors occur: CC [M] drivers/scsi/cxlflash/ocxl_hw.o drivers/scsi/cxlflash/ocxl_hw.c: In function 'afu_map_irq': drivers/scsi/cxlflash/ocxl_hw.c:195:16: error: implicit declaration of function 'irq_create_mapping' [-Werror=implicit-function-declaration] 195 | virq = irq_create_mapping(NULL, irq->hwirq); | ^~~~~~~~~~~~~~~~~~ drivers/scsi/cxlflash/ocxl_hw.c:222:9: error: implicit declaration of function 'irq_dispose_mapping' [-Werror=implicit-function-declaration] 222 | irq_dispose_mapping(virq); | ^~~~~~~~~~~~~~~~~~~ drivers/scsi/cxlflash/ocxl_hw.c: In function 'afu_unmap_irq': drivers/scsi/cxlflash/ocxl_hw.c:264:13: error: implicit declaration of function 'irq_find_mapping'; did you mean 'is_cow_mapping'? [-Werror=implicit-function-declaration] 264 | if (irq_find_mapping(NULL, irq->hwirq)) { | ^~~~~~~~~~~~~~~~ | is_cow_mapping cc1: some warnings being treated as errors Fix it by including linux/irqdomain.h Signed-off-by: Christophe Leroy --- drivers/scsi/cxlflash/ocxl_hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/cxlflash/ocxl_hw.c b/drivers/scsi/cxlflash/ocxl_hw.c index 244fc27215dc..631eda2d467e 100644 --- a/drivers/scsi/cxlflash/ocxl_hw.c +++ b/drivers/scsi/cxlflash/ocxl_hw.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include -- 2.36.1