asm-generic/vmlinux.lds.h: shuffle INIT_TASK* macro names in vmlinux.lds.h

We recently added a INIT_TASK(align) in include/asm-generic/vmlinux.lds.h,
but there is already a macro INIT_TASK in include/linux/init_task.h, which
is quite confusing.  We should switch the macro in the linker script to
INIT_TASK_DATA. (Sorry that I missed this in reviewing the patch).  Since
the macros are new, there is only one user of the INIT_TASK in
vmlinux.lds.h, arch/mn10300/kernel/vmlinux.lds.S.

However, we are currently using INIT_TASK_DATA for laying down an entire
.data.init_task section.  So rename that to INIT_TASK_DATA_SECTION.

I would be worried about changing the meaning of INIT_TASK_DATA, but the
old INIT_TASK_DATA implementation had no users, and in fact if anyone had
tried to use it, it would have failed to compile because it didn't pass
the alignment to the old INIT_TASK.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Jesper Nilsson <Jesper.Nilsson@axis.com
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
Tim Abbott 2009-06-23 18:53:15 -04:00 коммит произвёл Sam Ravnborg
Родитель d2af12aead
Коммит 39a449d96a
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -61,7 +61,7 @@ SECTIONS
_edata = .; /* End of data section */ _edata = .; /* End of data section */
} }
.data.init_task : { INIT_TASK(THREAD_SIZE); } .data.init_task : { INIT_TASK_DATA(THREAD_SIZE); }
/* might get freed after init */ /* might get freed after init */
. = ALIGN(PAGE_SIZE); . = ALIGN(PAGE_SIZE);

Просмотреть файл

@ -191,7 +191,7 @@
. = ALIGN(align); \ . = ALIGN(align); \
*(.data.cacheline_aligned) *(.data.cacheline_aligned)
#define INIT_TASK(align) \ #define INIT_TASK_DATA(align) \
. = ALIGN(align); \ . = ALIGN(align); \
*(.data.init_task) *(.data.init_task)
@ -434,10 +434,10 @@
/* /*
* Init task * Init task
*/ */
#define INIT_TASK_DATA(align) \ #define INIT_TASK_DATA_SECTION(align) \
. = ALIGN(align); \ . = ALIGN(align); \
.data.init_task : { \ .data.init_task : { \
INIT_TASK \ INIT_TASK_DATA(align) \
} }
#ifdef CONFIG_CONSTRUCTORS #ifdef CONFIG_CONSTRUCTORS
@ -707,7 +707,7 @@
#define RW_DATA_SECTION(cacheline, pagealigned, inittask) \ #define RW_DATA_SECTION(cacheline, pagealigned, inittask) \
. = ALIGN(PAGE_SIZE); \ . = ALIGN(PAGE_SIZE); \
.data : AT(ADDR(.data) - LOAD_OFFSET) { \ .data : AT(ADDR(.data) - LOAD_OFFSET) { \
INIT_TASK(inittask) \ INIT_TASK_DATA(inittask) \
CACHELINE_ALIGNED_DATA(cacheline) \ CACHELINE_ALIGNED_DATA(cacheline) \
READ_MOSTLY_DATA(cacheline) \ READ_MOSTLY_DATA(cacheline) \
DATA_DATA \ DATA_DATA \