Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3102333pxb; Sat, 9 Oct 2021 01:39:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydtwJzg8/meVEZu9WAGtOu8UHUJca/OmaFrsDxzW0vLghjs8umLHLPB8YIhNavbdHswqvN X-Received: by 2002:a05:6402:143b:: with SMTP id c27mr22808086edx.224.1633768764656; Sat, 09 Oct 2021 01:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633768764; cv=none; d=google.com; s=arc-20160816; b=QrqjUInNjWRWCCoTMDGZcrOxXmKjmIHta0SLF9Q/ugmixb2f8ETiINkQ2PyQmJkUMX j2uFQg/OhiM8IMS+viHQaBrsXU/UnpxFPgv4mqYRkD6Op4d87o8RFcEMh3muYpZj9yLe HAJQZTkdZVNYIg15PTU7OwAK+zpleZb2gwtJgBp7Sqc+CF6qskaU70cavkPoVeuFvN10 ZEYB3ClSBxV2t73dB216esiGHmgHhyEdCsP/lDziPvBcbTYDrIBM8IFF1cU5i/+drsKh tG3GYodwv36r7egx3ff8qgm90R74PTYEFis93HG65HCwM0Lnibd1KU2E0ySrj/bCcUBz HgRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WKRjccEHq7PGBSo3SX9Sm6OWFTvo8iIBF1EO+W7hCSo=; b=AQCH5Os9Il9UZ4y08jqvXqE5AD1jbrLjuNhT0ucSf/aNVf/bjKM3VbgJ0pFwsRVBu5 q6F6wbWgnas7vteUvCZlXJJGi4XH5wK+tD2dC5O9FwJ7Kb4PZsGwQQJHHdeT6mxFDayy DPS1JDpI7s9WbDl7IenqxqOVa2RMRSg+OvM5EUngEDiZpzmLwSi8akJO490YwCZ7Wh/S 4b4GpqJSoylUMv11suDLgQSzdRs/EtTgAXb6HUZpYzU/uqGZa4ZxRgDk4WgnWofx8iAs Eon6Bg+o6ZmFrX6GayCleG+P2v8KIehRPIM7ma6xkBWdLcgr2qnFPSqgJZvT4rmz38e4 8Znw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YSrmYNGW; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l10si919213edb.79.2021.10.09.01.38.59; Sat, 09 Oct 2021 01:39:24 -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=@linuxfoundation.org header.s=korg header.b=YSrmYNGW; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231432AbhJIIja (ORCPT + 99 others); Sat, 9 Oct 2021 04:39:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:50820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbhJIIj3 (ORCPT ); Sat, 9 Oct 2021 04:39:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3743D60C51; Sat, 9 Oct 2021 08:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633768652; bh=PEkYwYgugusJNveTHtPM/momyKTuWgG/jV48rZhk2/4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YSrmYNGWsD1p57wGlIBnu2OB41VUpftiPTsua7raYW7D+WeCvnKn5dVa/ShVwi0Mf orFVlc8YGUMTQDETXMU4CACUA5dMyhZKS5rx1orHOw+AQapdSeTl3PMuEWKqWoUFwM 3JEG67nTy0fgTZD/jAPzwuZYc2jOfU94nZ8epaZU= Date: Sat, 9 Oct 2021 10:37:30 +0200 From: Greg KH To: Sergio Paracuellos Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, Thomas Bogendoerfer , Stephen Rothwell Subject: Re: [PATCH] MIPS: asm: pci: define arch-specific 'pci_remap_iospace()' dependent on 'CONFIG_PCI_DRIVERS_GENERIC' Message-ID: References: <20211008095311.26475-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211008095311.26475-1-sergio.paracuellos@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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! greg k-h