From: Anshul <anshulusr@gmail.com>
To: richard.henderson@linaro.org, ink@jurassic.park.msu.ru,
mattst88@gmail.com
Cc: Anshul <anshulusr@gmail.com>,
linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kernel-mentees@lists.linuxfoundation.org,
skhan@linuxfoundation.org
Subject: [PATCH] fixed formatting issues
Date: Mon, 28 Aug 2023 12:48:25 +0530 [thread overview]
Message-ID: <20230828071829.64366-1-anshulusr@gmail.com> (raw)
Fixed minor formatting issues as per `scripts/checkpatch.pl`
Six changes to the file and their severity are as follows:
* [WARNING] Removed unnecessary braces from single statement blocks
* [ERROR] 5 fixes are to pointer formatting
* [ERROR] Removed a trailing whitespace
6 errors and 1 warning of the previously present 6 errors and 5
warnings have been fixed.
Signed-off-by: Anshul <anshulusr@gmail.com>
---
arch/alpha/boot/main.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/alpha/boot/main.c b/arch/alpha/boot/main.c
index 22a1cb026..f609c3a83 100644
--- a/arch/alpha/boot/main.c
+++ b/arch/alpha/boot/main.c
@@ -20,8 +20,9 @@
#include "ksize.h"
extern unsigned long switch_to_osf_pal(unsigned long nr,
- struct pcb_struct * pcb_va, struct pcb_struct * pcb_pa,
- unsigned long *vptb);
+ struct pcb_struct *pcb_va,
+ struct pcb_struct *pcb_pa,
+ unsigned long *vptb);
struct hwrpb_struct *hwrpb = INIT_HWRPB;
static struct pcb_struct pcb_va[1];
@@ -42,7 +43,7 @@ find_pa(unsigned long *vptb, void *ptr)
result <<= 13;
result |= address & 0x1fff;
return (void *) result;
-}
+}
/*
* This function moves into OSF/1 pal-code, and has a temporary
@@ -62,8 +63,8 @@ void
pal_init(void)
{
unsigned long i, rev;
- struct percpu_struct * percpu;
- struct pcb_struct * pcb_pa;
+ struct percpu_struct *percpu;
+ struct pcb_struct *pcb_pa;
/* Create the dummy PCB. */
pcb_va->ksp = 0;
@@ -176,11 +177,10 @@ void start_kernel(void)
}
nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval));
- if (nbytes < 0) {
+ if (nbytes < 0)
nbytes = 0;
- }
envval[nbytes] = '\0';
- strcpy((char*)ZERO_PGE, envval);
+ strcpy((char *)ZERO_PGE, envval);
srm_printk(" Ok\nNow booting the kernel\n");
runkernel();
--
2.42.0
next reply other threads:[~2023-08-28 7:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-28 7:18 Anshul [this message]
2023-08-28 7:28 ` [PATCH] fixed formatting issues Greg KH
2023-08-28 8:24 ` Anshul
2023-08-28 9:11 ` Greg KH
2023-08-28 10:22 ` Anshul
2023-08-28 8:06 ` [PATCH] alpha/boot: fixes formatting issues in `main.c` Anshul
2023-08-28 9:12 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230828071829.64366-1-anshulusr@gmail.com \
--to=anshulusr@gmail.com \
--cc=ink@jurassic.park.msu.ru \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mattst88@gmail.com \
--cc=richard.henderson@linaro.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).