From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC5CBC433F5 for ; Thu, 7 Apr 2022 13:27:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qFhf/FaVzzE5yZc1+oRtCaY17DhetpCSwVm0/ydrFp8=; b=sa//B9YdObjeKR ds01xCalfypWtZPY9VaYT3HMy6JQxAw9rIMIHTlMvZNVap+VV42Lp4vRuDG5PjKEKKiXOuC/xL0xQ r2g6e0MMLpBzk0L838RgiUqplfhZ36FjNY+Qg8mkoXJieFwrOcMQFcsuUXgLrgSOoKxfef829fG/E X4xB7vocDS/5keq5Wvdvgm2u+q5/16zMpA4E3rXaQ8SuuqDZf1u2k19D39vtJqN2wmOn9yBxcT8d+ 3QQJuR1v6G/czGewdo9y+FGSiVrA31hafv6weKDQERsO/dRM5Y4+Y4lnTIB5zLnM7CAHgovs5Gc6t yeaU42BIonzygwrih66Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncS9w-00C8BP-M4; Thu, 07 Apr 2022 13:26:48 +0000 Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncS9s-00C8AT-Bp; Thu, 07 Apr 2022 13:26:44 +0000 Date: Thu, 7 Apr 2022 06:26:44 -0700 From: Christoph Hellwig To: Shameer Kolothum Cc: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, iommu@lists.linux-foundation.org, robin.murphy@arm.com, jon@solid-run.com, linuxarm@huawei.com, steven.price@arm.com, guohanjun@huawei.com, yangyicong@huawei.com, Sami.Mujawar@arm.com, will@kernel.org, wanghuiqiang@huawei.com Subject: Re: [PATCH v9 05/11] iommu/dma: Introduce a helper to remove reserved regions Message-ID: References: <20220404124209.1086-1-shameerali.kolothum.thodi@huawei.com> <20220404124209.1086-6-shameerali.kolothum.thodi@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220404124209.1086-6-shameerali.kolothum.thodi@huawei.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > > +static inline void iommu_dma_put_resv_regions(struct device *dev, struct list_head *list) > +{ > +} > + > #endif /* CONFIG_IOMMU_DMA */ This changes behavior when CONFIG_IOMMU_DMA is not set. So e.g. on ARM all the drivers that are using the new helper now fail to release reserved regions. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel