[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdW-8HaQip+DT5W2Owq8M8kbYwHsf8_Zd-5rRfSjSjK0=g@mail.gmail.com>
Date: Tue, 19 Apr 2022 11:42:14 +0200
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Rich Felker <dalias@...c.org>,
Yoshinori Sato <ysato@...rs.sourceforge.jp>
Cc: Vincent Whitchurch <vincent.whitchurch@...s.com>, kernel@...s.com,
Christoph Hellwig <hch@....de>,
kernel test robot <lkp@...el.com>,
Linux-sh list <linux-sh@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Rob Landley <rob@...dley.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH] sh: make !MMU iounmap an inline function
Hi Rich, Sato-san,
On Sat, Apr 16, 2022 at 12:01 AM Rob Landley <rob@...dley.net> wrote:
> On 4/14/22 03:12, Vincent Whitchurch wrote:
> > The current definition of sh's !MMU iounmap makes it unusable in certain
> > kinds of code, such as this instance caught by 0day on a patch posted to
> > the mailing lists:
> >
> > In file included from include/linux/io.h:13,
> > from drivers/mtd/devices/phram.c:21:
> > drivers/mtd/devices/phram.c: In function 'register_device':
> > arch/sh/include/asm/io.h:274:33: error: expected expression before 'do'
> > 274 | #define iounmap(addr) do { } while (0)
> > | ^~
> > drivers/mtd/devices/phram.c:150:44: note: in expansion of macro 'iounmap'
> > 150 | cached ? memunmap(new->mtd.priv) : iounmap(new->mtd.priv);
> > | ^~~~~~~
> >
> > Make it an inline function as it was earlier.
> >
> > Link: https://lore.kernel.org/lkml/202204131446.omJ5mC54-lkp@intel.com/
> > Fixes: 13f1fc870dd747131 ("sh: move the ioremap implementation out of line")
> > Reported-by: kernel test robot <lkp@...el.com>
> > Signed-off-by: Vincent Whitchurch <vincent.whitchurch@...s.com>
>
> Tested-by: Rob Landley <rob@...dley.net>
>
> Worked For Me.
Can we please get any of [1], [2], [3], or [4] applied and sent
upstream, so people can stop wasting time on recreating and
resubmitting similar patches all the time?
Thank you!
[1] PATCH] sh: Fix set but not used warnings with !CONFIG_MMU
https://lore.kernel.org/r/20201208182117.163642-2-sam@ravnborg.org
[2] [PATCH] sh: make iounmap() a static inline again
https://lore.kernel.org/r/20220105085746.1116726-1-mkl@pengutronix.de
[3] [PATCH] sh: Convert nommu io{re,un}map() to static inline functions
https://lore.kernel.org/r/4ed0a7a0d3fa912a5b44c451884818f2c138ef42.1644914600.git.geert+renesas@glider.be/
[4] [PATCH] sh: make !MMU iounmap an inline function
https://lore.kernel.org/r/20220414081257.1487499-1-vincent.whitchurch@axis.com/
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists