m68k: io{read,write} accessors

Geert Uytterhoeven geert at linux-m68k.org
Thu Aug 29 04:15:10 EDT 2013


On Wed, Aug 28, 2013 at 8:36 PM, Brian Norris
<computersforpeace at gmail.com> wrote:
> It appears that m68k doesn't properly define the io{read,write}
> functions. I get complaints like this from my compile testing:
>
> drivers/mtd/nand/nand_base.c: In function 'nand_write_buf':
> drivers/mtd/nand/nand_base.c:216:2: error: implicit declaration of
> function 'iowrite8_rep' [-Werror=implicit-function-declaration]
> drivers/mtd/nand/nand_base.c: In function 'nand_read_buf':
> drivers/mtd/nand/nand_base.c:231:2: error: implicit declaration of
> function 'ioread8_rep' [-Werror=implicit-function-declaration]
> drivers/mtd/nand/nand_base.c: In function 'nand_write_buf16':
> drivers/mtd/nand/nand_base.c:247:2: error: implicit declaration of
> function 'iowrite16_rep' [-Werror=implicit-function-declaration]
> drivers/mtd/nand/nand_base.c: In function 'nand_read_buf16':
> drivers/mtd/nand/nand_base.c:263:2: error: implicit declaration of
> function 'ioread16_rep' [-Werror=implicit-function-declaration]

This is a nommu config?
If CONFIG_MMU=y,  GENERIC_IOMAP=y and iowrite8_rep() is available.

Greg: is there any reason we can't use GENERIC_IOMAP=y for the nommu
case too?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-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



More information about the linux-mtd mailing list