* [PATCH 0/2] Corrected two type checkpatch.pl space errors.
@ 2015-02-21 19:59 Gulsah Kose
2015-02-21 19:59 ` [PATCH 1/2] staging: arch: alpha: boot: tools: Deleted unnecessary space Gulsah Kose
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Gulsah Kose @ 2015-02-21 19:59 UTC (permalink / raw)
To: outreachy-kernel; +Cc: Gulsah Kose
This patch fixes following checkpatch.pl errors in mkbb.c
ERROR: space required before the open parenthesis '('
ERROR: foo ** bar" should be "foo **bar
Gülşah Köse (2):
staging: arch: alpha: boot: tools: Deleted unnecessary space.
staging: arch: alpha: boot: tools: Added missing spaces after brackets.
arch/alpha/boot/tools/mkbb.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] staging: arch: alpha: boot: tools: Deleted unnecessary space. 2015-02-21 19:59 [PATCH 0/2] Corrected two type checkpatch.pl space errors Gulsah Kose @ 2015-02-21 19:59 ` Gulsah Kose 2015-02-21 19:59 ` [PATCH 2/2] staging: arch: alpha: boot: tools: Added missing spaces after brackets Gulsah Kose 2015-02-21 20:56 ` [Outreachy kernel] [PATCH 0/2] Corrected two type checkpatch.pl space errors Julia Lawall 2 siblings, 0 replies; 4+ messages in thread From: Gulsah Kose @ 2015-02-21 19:59 UTC (permalink / raw) To: outreachy-kernel; +Cc: Gulsah Kose This patch fixes "foo ** bar" should be "foo **bar" checkpatch.pl error in mkbb.c Signed-off-by: Gülşah Köse <gulsah.1004@gmail.com> --- arch/alpha/boot/tools/mkbb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/boot/tools/mkbb.c b/arch/alpha/boot/tools/mkbb.c index 1185778..05a9d24 100644 --- a/arch/alpha/boot/tools/mkbb.c +++ b/arch/alpha/boot/tools/mkbb.c @@ -82,7 +82,7 @@ typedef union __bootblock { #define bootblock_label __u1.__label #define bootblock_checksum __u2.__checksum -int main(int argc, char ** argv) +int main(int argc, char **argv) { bootblock bootblock_from_disk; bootblock bootloader_image; -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] staging: arch: alpha: boot: tools: Added missing spaces after brackets. 2015-02-21 19:59 [PATCH 0/2] Corrected two type checkpatch.pl space errors Gulsah Kose 2015-02-21 19:59 ` [PATCH 1/2] staging: arch: alpha: boot: tools: Deleted unnecessary space Gulsah Kose @ 2015-02-21 19:59 ` Gulsah Kose 2015-02-21 20:56 ` [Outreachy kernel] [PATCH 0/2] Corrected two type checkpatch.pl space errors Julia Lawall 2 siblings, 0 replies; 4+ messages in thread From: Gulsah Kose @ 2015-02-21 19:59 UTC (permalink / raw) To: outreachy-kernel; +Cc: Gulsah Kose This patch fixes "space required before the open parenthesis '('" checkpatch.pl errors in mkbb.c Signed-off-by: Gülşah Köse <gulsah.1004@gmail.com> --- arch/alpha/boot/tools/mkbb.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/alpha/boot/tools/mkbb.c b/arch/alpha/boot/tools/mkbb.c index 05a9d24..44ba020 100644 --- a/arch/alpha/boot/tools/mkbb.c +++ b/arch/alpha/boot/tools/mkbb.c @@ -91,21 +91,21 @@ int main(int argc, char **argv) int nread; /* Make sure of the arg count */ - if(argc != 3) { + if (argc != 3) { fprintf(stderr, "Usage: %s device lxboot\n", argv[0]); exit(0); } /* First, open the device and make sure it's accessible */ dev = open(argv[1], O_RDWR); - if(dev < 0) { + if (dev < 0) { perror(argv[1]); exit(0); } /* Now open the lxboot and make sure it's reasonable */ fd = open(argv[2], O_RDONLY); - if(fd < 0) { + if (fd < 0) { perror(argv[2]); close(dev); exit(0); @@ -113,7 +113,7 @@ int main(int argc, char **argv) /* Read in the lxboot */ nread = read(fd, &bootloader_image, sizeof(bootblock)); - if(nread != sizeof(bootblock)) { + if (nread != sizeof(bootblock)) { perror("lxboot read"); fprintf(stderr, "expected %zd, got %d\n", sizeof(bootblock), nread); exit(0); @@ -121,7 +121,7 @@ int main(int argc, char **argv) /* Read in the bootblock from disk. */ nread = read(dev, &bootblock_from_disk, sizeof(bootblock)); - if(nread != sizeof(bootblock)) { + if (nread != sizeof(bootblock)) { perror("bootblock read"); fprintf(stderr, "expected %zd, got %d\n", sizeof(bootblock), nread); exit(0); @@ -132,14 +132,14 @@ int main(int argc, char **argv) /* Calculate the bootblock checksum */ bootloader_image.bootblock_checksum = 0; - for(i = 0; i < 63; i++) { + for (i = 0; i < 63; i++) { bootloader_image.bootblock_checksum += bootloader_image.bootblock_quadwords[i]; } /* Write the whole thing out! */ lseek(dev, 0L, SEEK_SET); - if(write(dev, &bootloader_image, sizeof(bootblock)) != sizeof(bootblock)) { + if (write(dev, &bootloader_image, sizeof(bootblock)) != sizeof(bootblock)) { perror("bootblock write"); exit(0); } -- 1.9.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Outreachy kernel] [PATCH 0/2] Corrected two type checkpatch.pl space errors. 2015-02-21 19:59 [PATCH 0/2] Corrected two type checkpatch.pl space errors Gulsah Kose 2015-02-21 19:59 ` [PATCH 1/2] staging: arch: alpha: boot: tools: Deleted unnecessary space Gulsah Kose 2015-02-21 19:59 ` [PATCH 2/2] staging: arch: alpha: boot: tools: Added missing spaces after brackets Gulsah Kose @ 2015-02-21 20:56 ` Julia Lawall 2 siblings, 0 replies; 4+ messages in thread From: Julia Lawall @ 2015-02-21 20:56 UTC (permalink / raw) To: Gulsah Kose; +Cc: outreachy-kernel [-- Attachment #1: Type: TEXT/PLAIN, Size: 1112 bytes --] On Sat, 21 Feb 2015, Gulsah Kose wrote: > This patch fixes following checkpatch.pl errors in mkbb.c > ERROR: space required before the open parenthesis '(' > ERROR: foo ** bar" should be "foo **bar > > Gülşah Köse (2): > staging: arch: alpha: boot: tools: Deleted unnecessary space. > staging: arch: alpha: boot: tools: Added missing spaces after brackets. > > arch/alpha/boot/tools/mkbb.c | 16 ++++++++-------- As for the other series of patches, you should not be working on files in this directory. julia > 1 file changed, 8 insertions(+), 8 deletions(-) > > -- > 1.9.1 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/cover.1424548101.git.gulsah.1004%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-02-21 20:56 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-02-21 19:59 [PATCH 0/2] Corrected two type checkpatch.pl space errors Gulsah Kose 2015-02-21 19:59 ` [PATCH 1/2] staging: arch: alpha: boot: tools: Deleted unnecessary space Gulsah Kose 2015-02-21 19:59 ` [PATCH 2/2] staging: arch: alpha: boot: tools: Added missing spaces after brackets Gulsah Kose 2015-02-21 20:56 ` [Outreachy kernel] [PATCH 0/2] Corrected two type checkpatch.pl space errors Julia Lawall
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.