Re: [PATCH 11/52] [microblaze] kernel modules support

From: Jan Engelhardt
Date: Sat Jan 26 2008 - 11:28:17 EST



On Jan 24 2008 16:02, monstr@xxxxxxxxx wrote:
>+
>+/* module handling */
>+EXPORT_SYMBOL(PAGE_OFFSET);

This looks really ugly. PAGE_OFFSET is usually a macro.
I looked in patch 29/52 where PAGE_OFFSET is defined (unsigned int
PAGE_OFFSET), which got me wondered: PAGE_OFFSET can be a runtime
variable when it is a constant on most other arches?

That being said, I'd use

#define PAGE_OFFSET __page_offset

in some header file and in the .c file:

unsigned int __page_offset;
EXPORT_SYMBOL(__page_offset);

that is how arch-frv and -uml seem to do it.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/