static immap_t __iomem *imap or immap_t *imap;

DI BACCO ANTONIO - technolabs Antonio.DiBacco at technolabs.it
Tue Mar 6 22:08:09 EST 2007


Why should I use
static immap_t   __iomem *imap;
And not
immap_t *imap;
in a driver?
when imap = ioremap_nocache()

In particular I know that __iomem is useful to the compiler to avoid
reordering and delaying io memory writes but what's the need for static
in this case?



More information about the Linuxppc-embedded mailing list