The patch titled acpi: acpi_numa_init() build fix has been added to the -mm tree. Its filename is acpi-acpi_numa_init-build-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: acpi: acpi_numa_init() build fix From: Ingo Molnar <mingo@xxxxxxx> x86.git testing found the following build error on latest -git: drivers/acpi/numa.c: In function 'acpi_numa_init': drivers/acpi/numa.c:226: error: 'NR_NODE_MEMBLKS' undeclared (first use in this function) drivers/acpi/numa.c:226: error: (Each undeclared identifier is reported only once drivers/acpi/numa.c:226: error: for each function it appears in.) with this config: http://redhat.com/~mingo/misc/config-Wed_Apr_30_22_42_42_CEST_2008.bad i suspect we dont want SRAT parsing when CONFIG_HAVE_ARCH_PARSE_SRAT is unset - but the fix looks a bit ugly. Perhaps we should define NR_NODE_MEMBLKS even in this case and just let the code fall back to some sane behavior? Signed-off-by: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/acpi/numa.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN drivers/acpi/numa.c~acpi-acpi_numa_init-build-fix drivers/acpi/numa.c --- a/drivers/acpi/numa.c~acpi-acpi_numa_init-build-fix +++ a/drivers/acpi/numa.c @@ -176,6 +176,7 @@ acpi_parse_processor_affinity(struct acp return 0; } +#ifdef CONFIG_HAVE_ARCH_PARSE_SRAT static int __init acpi_parse_memory_affinity(struct acpi_subtable_header * header, const unsigned long end) @@ -193,6 +194,7 @@ acpi_parse_memory_affinity(struct acpi_s return 0; } +#endif static int __init acpi_parse_srat(struct acpi_table_header *table) { @@ -221,9 +223,11 @@ int __init acpi_numa_init(void) if (!acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat)) { acpi_table_parse_srat(ACPI_SRAT_TYPE_CPU_AFFINITY, acpi_parse_processor_affinity, NR_CPUS); +#ifdef CONFIG_HAVE_ARCH_PARSE_SRAT acpi_table_parse_srat(ACPI_SRAT_TYPE_MEMORY_AFFINITY, acpi_parse_memory_affinity, NR_NODE_MEMBLKS); +#endif } /* SLIT: System Locality Information Table */ _ Patches currently in -mm which might be from mingo@xxxxxxx are origin.patch signals-add-set_restore_sigmask.patch signals-set_restore_sigmask-tif_sigpending.patch signals-s390-renumber-tif_restore_sigmask.patch signals-ia64-renumber-tif_restore_sigmask.patch signals-use-have_set_restore_sigmask.patch signals-x86-ts_restore_sigmask.patch char-serial-switch-drivers-to-ioremap_nocache.patch make-marker_debug-static.patch asm-futexh-should-include-linux-uaccessh.patch slab-add-a-flag-to-prevent-debug_free-checks-on-a-kmem_cache.patch infrastructure-to-debug-dynamic-objects.patch debugobjects-add-documentation.patch debugobjects-add-timer-specific-object-debugging-code.patch add-hrtimer-specific-debugobjects-code.patch kernel-replace-remaining-__function__-occurances.patch cpusets-update-maintainers.patch fix-cpu-hotplug-problem-in-softirq-code.patch rename-div64_64-to-div64_u64.patch remove-div_long_long_rem.patch isdn-hysdn_procconfc-build-fix.patch pci-export-resource_wc-in-pci-sysfs.patch pci-export-resource_wc-in-pci-sysfs-fix.patch mm-filemapc-generic_write_checks-mustnt-be-inline.patch acpi-acpi_numa_init-build-fix.patch acpi-fix-drivers-acpi-gluec-build-error.patch x86-ioremap-ram-check-fix.patch git-x86.patch git-x86-fixup.patch x86_64-restore-mask_bits-in-msi-shutdown.patch arch-x86-video-fbdevc-add-module_license.patch rtc-remove-unneeded-declarations-of-hpet_rtc_interrupt.patch x86-geode-cache-results-from-geode_has_vsa2-and-uninline.patch x86-geode-cache-results-from-geode_has_vsa2-and-uninline-cleanup.patch fix-drivers-media-common-tuners-build-bug.patch git-kvm.patch git-sched.patch sched-add-debug-checks-to-idle-functions.patch mutex-debug-check-mutex-magic-before-owner.patch show_schedstat-fix-memleak.patch drivers-base-topologyc-add-conditionals-around-show_cpumap.patch rcu-fix-rcu_try_flip_waitack_needed-to-prevent-grace-period-stall.patch rcu-add-call_rcu_sched.patch rcu-add-memory-barriers-and-comments-to-rcu_check_callbacks.patch rcu-add-call_rcu_sched-and-friends-to-rcutorture.patch rcu-1q08-rcu-doc-update-add-call_rcu_sched.patch aes-x86_64-asm-implementation-optimization.patch generic-irq-let-setup_irq-reenable-a-shared-irq.patch mm-add-a-basic-debugging-framework-for-memory-initialisation.patch mm-add-a-basic-debugging-framework-for-memory-initialisation-fix.patch mm-verify-the-page-links-and-memory-model.patch mm-make-defensive-checks-around-pfn-values-registered-for-memory-usage.patch mm-print-out-the-zonelists-on-request-for-manual-verification.patch mm-move-bootmem-descriptors-definition-to-a-single-place.patch mm-fix-free_all_bootmem_core-alignment-check.patch mm-normalize-internal-argument-passing-of-bootmem-data.patch mm-unexport-__alloc_bootmem_core.patch accounting-account-for-user-time-when-updating-memory-integrals.patch 8250-switch-8250-drivers-to-use-_nocache-ioremaps.patch posix-timers-bug-10460-discard-the-pending-signal-when-the-timer-is-destroyed.patch workqueue-remove-redundant-function-invocation.patch detect-atomic-counter-underflows.patch make-frame_pointer-default=y.patch mutex-subsystem-synchro-test-module.patch x86-ioremap-add-checks-for-virtual-addresses.patch x86-ioremap-add-checks-for-virtual-addresses-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html