History

Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 cleanups from Ingo Molnar: "Various cleanups and simplifications, none of them really stands out, they are all over the place" * 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/uaccess: Remove unused __addr_ok() macro x86/smpboot: Remove unused phys_id variable x86/mm/dump_pagetables: Remove the unused prev_pud variable x86/fpu: Move init_xstate_size() to __init section x86/cpu_entry_area: Move percpu_setup_debug_store() to __init section x86/mtrr: Remove unused variable x86/boot/compressed/64: Explain paging_prepare()'s return value x86/resctrl: Remove duplicate MSR_MISC_FEATURE_CONTROL definition x86/asm/suspend: Drop ENTRY from local data x86/hw_breakpoints, kprobes: Remove kprobes ifdeffery x86/boot: Save several bytes in decompressor x86/trap: Remove useless declaration x86/mm/tlb: Remove unused cpu variable x86/events: Mark expected switch-case fall-throughs x86/asm-prototypes: Remove duplicate include <asm/page.h> x86/kernel: Mark expected switch-case fall-throughs x86/insn-eval: Mark expected switch-case fall-through x86/platform/UV: Replace kmalloc() and memset() with k[cz]alloc() calls x86/e820: Replace kmalloc() + memcpy() with kmemdup()

Linus Torvalds committed 7 years ago

Commit bcd49c32 parents f14b5f0 2e7614c24 files · +38 −55Browse files

Unified · Split

24 files
  1. arch/x86/boot/compressed/head_64.S +6 −5
  2. arch/x86/events/intel/core.c +2 −0
  3. arch/x86/events/intel/lbr.c +1 −0
  4. arch/x86/include/asm/asm-prototypes.h +0 −1
  5. arch/x86/include/asm/processor.h +0 −1
  6. arch/x86/include/asm/uaccess.h +0 −3
  7. arch/x86/kernel/acpi/wakeup_32.S +1 −1
  8. arch/x86/kernel/acpi/wakeup_64.S +6 −6
  9. arch/x86/kernel/apic/io_apic.c +2 −0
  10. arch/x86/kernel/cpu/cacheinfo.c +1 −0
  11. arch/x86/kernel/cpu/mtrr/cleanup.c +1 −2
  12. arch/x86/kernel/cpu/resctrl/pseudo_lock.c +0 −7
  13. arch/x86/kernel/e820.c +3 −6
  14. arch/x86/kernel/fpu/xstate.c +1 −1
  15. arch/x86/kernel/hw_breakpoint.c +1 −4
  16. arch/x86/kernel/kgdb.c +1 −0
  17. arch/x86/kernel/smpboot.c +1 −6
  18. arch/x86/kernel/uprobes.c +1 −0
  19. arch/x86/lib/insn-eval.c +2 −0
  20. arch/x86/mm/cpu_entry_area.c +1 −1
  21. arch/x86/mm/dump_pagetables.c +0 −2
  22. arch/x86/mm/tlb.c +0 −3
  23. arch/x86/platform/uv/tlb_uv.c +2 −6
  24. include/linux/kprobes.h +5 −0
arch/x86/boot/compressed/head_64.S+6−5
@@ -358,8 +358,11 @@ ENTRY(startup_64) · 357 unmodified lines
358 * paging_prepare() sets up the trampoline and checks if we need to358 * paging_prepare() sets up the trampoline and checks if we need to
359 * enable 5-level paging.359 * enable 5-level paging.
360 *360 *
361 * Address of the trampoline is returned in RAX.361 * paging_prepare() returns a two-quadword structure which lands
362 * Non zero RDX on return means we need to enable 5-level paging.362 * into RDX:RAX:
363 * - Address of the trampoline is returned in RAX.
364 * - Non zero RDX means trampoline needs to enable 5-level
365 * paging.
363 *366 *
364 * RSI holds real mode data and needs to be preserved across367 * RSI holds real mode data and needs to be preserved across
365 * this function call.368 * this function call.
@@ -565,7 +568,7 @@ adjust_got: · 199 unmodified lines
565 *568 *
566 * RDI contains the return address (might be above 4G).569 * RDI contains the return address (might be above 4G).
567 * ECX contains the base address of the trampoline memory.570 * ECX contains the base address of the trampoline memory.
568 * Non zero RDX on return means we need to enable 5-level paging.571 * Non zero RDX means trampoline needs to enable 5-level paging.
569 */572 */
570ENTRY(trampoline_32bit_src)573ENTRY(trampoline_32bit_src)
571 /* Set up data and stack segments */574 /* Set up data and stack segments */
@@ -655,8 +658,6 @@ no_longmode: · 83 unmodified lines
655 .data658 .data
656gdt64:659gdt64:
657 .word gdt_end - gdt660 .word gdt_end - gdt
658 .long 0
659 .word 0
660 .quad 0661 .quad 0
661gdt:662gdt:
662 .word gdt_end - gdt663 .word gdt_end - gdt
arch/x86/events/intel/core.c+2−0
@@ -4220,6 +4220,8 @@ __init int intel_pmu_init(void) · 4219 unmodified lines
4220 4220
4221 case INTEL_FAM6_CORE2_MEROM:4221 case INTEL_FAM6_CORE2_MEROM:
4222 x86_add_quirk(intel_clovertown_quirk);4222 x86_add_quirk(intel_clovertown_quirk);
4223 /* fall through */
4224
4223 case INTEL_FAM6_CORE2_MEROM_L:4225 case INTEL_FAM6_CORE2_MEROM_L:
4224 case INTEL_FAM6_CORE2_PENRYN:4226 case INTEL_FAM6_CORE2_PENRYN:
4225 case INTEL_FAM6_CORE2_DUNNINGTON:4227 case INTEL_FAM6_CORE2_DUNNINGTON:
arch/x86/events/intel/lbr.c+1−0
@@ -931,6 +931,7 @@ static int branch_type(unsigned long from, unsigned long to, int abort) · 930 unmodified lines
931 ret = X86_BR_ZERO_CALL;931 ret = X86_BR_ZERO_CALL;
932 break;932 break;
933 }933 }
934 /* fall through */
934 case 0x9a: /* call far absolute */935 case 0x9a: /* call far absolute */
935 ret = X86_BR_CALL;936 ret = X86_BR_CALL;
936 break;937 break;
arch/x86/include/asm/asm-prototypes.h+0−1
@@ -7,7 +7,6 @@ · 6 unmodified lines
7 7
8#include <asm-generic/asm-prototypes.h>8#include <asm-generic/asm-prototypes.h>
9 9
10#include <asm/page.h>
11#include <asm/pgtable.h>10#include <asm/pgtable.h>
12#include <asm/special_insns.h>11#include <asm/special_insns.h>
13#include <asm/preempt.h>12#include <asm/preempt.h>
arch/x86/include/asm/processor.h+0−1
@@ -742,7 +742,6 @@ enum idle_boot_override {IDLE_NO_OVERRIDE=0, IDLE_HALT, IDLE_NOMWAIT, · 741 unmodified lines
742extern void enable_sep_cpu(void);742extern void enable_sep_cpu(void);
743extern int sysenter_setup(void);743extern int sysenter_setup(void);
744 744
745void early_trap_pf_init(void);
746 745
747/* Defined in head.S */746/* Defined in head.S */
748extern struct desc_ptr early_gdt_descr;747extern struct desc_ptr early_gdt_descr;
arch/x86/include/asm/uaccess.h+0−3
@@ -34,10 +34,7 @@ static inline void set_fs(mm_segment_t fs) · 33 unmodified lines
34}34}
35 35
36#define segment_eq(a, b) ((a).seg == (b).seg)36#define segment_eq(a, b) ((a).seg == (b).seg)
37
38#define user_addr_max() (current->thread.addr_limit.seg)37#define user_addr_max() (current->thread.addr_limit.seg)
39#define __addr_ok(addr) \
40 ((unsigned long __force)(addr) < user_addr_max())
41 38
42/*39/*
43 * Test whether a block of memory is a valid user space address.40 * Test whether a block of memory is a valid user space address.
arch/x86/kernel/acpi/wakeup_32.S+1−1
@@ -90,7 +90,7 @@ ret_point: · 89 unmodified lines
90.data90.data
91ALIGN91ALIGN
92ENTRY(saved_magic) .long 092ENTRY(saved_magic) .long 0
93ENTRY(saved_eip) .long 093saved_eip: .long 0
94 94
95# saved registers95# saved registers
96saved_idt: .long 0,096saved_idt: .long 0,0
arch/x86/kernel/acpi/wakeup_64.S+6−6
@@ -125,12 +125,12 @@ ENTRY(do_suspend_lowlevel) · 124 unmodified lines
125ENDPROC(do_suspend_lowlevel)125ENDPROC(do_suspend_lowlevel)
126 126
127.data127.data
128ENTRY(saved_rbp) .quad 0128saved_rbp: .quad 0
129ENTRY(saved_rsi) .quad 0129saved_rsi: .quad 0
130ENTRY(saved_rdi) .quad 0130saved_rdi: .quad 0
131ENTRY(saved_rbx) .quad 0131saved_rbx: .quad 0
132 132
133ENTRY(saved_rip) .quad 0133saved_rip: .quad 0
134ENTRY(saved_rsp) .quad 0134saved_rsp: .quad 0
135 135
136ENTRY(saved_magic) .quad 0136ENTRY(saved_magic) .quad 0
arch/x86/kernel/apic/io_apic.c+2−0
@@ -812,6 +812,7 @@ static int irq_polarity(int idx) · 811 unmodified lines
812 return IOAPIC_POL_HIGH;812 return IOAPIC_POL_HIGH;
813 case MP_IRQPOL_RESERVED:813 case MP_IRQPOL_RESERVED:
814 pr_warn("IOAPIC: Invalid polarity: 2, defaulting to low\n");814 pr_warn("IOAPIC: Invalid polarity: 2, defaulting to low\n");
815 /* fall through */
815 case MP_IRQPOL_ACTIVE_LOW:816 case MP_IRQPOL_ACTIVE_LOW:
816 default: /* Pointless default required due to do gcc stupidity */817 default: /* Pointless default required due to do gcc stupidity */
817 return IOAPIC_POL_LOW;818 return IOAPIC_POL_LOW;
@@ -859,6 +860,7 @@ static int irq_trigger(int idx) · 41 unmodified lines
859 return IOAPIC_EDGE;860 return IOAPIC_EDGE;
860 case MP_IRQTRIG_RESERVED:861 case MP_IRQTRIG_RESERVED:
861 pr_warn("IOAPIC: Invalid trigger mode 2 defaulting to level\n");862 pr_warn("IOAPIC: Invalid trigger mode 2 defaulting to level\n");
863 /* fall through */
862 case MP_IRQTRIG_LEVEL:864 case MP_IRQTRIG_LEVEL:
863 default: /* Pointless default required due to do gcc stupidity */865 default: /* Pointless default required due to do gcc stupidity */
864 return IOAPIC_LEVEL;866 return IOAPIC_LEVEL;
arch/x86/kernel/cpu/cacheinfo.c+1−0
@@ -248,6 +248,7 @@ amd_cpuid4(int leaf, union _cpuid4_leaf_eax *eax, · 247 unmodified lines
248 switch (leaf) {248 switch (leaf) {
249 case 1:249 case 1:
250 l1 = &l1i;250 l1 = &l1i;
251 /* fall through */
251 case 0:252 case 0:
252 if (!l1->val)253 if (!l1->val)
253 return;254 return;
arch/x86/kernel/cpu/mtrr/cleanup.c+1−2
@@ -296,7 +296,7 @@ range_to_mtrr_with_hole(struct var_mtrr_state *state, unsigned long basek, · 295 unmodified lines
296 unsigned long sizek)296 unsigned long sizek)
297{297{
298 unsigned long hole_basek, hole_sizek;298 unsigned long hole_basek, hole_sizek;
299 unsigned long second_basek, second_sizek;299 unsigned long second_sizek;
300 unsigned long range0_basek, range0_sizek;300 unsigned long range0_basek, range0_sizek;
301 unsigned long range_basek, range_sizek;301 unsigned long range_basek, range_sizek;
302 unsigned long chunk_sizek;302 unsigned long chunk_sizek;
@@ -304,7 +304,6 @@ range_to_mtrr_with_hole(struct var_mtrr_state *state, unsigned long basek, · 1 unmodified line
304 304
305 hole_basek = 0;305 hole_basek = 0;
306 hole_sizek = 0;306 hole_sizek = 0;
307 second_basek = 0;
308 second_sizek = 0;307 second_sizek = 0;
309 chunk_sizek = state->chunk_sizek;308 chunk_sizek = state->chunk_sizek;
310 gran_sizek = state->gran_sizek;309 gran_sizek = state->gran_sizek;
arch/x86/kernel/cpu/resctrl/pseudo_lock.c+0−7
@@ -33,13 +33,6 @@ · 32 unmodified lines
33#define CREATE_TRACE_POINTS33#define CREATE_TRACE_POINTS
34#include "pseudo_lock_event.h"34#include "pseudo_lock_event.h"
35 35
36/*
37 * MSR_MISC_FEATURE_CONTROL register enables the modification of hardware
38 * prefetcher state. Details about this register can be found in the MSR
39 * tables for specific platforms found in Intel's SDM.
40 */
41#define MSR_MISC_FEATURE_CONTROL 0x000001a4
42
43/*36/*
44 * The bits needed to disable hardware prefetching varies based on the37 * The bits needed to disable hardware prefetching varies based on the
45 * platform. During initialization we will discover which bits to use.38 * platform. During initialization we will discover which bits to use.
arch/x86/kernel/e820.c+3−6
@@ -671,21 +671,18 @@ __init void e820__reallocate_tables(void) · 670 unmodified lines
671 int size;671 int size;
672 672
673 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table->nr_entries;673 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table->nr_entries;
674 n = kmalloc(size, GFP_KERNEL);674 n = kmemdup(e820_table, size, GFP_KERNEL);
675 BUG_ON(!n);675 BUG_ON(!n);
676 memcpy(n, e820_table, size);
677 e820_table = n;676 e820_table = n;
678 677
679 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_kexec->nr_entries;678 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_kexec->nr_entries;
680 n = kmalloc(size, GFP_KERNEL);679 n = kmemdup(e820_table_kexec, size, GFP_KERNEL);
681 BUG_ON(!n);680 BUG_ON(!n);
682 memcpy(n, e820_table_kexec, size);
683 e820_table_kexec = n;681 e820_table_kexec = n;
684 682
685 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_firmware->nr_entries;683 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_firmware->nr_entries;
686 n = kmalloc(size, GFP_KERNEL);684 n = kmemdup(e820_table_firmware, size, GFP_KERNEL);
687 BUG_ON(!n);685 BUG_ON(!n);
688 memcpy(n, e820_table_firmware, size);
689 e820_table_firmware = n;686 e820_table_firmware = n;
690}687}
691 688
arch/x86/kernel/fpu/xstate.c+1−1
@@ -669,7 +669,7 @@ static bool is_supported_xstate_size(unsigned int test_xstate_size) · 668 unmodified lines
669 return false;669 return false;
670}670}
671 671
672static int init_xstate_size(void)672static int __init init_xstate_size(void)
673{673{
674 /* Recompute the context size for enabled features: */674 /* Recompute the context size for enabled features: */
675 unsigned int possible_xstate_size;675 unsigned int possible_xstate_size;
arch/x86/kernel/hw_breakpoint.c+1−4
@@ -261,12 +261,8 @@ static int arch_build_bp_info(struct perf_event *bp, · 260 unmodified lines
261 * allow kernel breakpoints at all.261 * allow kernel breakpoints at all.
262 */262 */
263 if (attr->bp_addr >= TASK_SIZE_MAX) {263 if (attr->bp_addr >= TASK_SIZE_MAX) {
264#ifdef CONFIG_KPROBES
265 if (within_kprobe_blacklist(attr->bp_addr))264 if (within_kprobe_blacklist(attr->bp_addr))
266 return -EINVAL;265 return -EINVAL;
267#else
268 return -EINVAL;
269#endif
270 }266 }
271 267
272 hw->type = X86_BREAKPOINT_EXECUTE;268 hw->type = X86_BREAKPOINT_EXECUTE;
@@ -279,6 +275,7 @@ static int arch_build_bp_info(struct perf_event *bp, · 6 unmodified lines
279 hw->len = X86_BREAKPOINT_LEN_X;275 hw->len = X86_BREAKPOINT_LEN_X;
280 return 0;276 return 0;
281 }277 }
278 /* fall through */
282 default:279 default:
283 return -EINVAL;280 return -EINVAL;
284 }281 }
arch/x86/kernel/kgdb.c+1−0
@@ -467,6 +467,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code, · 466 unmodified lines
467 ptr = &remcomInBuffer[1];467 ptr = &remcomInBuffer[1];
468 if (kgdb_hex2long(&ptr, &addr))468 if (kgdb_hex2long(&ptr, &addr))
469 linux_regs->ip = addr;469 linux_regs->ip = addr;
470 /* fall through */
470 case 'D':471 case 'D':
471 case 'k':472 case 'k':
472 /* clear the trace bit */473 /* clear the trace bit */
arch/x86/kernel/smpboot.c+1−6
@@ -150,7 +150,7 @@ static inline void smpboot_restore_warm_reset_vector(void) · 149 unmodified lines
150 */150 */
151static void smp_callin(void)151static void smp_callin(void)
152{152{
153 int cpuid, phys_id;153 int cpuid;
154 154
155 /*155 /*
156 * If waken up by an INIT in an 82489DX configuration156 * If waken up by an INIT in an 82489DX configuration
@@ -160,11 +160,6 @@ static void smp_callin(void) · 3 unmodified lines
160 */160 */
161 cpuid = smp_processor_id();161 cpuid = smp_processor_id();
162 162
163 /*
164 * (This works even if the APIC is not enabled.)
165 */
166 phys_id = read_apic_id();
167
168 /*163 /*
169 * the boot CPU has finished the init stage and is spinning164 * the boot CPU has finished the init stage and is spinning
170 * on callin_map until we finish. We are free to set up this165 * on callin_map until we finish. We are free to set up this
arch/x86/kernel/uprobes.c+1−0
@@ -745,6 +745,7 @@ static int branch_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn) · 744 unmodified lines
745 * OPCODE1() of the "short" jmp which checks the same condition.745 * OPCODE1() of the "short" jmp which checks the same condition.
746 */746 */
747 opc1 = OPCODE2(insn) - 0x10;747 opc1 = OPCODE2(insn) - 0x10;
748 /* fall through */
748 default:749 default:
749 if (!is_cond_jmp_opcode(opc1))750 if (!is_cond_jmp_opcode(opc1))
750 return -ENOSYS;751 return -ENOSYS;
arch/x86/lib/insn-eval.c+2−0
@@ -179,6 +179,8 @@ static int resolve_default_seg(struct insn *insn, struct pt_regs *regs, int off) · 178 unmodified lines
179 if (insn->addr_bytes == 2)179 if (insn->addr_bytes == 2)
180 return -EINVAL;180 return -EINVAL;
181 181
182 /* fall through */
183
182 case -EDOM:184 case -EDOM:
183 case offsetof(struct pt_regs, bx):185 case offsetof(struct pt_regs, bx):
184 case offsetof(struct pt_regs, si):186 case offsetof(struct pt_regs, si):
arch/x86/mm/cpu_entry_area.c+1−1
@@ -52,7 +52,7 @@ cea_map_percpu_pages(void *cea_vaddr, void *ptr, int pages, pgprot_t prot) · 51 unmodified lines
52 cea_set_pte(cea_vaddr, per_cpu_ptr_to_phys(ptr), prot);52 cea_set_pte(cea_vaddr, per_cpu_ptr_to_phys(ptr), prot);
53}53}
54 54
55static void percpu_setup_debug_store(int cpu)55static void __init percpu_setup_debug_store(int cpu)
56{56{
57#ifdef CONFIG_CPU_SUP_INTEL57#ifdef CONFIG_CPU_SUP_INTEL
58 int npages;58 int npages;
arch/x86/mm/dump_pagetables.c+0−2
@@ -444,7 +444,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr, · 443 unmodified lines
444 int i;444 int i;
445 pud_t *start, *pud_start;445 pud_t *start, *pud_start;
446 pgprotval_t prot, eff;446 pgprotval_t prot, eff;
447 pud_t *prev_pud = NULL;
448 447
449 pud_start = start = (pud_t *)p4d_page_vaddr(addr);448 pud_start = start = (pud_t *)p4d_page_vaddr(addr);
450 449
@@ -462,7 +461,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr, · 11 unmodified lines
462 } else461 } else
463 note_page(m, st, __pgprot(0), 0, 3);462 note_page(m, st, __pgprot(0), 0, 3);
464 463
465 prev_pud = start;
466 start++;464 start++;
467 }465 }
468}466}
arch/x86/mm/tlb.c+0−3
@@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask, · 684 unmodified lines
685 * that UV should be updated so that smp_call_function_many(),685 * that UV should be updated so that smp_call_function_many(),
686 * etc, are optimal on UV.686 * etc, are optimal on UV.
687 */687 */
688 unsigned int cpu;
689
690 cpu = smp_processor_id();
691 cpumask = uv_flush_tlb_others(cpumask, info);688 cpumask = uv_flush_tlb_others(cpumask, info);
692 if (cpumask)689 if (cpumask)
693 smp_call_function_many(cpumask, flush_tlb_func_remote,690 smp_call_function_many(cpumask, flush_tlb_func_remote,
arch/x86/platform/uv/tlb_uv.c+2−6
@@ -2010,8 +2010,7 @@ static void make_per_cpu_thp(struct bau_control *smaster) · 2009 unmodified lines
2010 int cpu;2010 int cpu;
2011 size_t hpsz = sizeof(struct hub_and_pnode) * num_possible_cpus();2011 size_t hpsz = sizeof(struct hub_and_pnode) * num_possible_cpus();
2012 2012
2013 smaster->thp = kmalloc_node(hpsz, GFP_KERNEL, smaster->osnode);2013 smaster->thp = kzalloc_node(hpsz, GFP_KERNEL, smaster->osnode);
2014 memset(smaster->thp, 0, hpsz);
2015 for_each_present_cpu(cpu) {2014 for_each_present_cpu(cpu) {
2016 smaster->thp[cpu].pnode = uv_cpu_hub_info(cpu)->pnode;2015 smaster->thp[cpu].pnode = uv_cpu_hub_info(cpu)->pnode;
2017 smaster->thp[cpu].uvhub = uv_cpu_hub_info(cpu)->numa_blade_id;2016 smaster->thp[cpu].uvhub = uv_cpu_hub_info(cpu)->numa_blade_id;
@@ -2135,15 +2134,12 @@ static int __init summarize_uvhub_sockets(int nuvhubs, · 117 unmodified lines
2135static int __init init_per_cpu(int nuvhubs, int base_part_pnode)2134static int __init init_per_cpu(int nuvhubs, int base_part_pnode)
2136{2135{
2137 unsigned char *uvhub_mask;2136 unsigned char *uvhub_mask;
2138 void *vp;
2139 struct uvhub_desc *uvhub_descs;2137 struct uvhub_desc *uvhub_descs;
2140 2138
2141 if (is_uv3_hub() || is_uv2_hub() || is_uv1_hub())2139 if (is_uv3_hub() || is_uv2_hub() || is_uv1_hub())
2142 timeout_us = calculate_destination_timeout();2140 timeout_us = calculate_destination_timeout();
2143 2141
2144 vp = kmalloc_array(nuvhubs, sizeof(struct uvhub_desc), GFP_KERNEL);2142 uvhub_descs = kcalloc(nuvhubs, sizeof(struct uvhub_desc), GFP_KERNEL);
2145 uvhub_descs = (struct uvhub_desc *)vp;
2146 memset(uvhub_descs, 0, nuvhubs * sizeof(struct uvhub_desc));
2147 uvhub_mask = kzalloc((nuvhubs+7)/8, GFP_KERNEL);2143 uvhub_mask = kzalloc((nuvhubs+7)/8, GFP_KERNEL);
2148 2144
2149 if (get_cpu_topology(base_part_pnode, uvhub_descs, uvhub_mask))2145 if (get_cpu_topology(base_part_pnode, uvhub_descs, uvhub_mask))
include/linux/kprobes.h+5−0
@@ -442,6 +442,11 @@ static inline int enable_kprobe(struct kprobe *kp) · 441 unmodified lines
442{442{
443 return -ENOSYS;443 return -ENOSYS;
444}444}
445
446static inline bool within_kprobe_blacklist(unsigned long addr)
447{
448 return true;
449}
445#endif /* CONFIG_KPROBES */450#endif /* CONFIG_KPROBES */
446static inline int disable_kretprobe(struct kretprobe *rp)451static inline int disable_kretprobe(struct kretprobe *rp)
447{452{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t