lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220414090402.GA11067@axis.com>
Date:   Thu, 14 Apr 2022 11:04:02 +0200
From:   Vincent Whitchurch <vincent.whitchurch@...s.com>
To:     kernel test robot <lkp@...el.com>
CC:     "vigneshr@...com" <vigneshr@...com>,
        "richard@....at" <richard@....at>,
        "miquel.raynal@...tlin.com" <miquel.raynal@...tlin.com>,
        "joern@...ybastard.org" <joern@...ybastard.org>,
        "kbuild-all@...ts.01.org" <kbuild-all@...ts.01.org>,
        kernel <kernel@...s.com>,
        "linux-mtd@...ts.infradead.org" <linux-mtd@...ts.infradead.org>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
        "robh+dt@...nel.org" <robh+dt@...nel.org>,
        "krzk+dt@...nel.org" <krzk+dt@...nel.org>,
        "frowand.list@...il.com" <frowand.list@...il.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 4/4] mtd: phram: Allow cached mappings

On Wed, Apr 13, 2022 at 08:45:59AM +0200, kernel test robot wrote:
> All errors (new ones prefixed by >>):
> 
>    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);
>          |                                            ^~~~~~~
>    drivers/mtd/devices/phram.c: In function 'phram_remove':
> >> 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:372:53: note: in expansion of macro 'iounmap'
>      372 |         phram->cached ? memunmap(phram->mtd.priv) : iounmap(phram->mtd.priv);
>          |                                                     ^~~~~~~
> 
> 
> vim +/do +274 arch/sh/include/asm/io.h
> 
> d57d64080ddc0f Paul Mundt        2010-01-19  272  
> 13f1fc870dd747 Christoph Hellwig 2020-07-14  273  #else /* CONFIG_MMU */
> 13f1fc870dd747 Christoph Hellwig 2020-07-14 @274  #define iounmap(addr)		do { } while (0)
> 13f1fc870dd747 Christoph Hellwig 2020-07-14  275  #define ioremap(offset, size)	((void __iomem *)(unsigned long)(offset))
> 13f1fc870dd747 Christoph Hellwig 2020-07-14  276  #endif /* CONFIG_MMU */
> d627a2ebd1a303 Paul Mundt        2010-01-28  277  

Thank you for the report.  This patch could certainly be changed to work
around this, but ISTM that the right fix is in the SH header file, since
the problem could hit in other cases too.  I've posted a fix here now:

 https://lore.kernel.org/lkml/20220414081257.1487499-1-vincent.whitchurch@axis.com/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ