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

* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild:
Kbuild: Fix deb-pkg target to work with kernel versions ending with -<text-without-digit>
ide: introduce HAVE_IDE
kbuild: silence CHK/UPD messages according to $(quiet)
scsi: fix makefile for aic7(3*x)
kbuild/modpost: Use warn() for announcing section mismatches
Add binoffset to gitignore
kbuild/modpost: improve warnings if symbol is unknown

+76 -27
+1
arch/alpha/Kconfig
··· 5 5 config ALPHA 6 6 bool 7 7 default y 8 + select HAVE_IDE 8 9 select HAVE_OPROFILE 9 10 help 10 11 The Alpha is a 64-bit general-purpose processor designed and
+14 -5
arch/arm/Kconfig
··· 222 222 select TIMER_ACORN 223 223 select ISA 224 224 select NO_IOPORT 225 + select HAVE_IDE 225 226 help 226 227 Support for the Cirrus Logic PS7500FE system-on-a-chip. 227 228 ··· 235 234 bool "Co-EBSA285" 236 235 select FOOTBRIDGE 237 236 select FOOTBRIDGE_ADDIN 237 + select HAVE_IDE 238 238 help 239 239 Support for Intel's EBSA285 companion chip. 240 240 ··· 260 258 config ARCH_FOOTBRIDGE 261 259 bool "FootBridge" 262 260 select FOOTBRIDGE 261 + select HAVE_IDE 263 262 help 264 263 Support for systems based on the DC21285 companion chip 265 264 ("FootBridge"), such as the Simtec CATS and the Rebel NetWinder. ··· 299 296 depends on MMU 300 297 select PLAT_IOP 301 298 select PCI 299 + select HAVE_IDE 302 300 help 303 301 Support for Intel's 80219 and IOP32X (XScale) family of 304 302 processors. ··· 309 305 depends on MMU 310 306 select PLAT_IOP 311 307 select PCI 308 + select HAVE_IDE 312 309 help 313 310 Support for Intel's IOP33X (XScale) family of processors. 314 311 315 312 config ARCH_IXP23XX 316 313 bool "IXP23XX-based" 317 314 depends on MMU 315 + select HAVE_IDE 318 316 select PCI 319 317 help 320 318 Support for Intel's IXP23xx (XScale) family of processors. ··· 334 328 select GENERIC_GPIO 335 329 select GENERIC_TIME 336 330 select GENERIC_CLOCKEVENTS 331 + select HAVE_IDE 337 332 help 338 333 Support for Intel's IXP4XX (XScale) family of processors. 339 334 340 335 config ARCH_L7200 341 336 bool "LinkUp-L7200" 342 337 select FIQ 338 + select HAVE_IDE 343 339 help 344 340 Say Y here if you intend to run this kernel on a LinkUp Systems 345 341 L7200 Software Development Board which uses an ARM720T processor. ··· 396 388 depends on MMU 397 389 select ARCH_MTD_XIP 398 390 select GENERIC_GPIO 391 + select HAVE_IDE 399 392 select HAVE_GPIO_LIB 400 393 select GENERIC_TIME 401 394 select GENERIC_CLOCKEVENTS ··· 412 403 select ARCH_MAY_HAVE_PC_FDC 413 404 select ISA_DMA_API 414 405 select NO_IOPORT 406 + select HAVE_IDE 415 407 help 416 408 On the Acorn Risc-PC, Linux can support the internal IDE disk and 417 409 CD-ROM interface, serial and parallel port, and the floppy drive. ··· 424 414 select ARCH_MTD_XIP 425 415 select GENERIC_GPIO 426 416 select GENERIC_TIME 417 + select HAVE_IDE 427 418 help 428 419 Support for StrongARM 11x0 based boards. 429 420 430 421 config ARCH_S3C2410 431 422 bool "Samsung S3C2410, S3C2412, S3C2413, S3C2440, S3C2442, S3C2443" 432 423 select GENERIC_GPIO 424 + select HAVE_IDE 433 425 help 434 426 Samsung S3C2410X CPU based systems, such as the Simtec Electronics 435 427 BAST (<http://www.simtec.co.uk/products/EB110ITX/>), the IPAQ 1940 or ··· 439 427 440 428 config ARCH_SHARK 441 429 bool "Shark" 430 + select HAVE_IDE 442 431 select ISA 443 432 select ISA_DMA 444 433 select PCI ··· 449 436 450 437 config ARCH_LH7A40X 451 438 bool "Sharp LH7A40X" 439 + select HAVE_IDE 452 440 help 453 441 Say Y here for systems based on one of the Sharp LH7A40X 454 442 System on a Chip processors. These CPUs include an ARM922T ··· 1107 1093 1108 1094 source "drivers/misc/Kconfig" 1109 1095 1110 - if PCMCIA || ARCH_CLPS7500 || ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX \ 1111 - || ARCH_L7200 || ARCH_LH7A40X || ARCH_PXA || ARCH_RPC \ 1112 - || ARCH_S3C2410 || ARCH_SA1100 || ARCH_SHARK || FOOTBRIDGE \ 1113 - || ARCH_IXP23XX 1114 1096 source "drivers/ide/Kconfig" 1115 - endif 1116 1097 1117 1098 source "drivers/scsi/Kconfig" 1118 1099
+1
arch/avr32/Kconfig
··· 10 10 # With EMBEDDED=n, we get lots of stuff automatically selected 11 11 # that we usually don't need on AVR32. 12 12 select EMBEDDED 13 + select HAVE_IDE 13 14 select HAVE_OPROFILE 14 15 select HAVE_KPROBES 15 16 help
+1
arch/blackfin/Kconfig
··· 24 24 config BLACKFIN 25 25 bool 26 26 default y 27 + select HAVE_IDE 27 28 select HAVE_OPROFILE 28 29 29 30 config ZONE_DMA
+1
arch/cris/Kconfig
··· 54 54 config CRIS 55 55 bool 56 56 default y 57 + select HAVE_IDE 57 58 58 59 config HZ 59 60 int
+1
arch/frv/Kconfig
··· 5 5 config FRV 6 6 bool 7 7 default y 8 + select HAVE_IDE 8 9 9 10 config ZONE_DMA 10 11 bool
+1
arch/h8300/Kconfig
··· 8 8 config H8300 9 9 bool 10 10 default y 11 + select HAVE_IDE 11 12 12 13 config MMU 13 14 bool
+1
arch/ia64/Kconfig
··· 15 15 select ACPI if (!IA64_HP_SIM) 16 16 select PM if (!IA64_HP_SIM) 17 17 select ARCH_SUPPORTS_MSI 18 + select HAVE_IDE 18 19 select HAVE_OPROFILE 19 20 select HAVE_KPROBES 20 21 default y
+1
arch/m32r/Kconfig
··· 8 8 config M32R 9 9 bool 10 10 default y 11 + select HAVE_IDE 11 12 select HAVE_OPROFILE 12 13 13 14 config SBUS
+1
arch/m68k/Kconfig
··· 5 5 config M68K 6 6 bool 7 7 default y 8 + select HAVE_IDE 8 9 9 10 config MMU 10 11 bool
+1
arch/m68knommu/Kconfig
··· 8 8 config M68K 9 9 bool 10 10 default y 11 + select HAVE_IDE 11 12 12 13 config MMU 13 14 bool
+1
arch/mips/Kconfig
··· 1 1 config MIPS 2 2 bool 3 3 default y 4 + select HAVE_IDE 4 5 select HAVE_OPROFILE 5 6 # Horrible source of confusion. Die, die, die ... 6 7 select EMBEDDED
+1
arch/parisc/Kconfig
··· 7 7 8 8 config PARISC 9 9 def_bool y 10 + select HAVE_IDE 10 11 select HAVE_OPROFILE 11 12 help 12 13 The PA-RISC microprocessor is designed by Hewlett-Packard and used
+1
arch/powerpc/Kconfig
··· 87 87 config PPC 88 88 bool 89 89 default y 90 + select HAVE_IDE 90 91 select HAVE_OPROFILE 91 92 select HAVE_KPROBES 92 93
+1
arch/ppc/Kconfig
··· 42 42 config PPC 43 43 bool 44 44 default y 45 + select HAVE_IDE 45 46 select HAVE_OPROFILE 46 47 select HAVE_KPROBES 47 48
+1
arch/sh/Kconfig
··· 8 8 config SUPERH 9 9 def_bool y 10 10 select EMBEDDED 11 + select HAVE_IDE 11 12 select HAVE_OPROFILE 12 13 help 13 14 The SuperH is a RISC processor targeted for use in embedded systems
+1
arch/sparc/Kconfig
··· 69 69 config SPARC 70 70 bool 71 71 default y 72 + select HAVE_IDE 72 73 select HAVE_OPROFILE 73 74 74 75 # Identify this as a Sparc32 build
+1
arch/sparc64/Kconfig
··· 14 14 config SPARC64 15 15 bool 16 16 default y 17 + select HAVE_IDE 17 18 help 18 19 SPARC is a family of RISC microprocessors designed and marketed by 19 20 Sun Microsystems, incorporated. This port covers the newer 64-bit
+1
arch/v850/Kconfig
··· 78 78 config V850 79 79 bool 80 80 default y 81 + select HAVE_IDE 81 82 82 83 menu "Processor type and features" 83 84
+1
arch/x86/Kconfig
··· 18 18 ### Arch settings 19 19 config X86 20 20 def_bool y 21 + select HAVE_IDE 21 22 select HAVE_OPROFILE 22 23 select HAVE_KPROBES 23 24
+1
arch/xtensa/Kconfig
··· 14 14 config XTENSA 15 15 bool 16 16 default y 17 + select HAVE_IDE 17 18 help 18 19 Xtensa processors are 32-bit RISC machines designed by Tensilica 19 20 primarily for embedded systems. These processors are both
+5 -1
drivers/ide/Kconfig
··· 4 4 # Andre Hedrick <andre@linux-ide.org> 5 5 # 6 6 7 + # Select HAVE_IDE if IDE is supported 8 + config HAVE_IDE 9 + def_bool n 10 + 7 11 menuconfig IDE 8 12 tristate "ATA/ATAPI/MFM/RLL support" 13 + depends on HAVE_IDE 9 14 depends on BLOCK 10 - depends on HAS_IOMEM 11 15 ---help--- 12 16 If you say Y here, your kernel will be able to manage low cost mass 13 17 storage units such as ATA/(E)IDE and ATAPI units. The most common
+1
drivers/pcmcia/Kconfig
··· 38 38 config PCMCIA 39 39 tristate "16-bit PCMCIA support" 40 40 select CRC32 41 + select HAVE_IDE 41 42 default y 42 43 ---help--- 43 44 This option enables support for 16-bit PCMCIA cards. Most older
+2 -2
drivers/scsi/aic7xxx/Makefile
··· 44 44 45 45 # Dependencies for generated files need to be listed explicitly 46 46 47 - $(addprefix $(src)/,$(aic7xxx-y:.o=.c)): $(obj)/aic7xxx_seq.h $(obj)/aic7xxx_reg.h 48 - $(addprefix $(src)/,$(aic79xx-y:.o=.c)): $(obj)/aic79xx_seq.h $(obj)/aic79xx_reg.h 47 + $(addprefix $(obj)/,$(aic7xxx-y)): $(obj)/aic7xxx_seq.h $(obj)/aic7xxx_reg.h 48 + $(addprefix $(obj)/,$(aic79xx-y)): $(obj)/aic79xx_seq.h $(obj)/aic79xx_reg.h 49 49 50 50 aic7xxx-gen-$(CONFIG_AIC7XXX_BUILD_FIRMWARE) := $(obj)/aic7xxx_reg.h 51 51 aic7xxx-gen-$(CONFIG_AIC7XXX_REG_PRETTY_PRINT) += $(obj)/aic7xxx_reg_print.c
+3 -1
init/Makefile
··· 27 27 # mkcompile_h will make sure to only update the 28 28 # actual file if its content has changed. 29 29 30 + quiet_chk_compile.h = echo ' CHK $@' 31 + silent_chk_compile.h = : 30 32 include/linux/compile.h: FORCE 31 - @echo ' CHK $@' 33 + @$($(quiet)chk_compile.h) 32 34 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ 33 35 "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(KBUILD_CFLAGS)"
+1
scripts/.gitignore
··· 6 6 pnmtologo 7 7 bin2c 8 8 unifdef 9 + binoffset
+6 -2
scripts/Kbuild.include
··· 39 39 # - If they are equal no change, and no timestamp update 40 40 # - stdin is piped in from the first prerequisite ($<) so one has 41 41 # to specify a valid file as first prerequisite (often the kbuild file) 42 + quiet_chk_filechk = echo ' CHK $@' 43 + silent_chk_filechk = : 44 + quiet_upd_filechk = echo ' UPD $@' 45 + silent_upd_filechk = : 42 46 define filechk 43 47 $(Q)set -e; \ 44 - echo ' CHK $@'; \ 48 + $($(quiet)chk_filechk); \ 45 49 mkdir -p $(dir $@); \ 46 50 $(filechk_$(1)) < $< > $@.tmp; \ 47 51 if [ -r $@ ] && cmp -s $@ $@.tmp; then \ 48 52 rm -f $@.tmp; \ 49 53 else \ 50 - echo ' UPD $@'; \ 54 + $($(quiet)upd_filechk); \ 51 55 mv -f $@.tmp $@; \ 52 56 fi 53 57 endef
+22 -15
scripts/mod/modpost.c
··· 613 613 if (sym) 614 614 return elf->strtab + sym->st_name; 615 615 else 616 - return ""; 616 + return "(unknown)"; 617 617 } 618 618 619 619 static const char *sec_name(struct elf_info *elf, int shndx) ··· 1102 1102 if (sym) 1103 1103 return ELF_ST_TYPE(sym->st_info) == STT_FUNC; 1104 1104 else 1105 - return 0; 1105 + return -1; 1106 1106 } 1107 1107 1108 1108 /* ··· 1120 1120 { 1121 1121 const char *from, *from_p; 1122 1122 const char *to, *to_p; 1123 - from = from_is_func ? "function" : "variable"; 1124 - from_p = from_is_func ? "()" : ""; 1125 - to = to_is_func ? "function" : "variable"; 1126 - to_p = to_is_func ? "()" : ""; 1123 + 1124 + switch (from_is_func) { 1125 + case 0: from = "variable"; from_p = ""; break; 1126 + case 1: from = "function"; from_p = "()"; break; 1127 + default: from = "(unknown reference)"; from_p = ""; break; 1128 + } 1129 + switch (to_is_func) { 1130 + case 0: to = "variable"; to_p = ""; break; 1131 + case 1: to = "function"; to_p = "()"; break; 1132 + default: to = "(unknown reference)"; to_p = ""; break; 1133 + } 1127 1134 1128 1135 sec_mismatch_count++; 1129 1136 if (!sec_mismatch_verbose) 1130 1137 return; 1131 1138 1132 - fprintf(stderr, "WARNING: %s(%s+0x%llx): Section mismatch in" 1133 - " reference from the %s %s%s to the %s %s:%s%s\n", 1134 - modname, fromsec, fromaddr, from, fromsym, from_p, 1135 - to, tosec, tosym, to_p); 1139 + warn("%s(%s+0x%llx): Section mismatch in reference from the %s %s%s " 1140 + "to the %s %s:%s%s\n", 1141 + modname, fromsec, fromaddr, from, fromsym, from_p, to, tosec, 1142 + tosym, to_p); 1136 1143 1137 1144 switch (mismatch) { 1138 1145 case TEXT_TO_INIT: 1139 1146 fprintf(stderr, 1140 - "The function %s %s() references\n" 1147 + "The function %s%s() references\n" 1141 1148 "the %s %s%s%s.\n" 1142 1149 "This is often because %s lacks a %s\n" 1143 1150 "annotation or the annotation of %s is wrong.\n", ··· 1945 1938 if (dump_write) 1946 1939 write_dump(dump_write); 1947 1940 if (sec_mismatch_count && !sec_mismatch_verbose) 1948 - fprintf(stderr, "modpost: Found %d section mismatch(es).\n" 1949 - "To see full details build your kernel with:\n" 1950 - "'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n", 1951 - sec_mismatch_count); 1941 + warn("modpost: Found %d section mismatch(es).\n" 1942 + "To see full details build your kernel with:\n" 1943 + "'make CONFIG_DEBUG_SECTION_MISMATCH=y'\n", 1944 + sec_mismatch_count); 1952 1945 1953 1946 return err; 1954 1947 }
+2 -1
scripts/package/builddeb
··· 13 13 14 14 # Some variables and settings used throughout the script 15 15 version=$KERNELRELEASE 16 + revision=`cat .version` 16 17 tmpdir="$objtree/debian/tmp" 17 18 packagename=linux-$version 18 19 ··· 66 65 name="Kernel Compiler <$(id -nu)@$(hostname -f)>" 67 66 # Generate a simple changelog template 68 67 cat <<EOF > debian/changelog 69 - linux ($version) unstable; urgency=low 68 + linux ($version-$revision) unstable; urgency=low 70 69 71 70 * A standard release 72 71