Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2265035pxb; Fri, 8 Oct 2021 04:31:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1MJzu3i8wFB71bTeIL8P6p6MkUmqT5yprIUq7YpjcG8dKXk5wzdUd8b+WbMzT9dsZMAZN X-Received: by 2002:a17:903:31cd:b0:134:5b6f:2ff8 with SMTP id v13-20020a17090331cd00b001345b6f2ff8mr8977045ple.46.1633692663991; Fri, 08 Oct 2021 04:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633692663; cv=none; d=google.com; s=arc-20160816; b=iu3uL3dqNaDX/htqDqRLdLOYIK38n4qJSsfDNr3wuZEteOathEFv3At3xAkBndLc/h qGHc+NFdMBPejzP8e9NytPjqv/stTR2IRf21heiQJsmEqy9kd2TpYxesIZP7F4saTVVf o1l+1sIqL3snwNgwx7f21huY8hqcV/7PvNir1FsIRU6E1T0NiYwUONHtZ0SOT2Ww9dta g4ZE3CpEzbkGtleHMftzSRyG2Mm3eIQVBXAi7z/Lt0EMSKhd/Rj+yQX6new57qLgn3ZZ WI56uRUTtbO76hkAThiZ2hvs1P8FdXo2L9z5dubTfzOWtpCDPJAnyrDcoNf0JxtvyKFe KyxQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RFdYY+oIFYZVLvwJ76vAzIuLovdxvpU0OVNkRBW/RgE=; b=RCKLmbxyvV9a1D7DanWhEkL7osTfbthtmzZZUXhrYIHM2NcOwOkBdIECl+delacJIo 0gnzCR6gcH2TYcrrHSm2vZgss4wRc6Zj8mo0KPoVnC7vDnQLbdLNUu3FAKb13LPh9tqD lbdB4KlkHmYf4cPER/ie/qr5OGU/HesidMH/2qOu/UDZEhU1jUYKpiT9WUSS4zAnauC3 lsolAB7MVdwSSegxwt+Q6wdfqzr6+87ypUUOnEbsiKDbewafIb8xdEz816ufiRbrTekC VMS1/mvRN94Fh5ppc3X7WarVLeiFlogIDdgNCnsJwvCwXqAohCt9ReR8TU308dBalfBY IsTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LlLarduM; 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 m6si1701392pfk.312.2021.10.08.04.30.50; Fri, 08 Oct 2021 04:31:03 -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=LlLarduM; 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 S240957AbhJHLbg (ORCPT + 99 others); Fri, 8 Oct 2021 07:31:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:58466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240620AbhJHLa4 (ORCPT ); Fri, 8 Oct 2021 07:30:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9923D61042; Fri, 8 Oct 2021 11:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633692541; bh=DD1/RWx0Jf0U3/++KX4FgO2svGaoEtvE0J5b5DS9k0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LlLarduMhTpAAX6rOEyyUpsBIsVKZk03j48xvZ/GirPBNSmwIzH/VGNv7tpJhPZhe mtBsdsS9LNLyk2LnoacgJQeJl+fRaioj/RbkXNkIuT1CHvFH/4IG36KEfqUlUCzVgl i8jsfhOLaFmvNXlWOC0VFft8yVQD2pLhE8HXQq44= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , David Miller , Linus Torvalds , Sasha Levin Subject: [PATCH 4.9 4/8] sparc64: fix pci_iounmap() when CONFIG_PCI is not set Date: Fri, 8 Oct 2021 13:27:41 +0200 Message-Id: <20211008112714.095856853@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211008112713.941269121@linuxfoundation.org> References: <20211008112713.941269121@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Torvalds [ Upstream commit d8b1e10a2b8efaf71d151aa756052fbf2f3b6d57 ] Guenter reported [1] that the pci_iounmap() changes remain problematic, with sparc64 allnoconfig and tinyconfig still not building due to the header file changes and confusion with the arch-specific pci_iounmap() implementation. I'm pretty convinced that sparc should just use GENERIC_IOMAP instead of doing its own thing, since it turns out that the sparc64 version of pci_iounmap() is somewhat buggy (see [2]). But in the meantime, this just fixes the build by avoiding the trivial re-definition of the empty case. Link: https://lore.kernel.org/lkml/20210920134424.GA346531@roeck-us.net/ [1] Link: https://lore.kernel.org/lkml/CAHk-=wgheheFx9myQyy5osh79BAazvmvYURAtub2gQtMvLrhqQ@mail.gmail.com/ [2] Reported-by: Guenter Roeck Cc: David Miller Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/sparc/lib/iomap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sparc/lib/iomap.c b/arch/sparc/lib/iomap.c index c4d42a50ebc0..fa4abbaf27de 100644 --- a/arch/sparc/lib/iomap.c +++ b/arch/sparc/lib/iomap.c @@ -18,8 +18,10 @@ void ioport_unmap(void __iomem *addr) EXPORT_SYMBOL(ioport_map); EXPORT_SYMBOL(ioport_unmap); +#ifdef CONFIG_PCI void pci_iounmap(struct pci_dev *dev, void __iomem * addr) { /* nothing to do */ } EXPORT_SYMBOL(pci_iounmap); +#endif -- 2.33.0