Commit bab8443b authored by Will Deacon's avatar Will Deacon

Merge branch 'for-next/cosmetic' into for-next/core

Cosmetic changes to tidy up stale comments and fix inconsistent
whitespace. No functional changes here!

* for-next/cosmetic:
  mm/arm64: Correct obsolete comment in do_page_fault()
  arm64: improve whitespace
parents 19c329f6 abd4737f
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <asm/sections.h> #include <asm/sections.h>
#include <linux/stop_machine.h> #include <linux/stop_machine.h>
#define __ALT_PTR(a,f) ((void *)&(a)->f + (a)->f) #define __ALT_PTR(a, f) ((void *)&(a)->f + (a)->f)
#define ALT_ORIG_PTR(a) __ALT_PTR(a, orig_offset) #define ALT_ORIG_PTR(a) __ALT_PTR(a, orig_offset)
#define ALT_REPL_PTR(a) __ALT_PTR(a, alt_offset) #define ALT_REPL_PTR(a) __ALT_PTR(a, alt_offset)
......
...@@ -131,7 +131,7 @@ u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs, ...@@ -131,7 +131,7 @@ u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs,
} }
#endif #endif
#define cmp_3way(a,b) ((a) < (b) ? -1 : (a) > (b)) #define cmp_3way(a, b) ((a) < (b) ? -1 : (a) > (b))
static int cmp_rela(const void *a, const void *b) static int cmp_rela(const void *a, const void *b)
{ {
......
...@@ -810,7 +810,7 @@ static int armv8pmu_get_single_idx(struct pmu_hw_events *cpuc, ...@@ -810,7 +810,7 @@ static int armv8pmu_get_single_idx(struct pmu_hw_events *cpuc,
{ {
int idx; int idx;
for (idx = ARMV8_IDX_COUNTER0; idx < cpu_pmu->num_events; idx ++) { for (idx = ARMV8_IDX_COUNTER0; idx < cpu_pmu->num_events; idx++) {
if (!test_and_set_bit(idx, cpuc->used_mask)) if (!test_and_set_bit(idx, cpuc->used_mask))
return idx; return idx;
} }
......
...@@ -304,7 +304,7 @@ void __show_regs(struct pt_regs *regs) ...@@ -304,7 +304,7 @@ void __show_regs(struct pt_regs *regs)
} }
} }
void show_regs(struct pt_regs * regs) void show_regs(struct pt_regs *regs)
{ {
__show_regs(regs); __show_regs(regs);
dump_backtrace(regs, NULL, KERN_DEFAULT); dump_backtrace(regs, NULL, KERN_DEFAULT);
...@@ -587,7 +587,7 @@ unsigned long get_wchan(struct task_struct *p) ...@@ -587,7 +587,7 @@ unsigned long get_wchan(struct task_struct *p)
ret = frame.pc; ret = frame.pc;
goto out; goto out;
} }
} while (count ++ < 16); } while (count++ < 16);
out: out:
put_task_stack(p); put_task_stack(p);
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include <asm/system_misc.h> #include <asm/system_misc.h>
#include <asm/sysreg.h> #include <asm/sysreg.h>
static const char *handler[]= { static const char *handler[] = {
"Synchronous Abort", "Synchronous Abort",
"IRQ", "IRQ",
"FIQ", "FIQ",
......
...@@ -564,7 +564,7 @@ static int __kprobes do_page_fault(unsigned long far, unsigned int esr, ...@@ -564,7 +564,7 @@ static int __kprobes do_page_fault(unsigned long far, unsigned int esr,
mmap_read_lock(mm); mmap_read_lock(mm);
} else { } else {
/* /*
* The above down_read_trylock() might have succeeded in which * The above mmap_read_trylock() might have succeeded in which
* case, we'll have missed the might_sleep() from down_read(). * case, we'll have missed the might_sleep() from down_read().
*/ */
might_sleep(); might_sleep();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment