Haavard Skinnemoen wrote:
quoted text > On Wed, 23 Jan 2008 22:53:54 +1100
> Ben Nizette <bn@niasdigital.com> wrote:
>
>> /*
>> + * We just keep an empty definition of this around (a-la the asm-generic
>> + * implementation) to keep /dev/mem happy
>> + */
>> +#define unxlate_dev_mem_ptr(p, a) {}
>
> Thanks, but this should be either
>
> #define unxlate_dev_mem_ptr(p, a) do { } while (0)
>
> or
>
> static inline void unxlate_dev_mem_ptr(unsigned long phys, void *addr)
> {
> }
>
> I prefer the latter.
Yeah I don't know what came over me; Mia culpa :-)
I prefer the latter too, though I think I was striving for consistency with the xlate_dev_mem_ptr #define.
--Ben
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH -mm] define empty unxlate_dev_mem_ptr on AVR32 , Ben Nizette , (Thu Jan 24, 6:38 am)