History

Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes

* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes: kbuild: finally remove the obsolete variable $TOPDIR gitignore: ignore scripts/ihex2fw Kbuild: Disable the -Wformat-security gcc flag gitignore: ignore gcov output files kbuild: deb-pkg ship changelog Add new __init_task_data macro to be used in arch init_task.c files. asm-generic/vmlinux.lds.h: shuffle INIT_TASK* macro names in vmlinux.lds.h Add new macros for page-aligned data and bss sections. asm-generic/vmlinux.lds.h: Fix up RW_DATA_SECTION definition.

Linus Torvalds committed 17 years ago

Commit 29f31772 parents 59107c6 11294239 files · +27 −12Browse files

Unified · Split

9 files
  1. .gitignore +1 −0
  2. Makefile +3 −4
  3. arch/mn10300/kernel/vmlinux.lds.S +1 −1
  4. drivers/scsi/cxgb3i/Kbuild +1 −1
  5. include/asm-generic/vmlinux.lds.h +6 −6
  6. include/linux/init_task.h +3 −0
  7. include/linux/linkage.h +9 −0
  8. scripts/.gitignore +1 −0
  9. scripts/package/builddeb +2 −0
.gitignore+1−0
@@ -27,6 +27,7 @@ · 26 unmodified lines
2727 *.gz
2828 *.lzma
2929 *.patch
30+*.gcno
3031
3132 #
3233 # Top-level generic files
Makefile+3−4
@@ -140,15 +140,13 @@ _all: modules · 139 unmodified lines
140140 endif
141141
142142 srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))
143−TOPDIR := $(srctree)
144−# FIXME - TOPDIR is obsolete, use srctree/objtree
145143 objtree := $(CURDIR)
146144 src := $(srctree)
147145 obj := $(objtree)
148146
149147 VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))
150148
151−export srctree objtree VPATH TOPDIR
149+export srctree objtree VPATH
152150
153151
154152 # SUBARCH tells the usermode build what the underlying arch is. That is set
@@ -344,7 +342,8 @@ KBUILD_CPPFLAGS := -D__KERNEL__ · 189 unmodified lines
344342
345343 KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
346344 -fno-strict-aliasing -fno-common \
347− -Werror-implicit-function-declaration
345+ -Werror-implicit-function-declaration \
346+ -Wno-format-security
348347 KBUILD_AFLAGS := -D__ASSEMBLY__
349348
350349 # Read KERNELRELEASE from include/config/kernel.release (if it exists)
arch/mn10300/kernel/vmlinux.lds.S+1−1
@@ -61,7 +61,7 @@ SECTIONS · 60 unmodified lines
6161 _edata = .; /* End of data section */
6262 }
6363
64− .data.init_task : { INIT_TASK(THREAD_SIZE); }
64+ .data.init_task : { INIT_TASK_DATA(THREAD_SIZE); }
6565
6666 /* might get freed after init */
6767 . = ALIGN(PAGE_SIZE);
drivers/scsi/cxgb3i/Kbuild+1−1
@@ -1,4 +1,4 @@
1−EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/cxgb3
1+EXTRA_CFLAGS += -I$(srctree)/drivers/net/cxgb3
22
33 cxgb3i-y := cxgb3i_init.o cxgb3i_iscsi.o cxgb3i_pdu.o cxgb3i_offload.o cxgb3i_ddp.o
44 obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
include/asm-generic/vmlinux.lds.h+6−6
@@ -191,7 +191,7 @@ · 190 unmodified lines
191191 . = ALIGN(align); \
192192 *(.data.cacheline_aligned)
193193
194−#define INIT_TASK(align) \
194+#define INIT_TASK_DATA(align) \
195195 . = ALIGN(align); \
196196 *(.data.init_task)
197197
@@ -434,10 +434,10 @@ · 236 unmodified lines
434434 /*
435435 * Init task
436436 */
437−#define INIT_TASK_DATA(align) \
437+#define INIT_TASK_DATA_SECTION(align) \
438438 . = ALIGN(align); \
439439 .data.init_task : { \
440− INIT_TASK \
440+ INIT_TASK_DATA(align) \
441441 }
442442
443443 #ifdef CONFIG_CONSTRUCTORS
@@ -705,15 +705,15 @@ · 261 unmodified lines
705705 * matches the requirment of PAGE_ALIGNED_DATA.
706706 *
707707 * use 0 as page_align if page_aligned data is not used */
708−#define RW_DATA_SECTION(cacheline, nosave, pagealigned, inittask) \
708+#define RW_DATA_SECTION(cacheline, pagealigned, inittask) \
709709 . = ALIGN(PAGE_SIZE); \
710710 .data : AT(ADDR(.data) - LOAD_OFFSET) { \
711− INIT_TASK(inittask) \
711+ INIT_TASK_DATA(inittask) \
712712 CACHELINE_ALIGNED_DATA(cacheline) \
713713 READ_MOSTLY_DATA(cacheline) \
714714 DATA_DATA \
715715 CONSTRUCTORS \
716− NOSAVE_DATA(nosave) \
716+ NOSAVE_DATA \
717717 PAGE_ALIGNED_DATA(pagealigned) \
718718 }
719719
include/linux/init_task.h+3−0
@@ -183,5 +183,8 @@ extern struct cred init_cred; · 182 unmodified lines
183183 LIST_HEAD_INIT(cpu_timers[2]), \
184184 }
185185
186+/* Attach to the init_task data structure for proper alignment */
187+#define __init_task_data __attribute__((__section__(".data.init_task")))
188+
186189
187190 #endif
include/linux/linkage.h+9−0
@@ -21,6 +21,15 @@ · 20 unmodified lines
2121 #define __page_aligned_data __section(.data.page_aligned) __aligned(PAGE_SIZE)
2222 #define __page_aligned_bss __section(.bss.page_aligned) __aligned(PAGE_SIZE)
2323
24+/*
25+ * For assembly routines.
26+ *
27+ * Note when using these that you must specify the appropriate
28+ * alignment directives yourself
29+ */
30+#define __PAGE_ALIGNED_DATA .section ".data.page_aligned", "aw"
31+#define __PAGE_ALIGNED_BSS .section ".bss.page_aligned", "aw"
32+
2433 /*
2534 * This is used by architectures to keep arguments on the stack
2635 * untouched by the compiler by keeping them live until the end.
scripts/.gitignore+1−0
@@ -7,3 +7,4 @@ pnmtologo · 6 unmodified lines
77 bin2c
88 unifdef
99 binoffset
10+ihex2fw
scripts/package/builddeb+2−0
@@ -16,6 +16,8 @@ create_package() { · 15 unmodified lines
1616 local pname="$1" pdir="$2"
1717
1818 cp debian/copyright "$pdir/usr/share/doc/$pname/"
19+ cp debian/changelog "$pdir/usr/share/doc/$pname/changelog.Debian"
20+ gzip -9 "$pdir/usr/share/doc/$pname/changelog.Debian"
1921
2022 # Fix ownership and permissions
2123 chown -R root:root "$pdir"