asm-generic/vmlinux.lds.h: shuffle INIT_TASK* macro names in vmlinux.lds.h
authorTim Abbott <tabbott@ksplice.com>
Tue, 23 Jun 2009 22:53:15 +0000 (18:53 -0400)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 26 Jun 2009 22:04:50 +0000 (00:04 +0200)
commit39a449d96ac3db9b6d498b6ffbf4c763746d5e8b
tree86c0a86f309f481331cbce2bd444b3bc84bbff5c
parentd2af12aeadaedf657c9fb9c3df984d2c5ab25f4c
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>
arch/mn10300/kernel/vmlinux.lds.S
include/asm-generic/vmlinux.lds.h