Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp531293iol; Sat, 11 Jun 2022 10:25:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2FayuB480V3sZ1MDvmRmsB9neVFSWHSo6cgusgXEPVVXHCuZyktRgPzAF4uEqjKP6U3Zo X-Received: by 2002:a17:90a:e7c5:b0:1e3:3cf1:6325 with SMTP id kb5-20020a17090ae7c500b001e33cf16325mr6080042pjb.178.1654968318550; Sat, 11 Jun 2022 10:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654968318; cv=none; d=google.com; s=arc-20160816; b=J2dFDSl8d3yyIpXk5ejqrAxs5qvOD5rFMPFCGkWPBFw4jQxbTHV8YjYBmdJn3ORog9 9PVN4S/nq2Vg5AwIxXYGGHvc8O4Zy/R/kNianW0yPURleAlbknSK+EhfVFEdduaF+3Zy i5D79R1BhjVDTDuY6yrPbZxoDuHq9OlInpBFbo5MSCsFJQHf4OhAYVm+ii9PvH/jLhf4 gCDvQHAXqv7wQ3BEWZYIZztZBbZIHE+oLoJA1Rn9bI9vRuaIbjn6IBA0o5FWlzscPK17 UowVzhFKAV9j03richdDVvuLD9C5YxC8V4k/mybvcpVKGITzTkg2RByE3uAbx40FzqCE 9sww== 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=EkbsfEiAP8drpseICrkaP+BZLdyCEBENCTax6m3IYvI=; b=hmS3VqO/HGtpgmNy1ioA6Q0x4wcFZlXsC+QNJxSAP+YuphRq5nCHiu35h8m7QVq4XQ C9+Zy54hAR8VYz6rmF8fj8QC6YnbuijCWrxyz9a1dlr24MiLn9zUxvFgINdC/oJUc2iW aE/GNPPC0TeyyH2M6uq6yATrND2nKDHN8W1QvtGsYzagtaUFmqEr7223CQHkQjnriWtX WCR4lauLtk8dWqUCgwb6QfJuedCA8GbYFkZdIZ9Tk7WhqAp2r7Sqw26YoAUjSRxnrU5z gMU7Zzn3997C3UxU4mxpmS88Qvc+tY6+xpzpKd40GpFp4GMyELTsM045QIacCkwhOr1H ZpmA== 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 a1-20020a056a000c8100b004fa3a8e005dsi3398436pfv.276.2022.06.11.10.25.07; Sat, 11 Jun 2022 10:25:18 -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 S237356AbiFKQvo (ORCPT + 99 others); Sat, 11 Jun 2022 12:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236868AbiFKQvj (ORCPT ); Sat, 11 Jun 2022 12:51:39 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FDCA644CE; Sat, 11 Jun 2022 09:51:38 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4LL3kp2m7mz9tS8; Sat, 11 Jun 2022 18:51:30 +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 e77kAmNzPPzI; Sat, 11 Jun 2022 18:51:30 +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 4LL3kl4SXYz9tS6; Sat, 11 Jun 2022 18:51:27 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 7AC1B8B783; Sat, 11 Jun 2022 18:51:27 +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 qK8-bb-lMSX0; Sat, 11 Jun 2022 18:51:27 +0200 (CEST) Received: from PO20335.IDSI0.si.c-s.fr (unknown [192.168.6.192]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 038FC8B77D; Sat, 11 Jun 2022 18:51:26 +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 25BGpDjx741172 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 11 Jun 2022 18:51:13 +0200 Received: (from chleroy@localhost) by PO20335.IDSI0.si.c-s.fr (8.17.1/8.17.1/Submit) id 25BGpDmc741171; Sat, 11 Jun 2022 18:51:13 +0200 X-Authentication-Warning: PO20335.IDSI0.si.c-s.fr: chleroy set sender to christophe.leroy@csgroup.eu using -f From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , 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 2/4] scsi: cxlflash: Include missing linux/irqdomain.h Date: Sat, 11 Jun 2022 18:50:58 +0200 Message-Id: <96e4cebb9f89660bf675cd1e5bf64cf768c0e6dc.1654966253.git.christophe.leroy@csgroup.eu> X-Mailer: git-send-email 2.35.3 In-Reply-To: References: MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1654966257; l=1730; s=20211009; h=from:subject:message-id; bh=glmmLkFUWKcFwMf3WNV7HqMCb0JAThkOWfrVWSfs2s0=; b=NI0seT4vXO19PwvZEf7YjuHZEAl9XjLEq9W3Qz/Vkxre0gC8NEpZDVtb1VWxKHHWiPv9WihqH755 y5rrUMutDRxxZhmCt1B9gCk9RzA1yquhu4Cfx00zbOJeXFIQoYJL 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.35.3