From nobody Sun Dec 14 12:05:34 2025 Received: from out-187.mta1.migadu.com (out-187.mta1.migadu.com [95.215.58.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A77A15665C for ; Sat, 19 Apr 2025 10:28:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.187 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745058493; cv=none; b=Qqt9NkD3hr+I28AUkTwcz0pX0orralNEnEHEYw3x3AAtLX6IDdKfRNsxI+5PoWPUKBzU5NC76D3P44vd5+d8M2PiWe6keRecyE2TvtXsPpoAwRn2nbhIN1xZylvlXHo5RSe6ZNkDAXK5Ybpj1YBlE84vcZC7CxZZ7Cnz46YgLTY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745058493; c=relaxed/simple; bh=9Rmc66b3icwUSbgrf1N49U2I8w1YVzo3g/msDARYbl4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u6QuP9Kio0mPD4KVkz6pUiyNfuhGPAbTp6+b9yZskg4xPTAA5YBhTihEevoZdZYcwKXOOEaqz8taDrVvv0Xbpx0wzDgC32dmCewMy02PNsj9ZBKp4zNEOCxQsIkoCzYqt5jag8L9o3ZRPQuqy6VWd/kiAHNOPTXvQH+jg9hJIHY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=sIjdktkK; arc=none smtp.client-ip=95.215.58.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="sIjdktkK" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1745058486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=AMI7aAyD18/iQIerrFizi1wCmFIzWeT7GRw35BjWCcs=; b=sIjdktkKz/1mhzLdSOvFIikYp3mAxLs6SVih6jEs8ampxRkm4TkSkS0QLPI/kHVOdrdVrZ P9MEdveewDkYaeBjJyPNM7UXhrASzApRWa5W0v8Iol/pLT9t+pUVWCdfSsYTtjn5FjpEeN epuVcx3+bMFQCmSEUr5xAz8kReI+7bM= From: Thorsten Blum To: Oleg Nesterov , Thomas Bogendoerfer Cc: Thorsten Blum , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mips: ptrace: Improve code formatting and indentation Date: Sat, 19 Apr 2025 12:27:44 +0200 Message-ID: <20250419102744.136697-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Use tabs instead of spaces in regs_query_register_offset() and syscall_trace_leave(), and properly indent multiple getters. Signed-off-by: Thorsten Blum Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- arch/mips/kernel/ptrace.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c index f7107479c7fa..b890d64d352c 100644 --- a/arch/mips/kernel/ptrace.c +++ b/arch/mips/kernel/ptrace.c @@ -922,11 +922,13 @@ static const struct pt_regs_offset regoffset_table[] = =3D { */ int regs_query_register_offset(const char *name) { - const struct pt_regs_offset *roff; - for (roff =3D regoffset_table; roff->name !=3D NULL; roff++) - if (!strcmp(roff->name, name)) - return roff->offset; - return -EINVAL; + const struct pt_regs_offset *roff; + + for (roff =3D regoffset_table; roff->name !=3D NULL; roff++) + if (!strcmp(roff->name, name)) + return roff->offset; + + return -EINVAL; } =20 #if defined(CONFIG_32BIT) || defined(CONFIG_MIPS32_O32) @@ -937,7 +939,7 @@ static const struct user_regset mips_regsets[] =3D { .n =3D ELF_NGREG, .size =3D sizeof(unsigned int), .align =3D sizeof(unsigned int), - .regset_get =3D gpr32_get, + .regset_get =3D gpr32_get, .set =3D gpr32_set, }, [REGSET_DSP] =3D { @@ -945,7 +947,7 @@ static const struct user_regset mips_regsets[] =3D { .n =3D NUM_DSP_REGS + 1, .size =3D sizeof(u32), .align =3D sizeof(u32), - .regset_get =3D dsp32_get, + .regset_get =3D dsp32_get, .set =3D dsp32_set, .active =3D dsp_active, }, @@ -955,7 +957,7 @@ static const struct user_regset mips_regsets[] =3D { .n =3D ELF_NFPREG, .size =3D sizeof(elf_fpreg_t), .align =3D sizeof(elf_fpreg_t), - .regset_get =3D fpr_get, + .regset_get =3D fpr_get, .set =3D fpr_set, }, [REGSET_FP_MODE] =3D { @@ -963,7 +965,7 @@ static const struct user_regset mips_regsets[] =3D { .n =3D 1, .size =3D sizeof(int), .align =3D sizeof(int), - .regset_get =3D fp_mode_get, + .regset_get =3D fp_mode_get, .set =3D fp_mode_set, }, #endif @@ -973,7 +975,7 @@ static const struct user_regset mips_regsets[] =3D { .n =3D NUM_FPU_REGS + 1, .size =3D 16, .align =3D 16, - .regset_get =3D msa_get, + .regset_get =3D msa_get, .set =3D msa_set, }, #endif @@ -997,7 +999,7 @@ static const struct user_regset mips64_regsets[] =3D { .n =3D ELF_NGREG, .size =3D sizeof(unsigned long), .align =3D sizeof(unsigned long), - .regset_get =3D gpr64_get, + .regset_get =3D gpr64_get, .set =3D gpr64_set, }, [REGSET_DSP] =3D { @@ -1005,7 +1007,7 @@ static const struct user_regset mips64_regsets[] =3D { .n =3D NUM_DSP_REGS + 1, .size =3D sizeof(u64), .align =3D sizeof(u64), - .regset_get =3D dsp64_get, + .regset_get =3D dsp64_get, .set =3D dsp64_set, .active =3D dsp_active, }, @@ -1015,7 +1017,7 @@ static const struct user_regset mips64_regsets[] =3D { .n =3D 1, .size =3D sizeof(int), .align =3D sizeof(int), - .regset_get =3D fp_mode_get, + .regset_get =3D fp_mode_get, .set =3D fp_mode_set, }, [REGSET_FPR] =3D { @@ -1023,7 +1025,7 @@ static const struct user_regset mips64_regsets[] =3D { .n =3D ELF_NFPREG, .size =3D sizeof(elf_fpreg_t), .align =3D sizeof(elf_fpreg_t), - .regset_get =3D fpr_get, + .regset_get =3D fpr_get, .set =3D fpr_set, }, #endif @@ -1033,7 +1035,7 @@ static const struct user_regset mips64_regsets[] =3D { .n =3D NUM_FPU_REGS + 1, .size =3D 16, .align =3D 16, - .regset_get =3D msa_get, + .regset_get =3D msa_get, .set =3D msa_set, }, #endif @@ -1351,7 +1353,7 @@ asmlinkage long syscall_trace_enter(struct pt_regs *r= egs) */ asmlinkage void syscall_trace_leave(struct pt_regs *regs) { - /* + /* * We may come here right after calling schedule_user() * or do_notify_resume(), in which case we can be in RCU * user mode. --=20 2.49.0