Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp547297pxk; Wed, 16 Sep 2020 10:26:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytgwkoWS6HAKz/6nGaepz+rbNYQqy0glT1hRX78vSjC60e+abXqPFB33TtAnUUhX1V/Dev X-Received: by 2002:a17:906:a4e:: with SMTP id x14mr26218354ejf.112.1600277172773; Wed, 16 Sep 2020 10:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600277172; cv=none; d=google.com; s=arc-20160816; b=iCJdMvby/nP424MACGipDk1xvscNKGTdh8oyJMWOaMKpmn0oL5cviJSYe/C91bT6tQ 92qVyCQ4R3mSwhBEKdIMpGQbW7w+zAccffROoP1BNJo9UaqxWeaz2VMVK4VVRPtiH9Th fNhNUD2ZajuHw5EwQ6iCZbzrJn5nBmWlTfR7Rgc6my0U626j34GmIu4o0RyNOPd7bs03 VL/qROcYcyNIeg6ChtP4dua+mkZTztkcnMMhkJasmeIUuUjUTrIU0OfWhhvvX6jORCHD hRTszrXpCFux01ZPmmrBEAR6sCB3SrswQr9dwo7nmP80JYLJQ2TilEvHa9c8se8lyxfN 9ilQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XMEkU/vWK0OhbdlubhVLXARqEInY+b5oIVs6h2lBUvg=; b=ue4J1e4EBEzdwptnB9E0k2mzdiImjLBTFnFZTe2M00Ox6OX8+Ovc5u8j4ldlaQMQCb 9L23qD5DuiB1U/3dMvqMOo8xm52YGTuLp/SbUQMohGMnDMe395gEN6ayvpDPGYaci7bb E/+AeYR37Wi9MObmo50x0H4H5Sa0S/DtKZWLbu7h2E1+vG16Fb2XhZqzGrHU2IieX5XC qQPMO3ZJICwG4wQuC9WHjs+JKFpFC4/MuXFOfZqhW++zn2ccVr6JBJKxCqbednIHpsQo kvvCsnq95S1qvJtpctH4hDUxWbzgzWf/2V2LjiijCnEIQAlohatpIWN3rYzcxU0ICDvv qmYw== 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 n12si12094777edv.103.2020.09.16.10.25.49; Wed, 16 Sep 2020 10:26:12 -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 S1726778AbgIPRYR (ORCPT + 99 others); Wed, 16 Sep 2020 13:24:17 -0400 Received: from foss.arm.com ([217.140.110.172]:34380 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbgIPRWi (ORCPT ); Wed, 16 Sep 2020 13:22:38 -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 1341C142F; Wed, 16 Sep 2020 04:07:06 -0700 (PDT) Received: from red-moon.arm.com (unknown [10.57.6.237]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6B0053F68F; Wed, 16 Sep 2020 04:07:03 -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 v2 0/3] Fix pci_iounmap() on !CONFIG_GENERIC_IOMAP Date: Wed, 16 Sep 2020 12:06:55 +0100 Message-Id: X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200915093203.16934-1-lorenzo.pieralisi@arm.com> References: <20200915093203.16934-1-lorenzo.pieralisi@arm.com> 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 v2 of a previous posting. v1->v2: - Added additional patch to remove sparc32 useless __KERNEL__ guard v1: https://lore.kernel.org/lkml/20200915093203.16934-1-lorenzo.pieralisi@arm.com Original cover letter --- 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 (3): sparc32: Remove useless io_32.h __KERNEL__ preprocessor guard 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 | 17 ++++++--------- include/asm-generic/io.h | 39 +++++++++++++++++++++++----------- 2 files changed, 34 insertions(+), 22 deletions(-) -- 2.26.1