All of lore.kernel.org
 help / color / mirror / Atom feed
From: Josh Triplett <josh@joshtriplett.org>
To: Linus Torvalds <torvalds@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, Suresh Siddha <suresh.b.siddha@intel.com>,
	Joerg Roedel <joerg.roedel@amd.com>,
	Alexander Gordeev <agordeev@redhat.com>,
	Yinghai Lu <yinghai@kernel.org>,
	linux-kernel@vger.kernel.org
Cc: Josh Triplett <josh@joshtriplett.org>
Subject: [PATCH 05/58] x86: Only define default_init_apic_ldr for 32-bit
Date: Sun, 18 Nov 2012 21:27:44 -0800	[thread overview]
Message-ID: <1353302917-13995-6-git-send-email-josh@joshtriplett.org> (raw)
In-Reply-To: <1353302917-13995-1-git-send-email-josh@joshtriplett.org>

default_init_apic_ldr only exists for use in the 32-bit-only
arch/x86/kernel/apic/probe_32.c, and asm/apic.h prototypes it in an
ifdef CONFIG_X86_32 block, but arch/x86/kernel/apic/apic.c defines the
function unconditionally.  Wrap the definition in an ifdef CONFIG_X86_32
block.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
---
 arch/x86/kernel/apic/apic.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 5a92aeb..bce0492 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -2113,6 +2113,7 @@ int hard_smp_processor_id(void)
 	return read_apic_id();
 }
 
+#ifdef CONFIG_X86_32
 void default_init_apic_ldr(void)
 {
 	unsigned long val;
@@ -2122,6 +2123,7 @@ void default_init_apic_ldr(void)
 	val |= SET_APIC_LOGICAL_ID(1UL << smp_processor_id());
 	apic_write(APIC_LDR, val);
 }
+#endif
 
 int default_cpu_mask_to_apicid_and(const struct cpumask *cpumask,
 				   const struct cpumask *andmask,
-- 
1.7.10.4


  parent reply	other threads:[~2012-11-19  5:29 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19  5:27 [PATCH 00/58] Eliminate GCC -Wmissing-prototypes warnings from allnoconfig Josh Triplett
2012-11-19  5:27 ` [PATCH 01/58] pty: Mark pty_resize static Josh Triplett
2012-11-19  5:27 ` [PATCH 02/58] drivers/tty/vt/vt_ioctl.c: Include <linux/suspend.h> for pm_set_vt_switch Josh Triplett
2012-11-19  5:27 ` [PATCH 03/58] sched: Mark scale_rt_power static Josh Triplett
2012-11-19  5:27 ` [PATCH 04/58] x86: apic: Mark enable_IR static Josh Triplett
2012-11-19  5:27 ` Josh Triplett [this message]
2012-11-19  5:27 ` [PATCH 06/58] trace: Mark tracing_dentry_percpu static Josh Triplett
2013-02-03 19:15   ` [tip:perf/core] tracing: Mark tracing_dentry_percpu() static tip-bot for Josh Triplett
2012-11-19  5:27 ` [PATCH 07/58] lib/iommu-helper.c: Include <linux/iommu-helper.h> for function prototypes Josh Triplett
2012-11-19  5:27 ` [PATCH 08/58] tty: Mark tty_del_file and __tty_hangup static Josh Triplett
2012-11-19  5:27 ` [PATCH 09/58] fs/locks.c: Mark generic_add_lease and generic_delete_lease static Josh Triplett
2012-11-19  5:27 ` [PATCH 10/58] swiotlb: Prototype swiotlb_late_init_with_default_size in swiotlb.h Josh Triplett
2012-11-19  5:27   ` Josh Triplett
2012-11-19  5:27 ` [PATCH 11/58] tty: Mark sysfs_attr_ns static Josh Triplett
2012-11-21 23:18   ` Greg Kroah-Hartman
2012-11-19  5:27 ` [PATCH 12/58] linux/irq_work.h: Add prototype for arch_irq_work_raise Josh Triplett
2012-11-19  5:27 ` [PATCH 13/58] RCU: Make rcu_is_cpu_rrupt_from_idle helper functions static Josh Triplett
2012-11-20 17:57   ` Paul E. McKenney
2012-11-19  5:27 ` [PATCH 14/58] x86: Mark EVT_TO_HPET_DEV static Josh Triplett
2012-11-19  5:27 ` [PATCH 15/58] kernel/time/timekeeping.c: Include tick-internal.h for do_timer prototype Josh Triplett
2012-11-19  5:27 ` [PATCH 16/58] drivers/base/core.c: Mark to_root_device static Josh Triplett
2012-11-19  5:27 ` [PATCH 17/58] arch/x86/kernel/cpu/perf_event_intel_uncore.c: Mark internal functions static Josh Triplett
2012-11-19  5:27 ` [PATCH 18/58] mm: bootmem: Declare internal ___alloc_bootmem_node function static Josh Triplett
2012-11-19  5:27   ` Josh Triplett
2012-11-19  5:27 ` [PATCH 19/58] block: Mark __blkdev_issue_zeroout static Josh Triplett
2012-11-19  5:27 ` [PATCH 20/58] kernel/events/hw_breakpoint.c: Make hw_breakpoint_weight static Josh Triplett
2012-11-19  5:28 ` [PATCH 21/58] kernel/events/core.c: Mark internal function static Josh Triplett
2012-11-19  5:28 ` [PATCH 22/58] arch/x86/kernel/cpu/common.c: Mark cpu_detect_tlb static Josh Triplett
2012-11-20  1:40   ` Alex Shi
2012-11-19  5:28 ` [PATCH 23/58] mm: Avoid defining set_iounmap_nonlazy on non-x86 Josh Triplett
2012-11-19  5:28   ` Josh Triplett
2012-11-19  5:28 ` [PATCH 24/58] mm: include/linux/huge_mm.h: Declare is_vma_temporary_stack unconditionally Josh Triplett
2012-11-19 21:36   ` David Rientjes
2012-11-19  5:28 ` [PATCH 25/58] mm: include/linux/huge_mm.h: Declare handle_pte_fault unconditionally Josh Triplett
2012-11-19 21:39   ` David Rientjes
2012-11-19  5:28 ` [PATCH 26/58] mm/internal.h: Declare vma_address unconditionally Josh Triplett
2012-11-19  5:28   ` Josh Triplett
2012-11-19  5:28 ` [PATCH 27/58] x86: apic: Make apic_flat_64.c include asm/apic_flat_64.h for flat_init_apic_ldr prototype Josh Triplett
2012-11-19  5:28 ` [PATCH 28/58] x86: io_apic: Don't define acpi_get_override_irq if CONFIG_ACPI=n Josh Triplett
2012-11-19  5:28 ` [PATCH 29/58] mm: Make copy_pte_range static Josh Triplett
2012-11-19  5:28   ` Josh Triplett
2012-11-19 21:40   ` David Rientjes
2012-11-19 21:40     ` David Rientjes
2012-11-19  5:28 ` [PATCH 30/58] block: Eliminate unused function kblockd_schedule_delayed_work Josh Triplett
2012-11-19  5:28 ` [PATCH 31/58] perf: cgroup: Drop unused perf_cgroup_switch stub Josh Triplett
2012-11-19  5:28 ` [PATCH 32/58] kernel/resource.c: Include linux/mm.h for page_is_ram prototype Josh Triplett
2012-11-19  5:28 ` [PATCH 33/58] kernel/resource.c: Make internal function reallocate_resource static Josh Triplett
2012-11-19  7:08   ` Ram Pai
2012-11-19  5:28 ` [PATCH 34/58] kbuild: kernel/bounds.c: Add prototype for dummy function foo Josh Triplett
2012-11-19  5:28 ` [PATCH 35/58] x86: arch/x86/kernel/asm-offsets.c: Add prototype for dummy function common Josh Triplett
2012-11-19  5:28 ` [PATCH 36/58] kernel/fork.c: Add prototype for __weak stub of arch_release_thread_info Josh Triplett
2012-11-19  5:28 ` [PATCH 37/58] kernel/fork.c: Add prototype for fork_init Josh Triplett
2012-11-19  5:28 ` [PATCH 38/58] block: Mark internal function blk_drain_queue static Josh Triplett
2012-11-19  5:28 ` [PATCH 39/58] kernel/events/core.c: Add prototype for __weak stub of arch_perf_update_userpage Josh Triplett
2012-11-19  5:28 ` [PATCH 40/58] panic: Add prototype for __weak stub of panic_smp_self_stop Josh Triplett
2012-11-19  5:28 ` [PATCH 41/58] init/calibrate.c: Add prototype for __weak stub of calibrate_delay_is_known Josh Triplett
2012-11-19  5:28 ` [PATCH 42/58] kernel/events/hw_breakpoint.c: Add prototype for __weak stub of arch_unregister_hw_breakpoint Josh Triplett
2012-11-19  5:28 ` [PATCH 43/58] mm: Mark fallback version of __early_pfn_to_nid static Josh Triplett
2012-11-19  5:28   ` Josh Triplett
2012-11-19  5:28 ` [PATCH 44/58] mm: Only define is_pageblock_removable_nolock when needed Josh Triplett
2012-11-19  5:28   ` Josh Triplett
2012-11-19  5:28 ` [PATCH 45/58] x86: Fix prototype for renamed function smp_threshold_interrupt Josh Triplett
2012-11-19 18:27   ` Kees Cook
2012-11-19  5:28 ` [PATCH 46/58] x86: arch/x86/kernel/irqinit.c: Add prototype for init_IRQ Josh Triplett
2012-11-19  5:28 ` [PATCH 47/58] x86: arch/x86/kernel/process.c: Include asm/switch_to.h for __switch_to_xtra prototype Josh Triplett
2012-11-19  5:28 ` [PATCH 48/58] x86: arch/x86/kernel/time.c: Include asm/setup.h for setup_default_timer_irq prototype Josh Triplett
2012-11-19  5:28 ` [PATCH 49/58] x86: init: Mark internal functions iommu_init_noop and iommu_shutdown_noop static Josh Triplett
2012-11-19  5:28 ` [PATCH 50/58] x86: arch/x86/kernel/irq_work.c: Add prototype for smp_irq_work_interrupt Josh Triplett
2012-11-19  5:28 ` [PATCH 51/58] x86: perf: Add prototype for arch_perf_update_userpage Josh Triplett
2012-11-19  5:28 ` [PATCH 52/58] x86: vdso: Add prototypes for __vdso_* functions Josh Triplett
2012-11-19 20:04   ` Andy Lutomirski
2012-11-19 20:37     ` Josh Triplett
2012-11-19 22:44       ` Andy Lutomirski
2012-11-19 22:46         ` H. Peter Anvin
2012-11-19  5:28 ` [PATCH 53/58] linux/syscalls.h: Add prototypes for sys_rt_sigaction and sys_rt_sigsuspend Josh Triplett
2012-11-19  5:28 ` [PATCH 54/58] linux/syscalls.h: Include asm/syscalls.h for additional prototypes Josh Triplett
2012-11-19  5:28 ` [PATCH 55/58] sched: Add prototype for sched_set_stop_task Josh Triplett
2012-11-19  5:28 ` [PATCH 56/58] sched: Only define init_cfs_bandwidth stub when CONFIG_FAIR_GROUP_SCHED=y Josh Triplett
2012-11-19  5:28 ` [PATCH 57/58] sched: Move stubs for CONFIG_FAIR_GROUP_SCHED=n to sched.h Josh Triplett
2012-11-19  5:28 ` [PATCH 58/58] sched: Move stubs for CONFIG_RT_GROUP_SCHED=n " Josh Triplett
2012-11-19 10:36 ` [PATCH 46/58] x86: arch/x86/kernel/irqinit.c: Add prototype for init_IRQ David Howells
2012-11-19 17:08   ` Josh Triplett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1353302917-13995-6-git-send-email-josh@joshtriplett.org \
    --to=josh@joshtriplett.org \
    --cc=agordeev@redhat.com \
    --cc=hpa@zytor.com \
    --cc=joerg.roedel@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=suresh.b.siddha@intel.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.org \
    --cc=yinghai@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.