[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181102174949.GJ218059@arrakis.emea.arm.com>
Date: Fri, 2 Nov 2018 17:49:50 +0000
From: Catalin Marinas <catalin.marinas@....com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Will Deacon <will.deacon@....com>, linux-kernel@...r.kernel.org,
Robin Murphy <robin.murphy@....com>,
Christoph Hellwig <hch@....de>,
linux-arm-kernel@...ts.infradead.org,
Marek Szyprowski <m.szyprowski@...sung.com>
Subject: Re: [PATCH] arm64: hide unused swiotlb functions
On Fri, Nov 02, 2018 at 04:26:07PM +0100, Arnd Bergmann wrote:
> After a good chunk of the swiotlb code has been replaced with the generic
> version, two functions are only used from inside of an #ifdef:
>
> arch/arm64/mm/dma-mapping.c:174:12: error: '__swiotlb_mmap_pfn' defined but not used [-Werror=unused-function]
> static int __swiotlb_mmap_pfn(struct vm_area_struct *vma,
> ^~~~~~~~~~~~~~~~~~
> arch/arm64/mm/dma-mapping.c:163:12: error: '__swiotlb_get_sgtable_page' defined but not used [-Werror=unused-function]
> static int __swiotlb_get_sgtable_page(struct sg_table *sgt,
>
> Move them into the same #ifdef section to avoid that warning.
>
> Fixes: 886643b76632 ("arm64: use the generic swiotlb_dma_ops")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Christoph already proposed a fix here:
https://marc.info/?l=linux-arm-kernel&m=154091441602535
--
Catalin
Powered by blists - more mailing lists