]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: improve whitespace
authorZhiyuan Dai <daizhiyuan@phytium.com.cn>
Thu, 4 Feb 2021 01:43:49 +0000 (09:43 +0800)
committerWill Deacon <will@kernel.org>
Thu, 4 Feb 2021 13:59:49 +0000 (13:59 +0000)
In a few places we don't have whitespace between macro parameters,
which makes them hard to read. This patch adds whitespace to clearly
separate the parameters.

In a few places we have unnecessary whitespace around unary operators,
which is confusing, This patch removes the unnecessary whitespace.

Signed-off-by: Zhiyuan Dai <daizhiyuan@phytium.com.cn>
Link: https://lore.kernel.org/r/1612403029-5011-1-git-send-email-daizhiyuan@phytium.com.cn
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/alternative.c
arch/arm64/kernel/module-plts.c
arch/arm64/kernel/perf_event.c
arch/arm64/kernel/process.c
arch/arm64/kernel/traps.c

index a57cffb752e8955b8b9b9dbc144f632dead81402..1184c44ea2c7da0678cd821b839b9b643011c03e 100644 (file)
@@ -17,7 +17,7 @@
 #include <asm/sections.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_REPL_PTR(a)                __ALT_PTR(a, alt_offset)
 
index 2e224435c0249ac28c5eb63f8577250a3ff89f40..e53493d8b208bb9cc3377ef07c89238f55aef97f 100644 (file)
@@ -131,7 +131,7 @@ u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs,
 }
 #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)
 {
index 3605f77ad4df1796c52b01a2bb959569d5ea1a83..d1fec4ab4bcf57cf389bf05e00aa2aa9d8678ce8 100644 (file)
@@ -810,7 +810,7 @@ static int armv8pmu_get_single_idx(struct pmu_hw_events *cpuc,
 {
        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))
                        return idx;
        }
index 6616486a58fe0bd62a05bae78268e5cd54a1a26e..4cc1ccc8d6ab4184d054381f190c145ee15810bb 100644 (file)
@@ -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);
        dump_backtrace(regs, NULL, KERN_DEFAULT);
@@ -587,7 +587,7 @@ unsigned long get_wchan(struct task_struct *p)
                        ret = frame.pc;
                        goto out;
                }
-       } while (count ++ < 16);
+       } while (count++ < 16);
 
 out:
        put_task_stack(p);
index 6895ce777e7f286ce82da4fb8c54a3ac58cd0b37..a05d34f0e82a7a99ced3cc8ab264bfb3b277390b 100644 (file)
@@ -45,7 +45,7 @@
 #include <asm/system_misc.h>
 #include <asm/sysreg.h>
 
-static const char *handler[]= {
+static const char *handler[] = {
        "Synchronous Abort",
        "IRQ",
        "FIQ",