Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2194523pxb; Fri, 8 Oct 2021 02:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg6IP50uKqah9E0u4K2Th9pd4rp7KVYXH6RrIRgjm6HtSQUdeVpAQPEFFcur0sKA/tXNbU X-Received: by 2002:aa7:ccc1:: with SMTP id y1mr13714378edt.177.1633687026699; Fri, 08 Oct 2021 02:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633687026; cv=none; d=google.com; s=arc-20160816; b=hFzFAFBSEl63ZBKD33QW6v5qm1kDsNLghgRABZFv3EDqhOme/6fA6xJsbWja/M7UIF NuTMDnslfD7xWuIcMbIv91YhqZO8pDfAf96fzw1FcPB166xKghUAtJa3FvuFAiaNuotq kYwKI1Jta9Y3gBe6Y+Hye7kzcAkL1y8ekNcnSS0aBjj+d5uiEzrDIBf8eqRoWek+GUxm 8geY3qKj1XijaJf0YoI5tWsg4m1sF208D1g/pG1e7N+/j4RURMlk8ugFzaudPwAe7KsS u4z1aiBlY2jqvIOTldff/XfVWvC+yvwgl53y9yVc29m3M2/If1TqDyALZNlVejWfsK3Q 4+7g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=uj9+OxfyZUIYBVS3coN0oP8CwB3d5MCS18cjbvWyJdY=; b=EN7J2ZM4yonvIgff2HkdGA6taC5TrlqHLfY+xnm53tq3Sz9pR6LqG/ol3sh3DrvbMG XmiRqF6QtnMsslcwPDt2/+AnpNZ1rXxIvoWnAyXzUgJEcjdk7aOfPXn18HweTuRZ/YlI A0KRCIQHFE2F7kpcRKu3dPlcjfx+jI64dw7DTUVLCtzobg4aKywTyaUbv4QBKo+ufrql lLy/AqElWKYK9luUlKuOmItEgrXDas8p7aaYNjZd9JlEA8We5fR4+SCjbIbroigMhJnJ EEnQ9hPmZVsHmJnDqPMomAPevgtMsM7ATvwHM1PngrONMk8w2IalnpH1zHPZO0G5zF84 bbGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GBeqpTAj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d27si2671359ejd.439.2021.10.08.02.56.43; Fri, 08 Oct 2021 02:57:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GBeqpTAj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238675AbhJHJzL (ORCPT + 99 others); Fri, 8 Oct 2021 05:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229869AbhJHJzK (ORCPT ); Fri, 8 Oct 2021 05:55:10 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAD30C061570; Fri, 8 Oct 2021 02:53:14 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id r18so28018991wrg.6; Fri, 08 Oct 2021 02:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uj9+OxfyZUIYBVS3coN0oP8CwB3d5MCS18cjbvWyJdY=; b=GBeqpTAjEQSxGx0TjU9ypgASF+ct1wnX9YFTj/N5nOPvBogbGRd4P0Zxf+NSRk6+DU LTIJxpp3+oQ2y2i8lah9hUuieF6SLyVnxFVEqRCxNCKVmOH9+BRFv85qj5KlvJ3Bw2iV edk251OprIdUsJpx1g25RMyW73W7TB8IQUwoxRdqtnCdE/JR4WJIasfvBQ/VJRN1QdIU bHFJ9vcc/r7BtgyzTLOeu4dNM49WVpJ8G/J+gHr+tI2hV952iXteEviE1koke2d79N6Z nAhb5ILnQ1gbjKwNhGD7CseaaO58MPplf1yh/eNrSrpAqe89D227MchZj7t1AJDeB17W GHAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uj9+OxfyZUIYBVS3coN0oP8CwB3d5MCS18cjbvWyJdY=; b=xmuvkXtxI3O4g5hL30nGai6kejxpzKQV8GjoPAIsp5oAu/E2oavHnwovAgiUDvCl8q +MdyIuGSa3ORYx/D4sb0i6z9Y4slXx9AcoCZiEsaKUlzeJy2YVqkP2QuBl9ZsBh2clm6 YPW2T5iRS8bF2FJqG5Xgqa38+1LoB4Z6IuqfqyKJLRrdRtZzMbFp0B9g4wDsYlsRGe16 6AoU8N7VX3CdnQlSfsEZVTjmFMvRw9J+G23uGy/wzrR+TVHBHhPiDZ5TJ7gLw/K7hj5j FpCtqRMz10ZM/x3X4xQP+kCsGwGQGo15mVthBSI2UyuLQGkjIXAZTvydyCJpS+9etPtm 4ePA== X-Gm-Message-State: AOAM531KuBTswsh67o27Gk8kQnNPWUfM4O8Gmlf0i3Tr3p09cb2wfRvt /HEksievedmjbZa27BRui2OgycXdVtE= X-Received: by 2002:a1c:a401:: with SMTP id n1mr2357130wme.162.1633686793204; Fri, 08 Oct 2021 02:53:13 -0700 (PDT) Received: from localhost.localdomain (252.red-83-54-181.dynamicip.rima-tde.net. [83.54.181.252]) by smtp.gmail.com with ESMTPSA id z8sm707670wrq.16.2021.10.08.02.53.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Oct 2021 02:53:12 -0700 (PDT) From: Sergio Paracuellos To: linux-mips@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, Thomas Bogendoerfer , Stephen Rothwell Subject: [PATCH] MIPS: asm: pci: define arch-specific 'pci_remap_iospace()' dependent on 'CONFIG_PCI_DRIVERS_GENERIC' Date: Fri, 8 Oct 2021 11:53:11 +0200 Message-Id: <20211008095311.26475-1-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some MIPS defconfigs that don't define 'CONFIG_PCI_DRIVERS_GENERIC' but define 'CONFIG_PCI_DRIVERS_LEGACY' or none of them, can fail when they are built since definition for 'pci_remap_iospace' is being done in include file 'arch/mips/include/asm/pci.h' and the specific function implemented in 'arch/mips/pci/pci-generic.c'. MIPS PCI drivers that don't use generic PCI core APIs don't really need 'pci_remap_iospace' to be defined at all. Hence, change definition for 'pci_remap_iospace' to be dependent on the preprocessor 'CONFIG_PCI_DRIVERS_GENERIC' definition to avoid possible build problems. CC: Thomas Bogendoerfer Fixes: 9f76779f2418 ("MIPS: implement architecture-specific 'pci_remap_iospace()'") Reported-by: Stephen Rothwell Signed-off-by: Sergio Paracuellos --- Hi Greg, Thomas, Stephen, I guess this should also go through the staging-tree. Thanks in advance for your time. Best regards, Sergio Paracuellos arch/mips/include/asm/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/include/asm/pci.h b/arch/mips/include/asm/pci.h index 35270984a5f0..421231f55935 100644 --- a/arch/mips/include/asm/pci.h +++ b/arch/mips/include/asm/pci.h @@ -20,7 +20,9 @@ #include #include +#ifdef CONFIG_PCI_DRIVERS_GENERIC #define pci_remap_iospace pci_remap_iospace +#endif #ifdef CONFIG_PCI_DRIVERS_LEGACY -- 2.33.0