diff options
author | Borislav Petkov <bp@suse.de> | 2018-12-04 18:34:56 -0500 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2018-12-08 06:24:35 -0500 |
commit | ad3bc25a320742f42b3015115384f5aec69c7ce2 (patch) | |
tree | 3252fca31e82bc8efb922b0faf763e078a8afbd3 | |
parent | a97673a1c43d005a3ae215f4ca8b4bbb5691aea1 (diff) |
x86/kernel: Fix more -Wmissing-prototypes warnings
... with the goal of eventually enabling -Wmissing-prototypes by
default. At least on x86.
Make functions static where possible, otherwise add prototypes or make
them visible through includes.
asm/trace/ changes courtesy of Steven Rostedt <rostedt@goodmis.org>.
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> # ACPI + cpufreq bits
Cc: Andrew Banman <andrew.banman@hpe.com>
Cc: Dimitri Sivanich <dimitri.sivanich@hpe.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mike Travis <mike.travis@hpe.com>
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yi Wang <wang.yi59@zte.com.cn>
Cc: linux-acpi@vger.kernel.org
-rw-r--r-- | arch/x86/include/asm/setup.h | 3 | ||||
-rw-r--r-- | arch/x86/include/asm/trace/exceptions.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/trace/irq_vectors.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/traps.h | 5 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic_flat_64.c | 7 | ||||
-rw-r--r-- | arch/x86/kernel/apic/vector.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/apic/x2apic_uv_x.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/asm-offsets.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/aperfmperf.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/bugs.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/cacheinfo.c | 1 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/scattered.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/cpu/topology.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/fpu/xstate.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/kprobes/core.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/sysfb_efi.c | 3 | ||||
-rw-r--r-- | arch/x86/kernel/tracepoint.c | 1 | ||||
-rw-r--r-- | include/acpi/cppc_acpi.h | 3 | ||||
-rw-r--r-- | include/linux/kprobes.h | 3 |
21 files changed, 42 insertions, 8 deletions
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index ae13bc974416..ed8ec011a9fd 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
@@ -46,6 +46,9 @@ extern unsigned long saved_video_mode; | |||
46 | 46 | ||
47 | extern void reserve_standard_io_resources(void); | 47 | extern void reserve_standard_io_resources(void); |
48 | extern void i386_reserve_resources(void); | 48 | extern void i386_reserve_resources(void); |
49 | extern unsigned long __startup_64(unsigned long physaddr, struct boot_params *bp); | ||
50 | extern unsigned long __startup_secondary_64(void); | ||
51 | extern int early_make_pgtable(unsigned long address); | ||
49 | 52 | ||
50 | #ifdef CONFIG_X86_INTEL_MID | 53 | #ifdef CONFIG_X86_INTEL_MID |
51 | extern void x86_intel_mid_early_setup(void); | 54 | extern void x86_intel_mid_early_setup(void); |
diff --git a/arch/x86/include/asm/trace/exceptions.h b/arch/x86/include/asm/trace/exceptions.h index 69615e387973..e0e6d7f21399 100644 --- a/arch/x86/include/asm/trace/exceptions.h +++ b/arch/x86/include/asm/trace/exceptions.h | |||
@@ -45,6 +45,7 @@ DEFINE_PAGE_FAULT_EVENT(page_fault_user); | |||
45 | DEFINE_PAGE_FAULT_EVENT(page_fault_kernel); | 45 | DEFINE_PAGE_FAULT_EVENT(page_fault_kernel); |
46 | 46 | ||
47 | #undef TRACE_INCLUDE_PATH | 47 | #undef TRACE_INCLUDE_PATH |
48 | #undef TRACE_INCLUDE_FILE | ||
48 | #define TRACE_INCLUDE_PATH . | 49 | #define TRACE_INCLUDE_PATH . |
49 | #define TRACE_INCLUDE_FILE exceptions | 50 | #define TRACE_INCLUDE_FILE exceptions |
50 | #endif /* _TRACE_PAGE_FAULT_H */ | 51 | #endif /* _TRACE_PAGE_FAULT_H */ |
diff --git a/arch/x86/include/asm/trace/irq_vectors.h b/arch/x86/include/asm/trace/irq_vectors.h index 0af81b590a0c..33b9d0f0aafe 100644 --- a/arch/x86/include/asm/trace/irq_vectors.h +++ b/arch/x86/include/asm/trace/irq_vectors.h | |||
@@ -389,6 +389,7 @@ TRACE_EVENT(vector_free_moved, | |||
389 | #endif /* CONFIG_X86_LOCAL_APIC */ | 389 | #endif /* CONFIG_X86_LOCAL_APIC */ |
390 | 390 | ||
391 | #undef TRACE_INCLUDE_PATH | 391 | #undef TRACE_INCLUDE_PATH |
392 | #undef TRACE_INCLUDE_FILE | ||
392 | #define TRACE_INCLUDE_PATH . | 393 | #define TRACE_INCLUDE_PATH . |
393 | #define TRACE_INCLUDE_FILE irq_vectors | 394 | #define TRACE_INCLUDE_FILE irq_vectors |
394 | #endif /* _TRACE_IRQ_VECTORS_H */ | 395 | #endif /* _TRACE_IRQ_VECTORS_H */ |
diff --git a/arch/x86/include/asm/traps.h b/arch/x86/include/asm/traps.h index 5fcdf5687406..7d6f3f3fad78 100644 --- a/arch/x86/include/asm/traps.h +++ b/arch/x86/include/asm/traps.h | |||
@@ -113,6 +113,11 @@ asmlinkage void smp_threshold_interrupt(struct pt_regs *regs); | |||
113 | asmlinkage void smp_deferred_error_interrupt(struct pt_regs *regs); | 113 | asmlinkage void smp_deferred_error_interrupt(struct pt_regs *regs); |
114 | #endif | 114 | #endif |
115 | 115 | ||
116 | void smp_apic_timer_interrupt(struct pt_regs *regs); | ||
117 | void smp_spurious_interrupt(struct pt_regs *regs); | ||
118 | void smp_error_interrupt(struct pt_regs *regs); | ||
119 | asmlinkage void smp_irq_move_cleanup_interrupt(void); | ||
120 | |||
116 | extern void ist_enter(struct pt_regs *regs); | 121 | extern void ist_enter(struct pt_regs *regs); |
117 | extern void ist_exit(struct pt_regs *regs); | 122 | extern void ist_exit(struct pt_regs *regs); |
118 | extern void ist_begin_non_atomic(struct pt_regs *regs); | 123 | extern void ist_begin_non_atomic(struct pt_regs *regs); |
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 32b2b7a41ef5..b7bcdd781651 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -44,6 +44,7 @@ | |||
44 | #include <asm/mpspec.h> | 44 | #include <asm/mpspec.h> |
45 | #include <asm/i8259.h> | 45 | #include <asm/i8259.h> |
46 | #include <asm/proto.h> | 46 | #include <asm/proto.h> |
47 | #include <asm/traps.h> | ||
47 | #include <asm/apic.h> | 48 | #include <asm/apic.h> |
48 | #include <asm/io_apic.h> | 49 | #include <asm/io_apic.h> |
49 | #include <asm/desc.h> | 50 | #include <asm/desc.h> |
diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c index e84c9eb4e5b4..0005c284a5c5 100644 --- a/arch/x86/kernel/apic/apic_flat_64.c +++ b/arch/x86/kernel/apic/apic_flat_64.c | |||
@@ -8,6 +8,7 @@ | |||
8 | * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and | 8 | * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and |
9 | * James Cleverdon. | 9 | * James Cleverdon. |
10 | */ | 10 | */ |
11 | #include <linux/acpi.h> | ||
11 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
12 | #include <linux/threads.h> | 13 | #include <linux/threads.h> |
13 | #include <linux/cpumask.h> | 14 | #include <linux/cpumask.h> |
@@ -16,13 +17,13 @@ | |||
16 | #include <linux/ctype.h> | 17 | #include <linux/ctype.h> |
17 | #include <linux/hardirq.h> | 18 | #include <linux/hardirq.h> |
18 | #include <linux/export.h> | 19 | #include <linux/export.h> |
20 | |||
19 | #include <asm/smp.h> | 21 | #include <asm/smp.h> |
20 | #include <asm/apic.h> | ||
21 | #include <asm/ipi.h> | 22 | #include <asm/ipi.h> |
23 | #include <asm/apic.h> | ||
24 | #include <asm/apic_flat_64.h> | ||
22 | #include <asm/jailhouse_para.h> | 25 | #include <asm/jailhouse_para.h> |
23 | 26 | ||
24 | #include <linux/acpi.h> | ||
25 | |||
26 | static struct apic apic_physflat; | 27 | static struct apic apic_physflat; |
27 | static struct apic apic_flat; | 28 | static struct apic apic_flat; |
28 | 29 | ||
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index 652e7ffa9b9d..3173e07d3791 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/slab.h> | 18 | #include <linux/slab.h> |
19 | #include <asm/irqdomain.h> | 19 | #include <asm/irqdomain.h> |
20 | #include <asm/hw_irq.h> | 20 | #include <asm/hw_irq.h> |
21 | #include <asm/traps.h> | ||
21 | #include <asm/apic.h> | 22 | #include <asm/apic.h> |
22 | #include <asm/i8259.h> | 23 | #include <asm/i8259.h> |
23 | #include <asm/desc.h> | 24 | #include <asm/desc.h> |
diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index 391f358ebb4c..a555da094157 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c | |||
@@ -1079,7 +1079,7 @@ late_initcall(uv_init_heartbeat); | |||
1079 | #endif /* !CONFIG_HOTPLUG_CPU */ | 1079 | #endif /* !CONFIG_HOTPLUG_CPU */ |
1080 | 1080 | ||
1081 | /* Direct Legacy VGA I/O traffic to designated IOH */ | 1081 | /* Direct Legacy VGA I/O traffic to designated IOH */ |
1082 | int uv_set_vga_state(struct pci_dev *pdev, bool decode, unsigned int command_bits, u32 flags) | 1082 | static int uv_set_vga_state(struct pci_dev *pdev, bool decode, unsigned int command_bits, u32 flags) |
1083 | { | 1083 | { |
1084 | int domain, bus, rc; | 1084 | int domain, bus, rc; |
1085 | 1085 | ||
@@ -1148,7 +1148,7 @@ static void get_mn(struct mn *mnp) | |||
1148 | mnp->m_shift = mnp->m_val ? 64 - mnp->m_val : 0; | 1148 | mnp->m_shift = mnp->m_val ? 64 - mnp->m_val : 0; |
1149 | } | 1149 | } |
1150 | 1150 | ||
1151 | void __init uv_init_hub_info(struct uv_hub_info_s *hi) | 1151 | static void __init uv_init_hub_info(struct uv_hub_info_s *hi) |
1152 | { | 1152 | { |
1153 | union uvh_node_id_u node_id; | 1153 | union uvh_node_id_u node_id; |
1154 | struct mn mn; | 1154 | struct mn mn; |
diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c index 72adf6c335dc..168543d077d7 100644 --- a/arch/x86/kernel/asm-offsets.c +++ b/arch/x86/kernel/asm-offsets.c | |||
@@ -29,7 +29,8 @@ | |||
29 | # include "asm-offsets_64.c" | 29 | # include "asm-offsets_64.c" |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | void common(void) { | 32 | static void __used common(void) |
33 | { | ||
33 | BLANK(); | 34 | BLANK(); |
34 | OFFSET(TASK_threadsp, task_struct, thread.sp); | 35 | OFFSET(TASK_threadsp, task_struct, thread.sp); |
35 | #ifdef CONFIG_STACKPROTECTOR | 36 | #ifdef CONFIG_STACKPROTECTOR |
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index eeea634bee0a..69f6bbb41be0 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <asm/smp.h> | 15 | #include <asm/smp.h> |
16 | #include <asm/pci-direct.h> | 16 | #include <asm/pci-direct.h> |
17 | #include <asm/delay.h> | 17 | #include <asm/delay.h> |
18 | #include <asm/debugreg.h> | ||
18 | 19 | ||
19 | #ifdef CONFIG_X86_64 | 20 | #ifdef CONFIG_X86_64 |
20 | # include <asm/mmconfig.h> | 21 | # include <asm/mmconfig.h> |
diff --git a/arch/x86/kernel/cpu/aperfmperf.c b/arch/x86/kernel/cpu/aperfmperf.c index 7eba34df54c3..804c49493938 100644 --- a/arch/x86/kernel/cpu/aperfmperf.c +++ b/arch/x86/kernel/cpu/aperfmperf.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/ktime.h> | 12 | #include <linux/ktime.h> |
13 | #include <linux/math64.h> | 13 | #include <linux/math64.h> |
14 | #include <linux/percpu.h> | 14 | #include <linux/percpu.h> |
15 | #include <linux/cpufreq.h> | ||
15 | #include <linux/smp.h> | 16 | #include <linux/smp.h> |
16 | 17 | ||
17 | #include "cpu.h" | 18 | #include "cpu.h" |
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 500278f5308e..923e954a0075 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c | |||
@@ -32,6 +32,8 @@ | |||
32 | #include <asm/e820/api.h> | 32 | #include <asm/e820/api.h> |
33 | #include <asm/hypervisor.h> | 33 | #include <asm/hypervisor.h> |
34 | 34 | ||
35 | #include "cpu.h" | ||
36 | |||
35 | static void __init spectre_v2_select_mitigation(void); | 37 | static void __init spectre_v2_select_mitigation(void); |
36 | static void __init ssb_select_mitigation(void); | 38 | static void __init ssb_select_mitigation(void); |
37 | static void __init l1tf_select_mitigation(void); | 39 | static void __init l1tf_select_mitigation(void); |
diff --git a/arch/x86/kernel/cpu/cacheinfo.c b/arch/x86/kernel/cpu/cacheinfo.c index dc1b9342e9c4..c4d1023fb0ab 100644 --- a/arch/x86/kernel/cpu/cacheinfo.c +++ b/arch/x86/kernel/cpu/cacheinfo.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/pci.h> | 17 | #include <linux/pci.h> |
18 | 18 | ||
19 | #include <asm/cpufeature.h> | 19 | #include <asm/cpufeature.h> |
20 | #include <asm/cacheinfo.h> | ||
20 | #include <asm/amd_nb.h> | 21 | #include <asm/amd_nb.h> |
21 | #include <asm/smp.h> | 22 | #include <asm/smp.h> |
22 | 23 | ||
diff --git a/arch/x86/kernel/cpu/scattered.c b/arch/x86/kernel/cpu/scattered.c index 772c219b6889..389168fa6e24 100644 --- a/arch/x86/kernel/cpu/scattered.c +++ b/arch/x86/kernel/cpu/scattered.c | |||
@@ -5,9 +5,10 @@ | |||
5 | #include <linux/cpu.h> | 5 | #include <linux/cpu.h> |
6 | 6 | ||
7 | #include <asm/pat.h> | 7 | #include <asm/pat.h> |
8 | #include <asm/apic.h> | ||
8 | #include <asm/processor.h> | 9 | #include <asm/processor.h> |
9 | 10 | ||
10 | #include <asm/apic.h> | 11 | #include "cpu.h" |
11 | 12 | ||
12 | struct cpuid_bit { | 13 | struct cpuid_bit { |
13 | u16 feature; | 14 | u16 feature; |
diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c index 71ca064e3794..8f6c784141d1 100644 --- a/arch/x86/kernel/cpu/topology.c +++ b/arch/x86/kernel/cpu/topology.c | |||
@@ -10,6 +10,8 @@ | |||
10 | #include <asm/pat.h> | 10 | #include <asm/pat.h> |
11 | #include <asm/processor.h> | 11 | #include <asm/processor.h> |
12 | 12 | ||
13 | #include "cpu.h" | ||
14 | |||
13 | /* leaf 0xb SMT level */ | 15 | /* leaf 0xb SMT level */ |
14 | #define SMT_LEVEL 0 | 16 | #define SMT_LEVEL 0 |
15 | 17 | ||
diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c index 87a57b7642d3..cd3956fc8158 100644 --- a/arch/x86/kernel/fpu/xstate.c +++ b/arch/x86/kernel/fpu/xstate.c | |||
@@ -811,7 +811,7 @@ void fpu__resume_cpu(void) | |||
811 | * | 811 | * |
812 | * Note: does not work for compacted buffers. | 812 | * Note: does not work for compacted buffers. |
813 | */ | 813 | */ |
814 | void *__raw_xsave_addr(struct xregs_state *xsave, int xstate_feature_mask) | 814 | static void *__raw_xsave_addr(struct xregs_state *xsave, int xstate_feature_mask) |
815 | { | 815 | { |
816 | int feature_nr = fls64(xstate_feature_mask) - 1; | 816 | int feature_nr = fls64(xstate_feature_mask) - 1; |
817 | 817 | ||
diff --git a/arch/x86/kernel/kprobes/core.c b/arch/x86/kernel/kprobes/core.c index c33b06f5faa4..6480056d370f 100644 --- a/arch/x86/kernel/kprobes/core.c +++ b/arch/x86/kernel/kprobes/core.c | |||
@@ -66,6 +66,8 @@ | |||
66 | 66 | ||
67 | #include "common.h" | 67 | #include "common.h" |
68 | 68 | ||
69 | void *trampoline_handler(struct pt_regs *regs); | ||
70 | |||
69 | DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; | 71 | DEFINE_PER_CPU(struct kprobe *, current_kprobe) = NULL; |
70 | DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk); | 72 | DEFINE_PER_CPU(struct kprobe_ctlblk, kprobe_ctlblk); |
71 | 73 | ||
diff --git a/arch/x86/kernel/sysfb_efi.c b/arch/x86/kernel/sysfb_efi.c index 623965e86b65..fa51723571c8 100644 --- a/arch/x86/kernel/sysfb_efi.c +++ b/arch/x86/kernel/sysfb_efi.c | |||
@@ -19,12 +19,15 @@ | |||
19 | 19 | ||
20 | #include <linux/dmi.h> | 20 | #include <linux/dmi.h> |
21 | #include <linux/err.h> | 21 | #include <linux/err.h> |
22 | #include <linux/efi.h> | ||
22 | #include <linux/init.h> | 23 | #include <linux/init.h> |
23 | #include <linux/kernel.h> | 24 | #include <linux/kernel.h> |
24 | #include <linux/mm.h> | 25 | #include <linux/mm.h> |
25 | #include <linux/pci.h> | 26 | #include <linux/pci.h> |
26 | #include <linux/screen_info.h> | 27 | #include <linux/screen_info.h> |
27 | #include <video/vga.h> | 28 | #include <video/vga.h> |
29 | |||
30 | #include <asm/efi.h> | ||
28 | #include <asm/sysfb.h> | 31 | #include <asm/sysfb.h> |
29 | 32 | ||
30 | enum { | 33 | enum { |
diff --git a/arch/x86/kernel/tracepoint.c b/arch/x86/kernel/tracepoint.c index 2e85f4dcf77b..496748ed266a 100644 --- a/arch/x86/kernel/tracepoint.c +++ b/arch/x86/kernel/tracepoint.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <asm/hw_irq.h> | 11 | #include <asm/hw_irq.h> |
12 | #include <asm/desc.h> | 12 | #include <asm/desc.h> |
13 | #include <asm/trace/exceptions.h> | 13 | #include <asm/trace/exceptions.h> |
14 | #include <asm/trace/irq_vectors.h> | ||
14 | 15 | ||
15 | DEFINE_STATIC_KEY_FALSE(trace_pagefault_key); | 16 | DEFINE_STATIC_KEY_FALSE(trace_pagefault_key); |
16 | 17 | ||
diff --git a/include/acpi/cppc_acpi.h b/include/acpi/cppc_acpi.h index cf59e6210d27..4f34734e7f36 100644 --- a/include/acpi/cppc_acpi.h +++ b/include/acpi/cppc_acpi.h | |||
@@ -142,5 +142,8 @@ extern int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls); | |||
142 | extern int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps); | 142 | extern int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps); |
143 | extern int acpi_get_psd_map(struct cppc_cpudata **); | 143 | extern int acpi_get_psd_map(struct cppc_cpudata **); |
144 | extern unsigned int cppc_get_transition_latency(int cpu); | 144 | extern unsigned int cppc_get_transition_latency(int cpu); |
145 | extern bool cpc_ffh_supported(void); | ||
146 | extern int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val); | ||
147 | extern int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val); | ||
145 | 148 | ||
146 | #endif /* _CPPC_ACPI_H*/ | 149 | #endif /* _CPPC_ACPI_H*/ |
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index e909413e4e38..e64b26c81c2f 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h | |||
@@ -379,6 +379,9 @@ int enable_kprobe(struct kprobe *kp); | |||
379 | 379 | ||
380 | void dump_kprobe(struct kprobe *kp); | 380 | void dump_kprobe(struct kprobe *kp); |
381 | 381 | ||
382 | void *alloc_insn_page(void); | ||
383 | void free_insn_page(void *page); | ||
384 | |||
382 | #else /* !CONFIG_KPROBES: */ | 385 | #else /* !CONFIG_KPROBES: */ |
383 | 386 | ||
384 | static inline int kprobes_built_in(void) | 387 | static inline int kprobes_built_in(void) |