[tip:perf/core] perf/headers: Fix stale comment for struct perf_addr_filter
Commit-ID: 1279e41d535e28cc3b56fa4a09e71a709641cae6 Gitweb: https://git.kernel.org/tip/1279e41d535e28cc3b56fa4a09e71a709641cae6 Author: Shaokun Zhang AuthorDate: Wed, 3 Apr 2019 14:54:24 +0800 Committer: Ingo Molnar CommitDate: Wed, 3 Apr 2019 11:40:02 +0200 perf/headers: Fix stale comment for struct perf_addr_filter The @inode field has been removed after: 9511bce9fe8e ("perf/core: Fix bad use of igrab()") Update the description. Signed-off-by: Shaokun Zhang Signed-off-by: Peter Zijlstra (Intel) Cc: Alexander Shishkin Cc: Arnaldo Carvalho de Melo Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Song Liu Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Link: https://lkml.kernel.org/r/1554274464-5739-1-git-send-email-zhangshao...@hisilicon.com Signed-off-by: Ingo Molnar --- include/linux/perf_event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index e47ef764f613..085a95e2582a 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -464,7 +464,7 @@ enum perf_addr_filter_action_t { /** * struct perf_addr_filter - address range filter definition * @entry: event's filter list linkage - * @inode: object file's inode for file-based filters + * @path: object file's path for file-based filters * @offset:filter range offset * @size: filter range size (size==0 means single address trigger) * @action:filter/start/stop
[tip:x86/cleanups] x86/mm/tlb: Remove unused cpu variable
Commit-ID: 691b9ab6c9676e5868a4787be9041dd990005311 Gitweb: https://git.kernel.org/tip/691b9ab6c9676e5868a4787be9041dd990005311 Author: Shaokun Zhang AuthorDate: Tue, 29 Jan 2019 15:36:57 +0800 Committer: Borislav Petkov CommitDate: Tue, 29 Jan 2019 18:32:30 +0100 x86/mm/tlb: Remove unused cpu variable The "cpu" local variable became unused after a2055abe9c67 ("x86/mm: Pass flush_tlb_info to flush_tlb_others() etc"). Remove it. Signed-off-by: Shaokun Zhang Signed-off-by: Borislav Petkov Cc: Andy Lutomirski Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: x86-ml Link: https://lkml.kernel.org/r/1548747417-33551-1-git-send-email-zhangshao...@hisilicon.com --- arch/x86/mm/tlb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 999d6d8f0bef..bc4bc7b2f075 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -685,9 +685,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask, * that UV should be updated so that smp_call_function_many(), * etc, are optimal on UV. */ - unsigned int cpu; - - cpu = smp_processor_id(); cpumask = uv_flush_tlb_others(cpumask, info); if (cpumask) smp_call_function_many(cpumask, flush_tlb_func_remote,
[tip:x86/cleanups] x86/mm/dump_pagetables: Remove the unused prev_pud variable
Commit-ID: 8e8a3cea7ea5f5458fdf2287713626892e7715f5 Gitweb: https://git.kernel.org/tip/8e8a3cea7ea5f5458fdf2287713626892e7715f5 Author: Shaokun Zhang AuthorDate: Thu, 14 Feb 2019 17:33:49 +0800 Committer: Borislav Petkov CommitDate: Thu, 14 Feb 2019 17:09:43 +0100 x86/mm/dump_pagetables: Remove the unused prev_pud variable The 'prev_pud' local variable became unused after commit 04b67022fb6d ("x86/mm/dump_pagetables: Speed up page tables dump for CONFIG_KASAN=y"). Remove it. Signed-off-by: Shaokun Zhang Signed-off-by: Borislav Petkov Cc: Andrey Ryabinin Cc: Andy Lutomirski Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: x86-ml Link: https://lkml.kernel.org/r/1550136829-49088-1-git-send-email-zhangshao...@hisilicon.com --- arch/x86/mm/dump_pagetables.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index e3cdc85ce5b6..ee8f8ab46941 100644 --- a/arch/x86/mm/dump_pagetables.c +++ b/arch/x86/mm/dump_pagetables.c @@ -444,7 +444,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr, int i; pud_t *start, *pud_start; pgprotval_t prot, eff; - pud_t *prev_pud = NULL; pud_start = start = (pud_t *)p4d_page_vaddr(addr); @@ -462,7 +461,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr, } else note_page(m, st, __pgprot(0), 0, 3); - prev_pud = start; start++; } }
[tip:x86/cleanups] x86/smpboot: Remove unused phys_id variable
Commit-ID: f91fecc09e498529230b4d5053cb361619a0c42d Gitweb: https://git.kernel.org/tip/f91fecc09e498529230b4d5053cb361619a0c42d Author: Shaokun Zhang AuthorDate: Mon, 18 Feb 2019 21:05:01 +0800 Committer: Borislav Petkov CommitDate: Mon, 18 Feb 2019 17:09:24 +0100 x86/smpboot: Remove unused phys_id variable The 'phys_id' local variable became unused after commit ce4b1b16502b ("x86/smpboot: Initialize secondary CPU only if master CPU will wait for it"). Remove it. Signed-off-by: Shaokun Zhang Signed-off-by: Borislav Petkov Cc: Alison Schofield Cc: "H. Peter Anvin" Cc: Igor Mammedov Cc: Ingo Molnar Cc: Konrad Rzeszutek Wilk Cc: Mike Rapoport Cc: Pu Wen Cc: Suravee Suthikulpanit Cc: Thomas Gleixner Cc: x86-ml Cc: Yazen Ghannam Cc: Zhenzhong Duan Link: https://lkml.kernel.org/r/1550495101-41755-1-git-send-email-zhangshao...@hisilicon.com --- arch/x86/kernel/smpboot.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index ccd1f2a8e557..5d5421b48e55 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -149,7 +149,7 @@ static inline void smpboot_restore_warm_reset_vector(void) */ static void smp_callin(void) { - int cpuid, phys_id; + int cpuid; /* * If waken up by an INIT in an 82489DX configuration @@ -159,11 +159,6 @@ static void smp_callin(void) */ cpuid = smp_processor_id(); - /* -* (This works even if the APIC is not enabled.) -*/ - phys_id = read_apic_id(); - /* * the boot CPU has finished the init stage and is spinning * on callin_map until we finish. We are free to set up this