Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2796015pxk; Tue, 15 Sep 2020 02:33:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+t/THtMERkhTErUmp1CHYm0HKsp9qf5hjf4RITM5ppIZshONyJoW+fTuuadBNv8X0EA1y X-Received: by 2002:aa7:c387:: with SMTP id k7mr20940188edq.242.1600162409535; Tue, 15 Sep 2020 02:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600162409; cv=none; d=google.com; s=arc-20160816; b=vf04hGbizLMBDQ0D43H5luXPUPfwKBkMB79USMM3Mh/pByWJbEG3vXYv+JYjhyiCV3 m2e6x3QJ5/ca0egeY0b6sqhuteEg3DD++etM5ZxwmHDaxvXhW2OD+ZIsfaycQ3gFlQju DCCK01J2VVP1zCxOHL+KDBOwyx8lFrgWZZuiioJ3BobWniMvefuI9IjWf0WXmkAN1CCU 4f5VcnUWztutpKAx+iDr7zMZyiARUdoJIJnXQD5Cwx4wlEy6obhmfgfApcF7WO39R8MJ pZMXN1GiDaLu/+lnb48cjrQb4Kt/Y76VIMNxPY+AqFF1WmcuZyuK5YA3sdx9j5kU3+0U TWmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=W5zYHqi/f3qlOENOOx2XWF5WEQjHWm1AYuAJviS5CHU=; b=giVoBazVBLPSf5m40+KoaV0kN68AEzjzPaXLsCpMD3Qi7C9gP4lkWSzPP4AtK1Wy89 FwTED91Qta21Si4/8R7PeH8AqnVWyyVXq/UtcWVuGgtnqVO7h9rnnQYTpmb5DtKX+GFt Lx6GUsSLnS2zMVRGNpJoET2WOIs2tbD/+VTeEGWg/uj9MEyNxmXLBbI1BHTq/riOcAbd 6hFhJrTvn/bEBb/eHicBrRILCrvzZYeUeWNHgNJQ53dlAG1oeqdnN+22HPO3HnqsHlXo c1lp98OQ2evAa53GNF1S6t1HgqMV+zfaCWwM39qYMNXAtKgcCXivQE5RO8cGfrc4PsXc W53g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si8577191edy.588.2020.09.15.02.33.06; Tue, 15 Sep 2020 02:33:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbgIOJcP (ORCPT + 99 others); Tue, 15 Sep 2020 05:32:15 -0400 Received: from foss.arm.com ([217.140.110.172]:59038 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbgIOJcO (ORCPT ); Tue, 15 Sep 2020 05:32:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A8F8B106F; Tue, 15 Sep 2020 02:32:13 -0700 (PDT) Received: from red-moon.arm.com (unknown [10.57.14.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 019553F68F; Tue, 15 Sep 2020 02:32:11 -0700 (PDT) From: Lorenzo Pieralisi To: linux-kernel@vger.kernel.org Cc: Lorenzo Pieralisi , Bjorn Helgaas , Catalin Marinas , Will Deacon , Arnd Bergmann , "David S. Miller" , George Cherian , Yang Yingliang , linux-pci@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] Fix pci_iounmap() on !CONFIG_GENERIC_IOMAP Date: Tue, 15 Sep 2020 10:32:01 +0100 Message-Id: <20200915093203.16934-1-lorenzo.pieralisi@arm.com> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the empty pci_iounmap() implementation that is causing memory leaks on !CONFIG_GENERIC_IOMAP configs relying on asm-generic/io.h. A small tweak is required on sparc32 to pull in some declarations, hopefully nothing problematic, subject to changes as requested. Previous tentatives: https://lore.kernel.org/lkml/20200905024811.74701-1-yangyingliang@huawei.com https://lore.kernel.org/lkml/20200824132046.3114383-1-george.cherian@marvell.com Cc: Bjorn Helgaas Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Cc: "David S. Miller" Cc: George Cherian Cc: Yang Yingliang Lorenzo Pieralisi (2): sparc32: Move ioremap/iounmap declaration before asm-generic/io.h include asm-generic/io.h: Fix !CONFIG_GENERIC_IOMAP pci_iounmap() implementation arch/sparc/include/asm/io_32.h | 16 ++++++++------ include/asm-generic/io.h | 39 +++++++++++++++++++++++----------- 2 files changed, 37 insertions(+), 18 deletions(-) -- 2.26.1