Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3127658pxb; Sat, 9 Oct 2021 02:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjnWQmAiAyf4NTyQeN1S+cK24Ie5bq4pIXVE09UtqwOOTZS+sKw6IllEUZqwx7XHU0/yE1 X-Received: by 2002:a17:90b:1a84:: with SMTP id ng4mr17338824pjb.80.1633771805803; Sat, 09 Oct 2021 02:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633771805; cv=none; d=google.com; s=arc-20160816; b=mFLUtPRpqGkKYrYJ0xQSaOkjVXyQXSSeeN5KpCVqCY+vaFgNqkfGiAy81duYDtaUig 3fi/W6NT1cywTvKyR3mkYD4XyF0/bE4BMXfGc5ibxc3Yw3MHti/zktp1+1FwqvE2t8oV ccLfLTImLUwbuC9sCkolJQAyA5LpdXs70a9ohjSNsyPqBNOIvIA2d5yxCxZ3jvLnB993 KNyWpqfPXeHK8Y25ju39SMCMHGWmHHuaXFRfebM1OI1D1tmKulraDh822Cbfj1zuHmUF SuIxeDe++l0uhHV8Q17EWUYRlroQLZ3gv45NCSrw+nFzpvLFK/8IkcSUL0YbmvaeiwIm zNuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oLC/VnDaYUY8fgV3Hp40JKJYdSjqq7NCr8LBM7EfoA4=; b=bDjlXBF33pYCBcWKz1NTeUYagATUVi4+4YAKziwBJPaLRVGrrTwY1O/NU38i5ENaUn DuPikBX6jrdsalSCU/CRCQqLRvsfGNaBBYsRN+4Aw0E4N+uhBAAZKwhbO6egS5m1WEbW Fw4ehVVig7fhJMcs0sKIsOLaCnWDVyAd8E6EhlLD/Xy4dq20SsEp06mVppr9X+IJwd3o nyCMB8W9kjQd3shPXzrU8OvUZxMxCwyOPTrTSXKLBL8EYe9/v8ENCEDgbLdxxfU/DXnH FvmARWDn1luuyhTHC5MplDJmCK0oCQ4eub6Dv24YXxwfp/BLQE+HKrtxCna3Jy6T5qZm zLUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=STFzCygS; 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 u4si2558049pjg.12.2021.10.09.02.29.53; Sat, 09 Oct 2021 02:30:05 -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=STFzCygS; 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 S244353AbhJIJbC (ORCPT + 99 others); Sat, 9 Oct 2021 05:31:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231818AbhJIJbC (ORCPT ); Sat, 9 Oct 2021 05:31:02 -0400 Received: from mail-ua1-x92e.google.com (mail-ua1-x92e.google.com [IPv6:2607:f8b0:4864:20::92e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B7A9C061570; Sat, 9 Oct 2021 02:29:05 -0700 (PDT) Received: by mail-ua1-x92e.google.com with SMTP id q13so8456272uaq.2; Sat, 09 Oct 2021 02:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oLC/VnDaYUY8fgV3Hp40JKJYdSjqq7NCr8LBM7EfoA4=; b=STFzCygS9G3fHBUe+dATTfUZp1n67q09x80weyuah1L170rvvoVGCeO+ugxxrKAN/I 3vFEltznl0ysWFVX6kXnvoO0xJL6tcMDAWRzHC3CWGiQ4MIqezMzJLbOGeNF09XysgPv 32D0rLpSyA1wKxjm75pWNBNyt2l3ReGF3dQSNMyjauGLWKyeSLUCHuIevnCagNEWJZp3 XzgiX46uoFt73AWBR1rNF2Tx7i3Y+aQQ7+rvi5S/IW0mReiKIu74VfDVsJYJp4pT0gXr r1aM7Hgxe8XZy4pjMOqfIUB3mUzdxHhKtosOhwGmRxuuil2TG2K88MPId4NxSwJP/8r0 UI1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oLC/VnDaYUY8fgV3Hp40JKJYdSjqq7NCr8LBM7EfoA4=; b=xKwqmTYZDt1hycVG4Pg+kUKcsOMdVDkdtU+hOR6LH/cWjRAsZGYE6uYLTEXlp62pgA L8L0bbtevniji9s6nhVQxYJnrTgyQ0tpbEgSe2GBb2ga3cZ4O+ByhmjxDV2JvibtQnN6 bezc4b9n2J9gd7oilVh3PD5KlSiHkp1jZAwZA+MpTM1H6KH2OfTKcV/WhLrqZMvuluMT wXlkWJvzy1bIlwJiV6gLo034vLq/6g5YHLaRLzzVXz7byFXqlEhY828Ox5L9oVjxGMTa 4wNHVFsUTWuCv+a/Rcp2BCghU25zJcRCkSFp/8t8WLZx/sR1qxUsXKf7Irk+DKC3Q8xz UUeQ== X-Gm-Message-State: AOAM530KCKSn8PKnuYKbCoyPvFPo1gy50ZPtrMNNZHhYUDSqb7LIxZGX 7pB3zyJnoxUJFzxRfjeVOSLfvO5HeQyL8flWK+PPx05M X-Received: by 2002:ab0:538b:: with SMTP id k11mr7618027uaa.131.1633771744631; Sat, 09 Oct 2021 02:29:04 -0700 (PDT) MIME-Version: 1.0 References: <20211008095311.26475-1-sergio.paracuellos@gmail.com> In-Reply-To: From: Sergio Paracuellos Date: Sat, 9 Oct 2021 11:28:52 +0200 Message-ID: Subject: Re: [PATCH] MIPS: asm: pci: define arch-specific 'pci_remap_iospace()' dependent on 'CONFIG_PCI_DRIVERS_GENERIC' To: Greg KH Cc: "open list:MIPS" , linux-kernel , Linux Next Mailing List , Thomas Bogendoerfer , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 9, 2021 at 10:37 AM Greg KH wrote: > > On Fri, Oct 08, 2021 at 11:53:11AM +0200, Sergio Paracuellos wrote: > > 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. > > Now queued up, thanks! Thanks, Greg! Best regards, Sergio Paracuellos > > greg k-h