Re: [linux-next:master 4676/13542] drivers/remoteproc/rcar_rproc.c:45:20: sparse: sparse: incorrect type in argument 1 (different address spaces)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 30, 2022 at 07:08:06PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   7c5e07b73ff3011c9b82d4a3286a3362b951ad2b
> commit: d803336abdbc1bfacdb32b2cf9f4fdbee072b8ee [4676/13542] ARM: mm: kill unused runtime hook arch_iounmap()

This is not a bug in this commit; this commit does not need fixing. This
is a bug in drivers/remoteproc/rcar_rproc.c:

struct rproc_mem_entry {
	void *va;

static int rcar_rproc_mem_alloc(struct rproc *rproc,
                                 struct rproc_mem_entry *mem)
{
        void *va;

	va = ioremap_wc(mem->dma, mem->len);


This is a bug.

static int rcar_rproc_mem_release(struct rproc *rproc,
                                   struct rproc_mem_entry *mem)
{
        iounmap(mem->va);

This is also a bug.

drivers/remoteproc/rcar_rproc.c needs fixing not to ignore the __iomem
annotation when dealing with iomem.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux