* [KJ] [PATCH] arch/i386/kernel/acpi/boot.c
@ 2005-02-26 2:08 Jonathan Stafford
2005-02-26 5:43 ` Nish Aravamudan
2005-02-27 16:04 ` walter harms
0 siblings, 2 replies; 3+ messages in thread
From: Jonathan Stafford @ 2005-02-26 2:08 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1164 bytes --]
I've never done any kernel work before, but the gcc 4 warning fixes
seems like a fairly easy place to start. As there will ultimately be
several hundred patches, is there are particular order to fix these?
I've been tinkering with them simply in compiled order.
Should I be sending/cc'ing these patches to somewhere besides KJML as
I write them? I know that many of the various parts have their own
mailings lists, but I don't begin to know what all of them are. What
about trivial patch monkey?
Thanks,
jonathan
Here's my first would-be patch; anything I should change?
==============================================
Description: Fixes gcc 4 warnings. See
http://marc.theaimsgroup.com/?t=110348353800003 for details
Signed-off-by: Jonathan Stafford <thecabinet@gmail.com>
diff -Nru a/arch/i386/kernel/acpi/boot.c b/arch/i386/kernel/acpi/boot.c
--- a/arch/i386/kernel/acpi/boot.c 2005-02-24 04:36:13 -05:00
+++ b/arch/i386/kernel/acpi/boot.c 2005-02-24 04:36:13 -05:00
@@ -153,7 +153,7 @@
mapped_size += PAGE_SIZE;
}
- return ((unsigned char *) base + offset);
+ return ((char *) base + offset);
}
#endif
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [KJ] [PATCH] arch/i386/kernel/acpi/boot.c
2005-02-26 2:08 [KJ] [PATCH] arch/i386/kernel/acpi/boot.c Jonathan Stafford
@ 2005-02-26 5:43 ` Nish Aravamudan
2005-02-27 16:04 ` walter harms
1 sibling, 0 replies; 3+ messages in thread
From: Nish Aravamudan @ 2005-02-26 5:43 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1424 bytes --]
On Fri, 25 Feb 2005 21:08:47 -0500, Jonathan Stafford
<thecabinet@gmail.com> wrote:
> I've never done any kernel work before, but the gcc 4 warning fixes
> seems like a fairly easy place to start. As there will ultimately be
> several hundred patches, is there are particular order to fix these?
> I've been tinkering with them simply in compiled order.
>
> Should I be sending/cc'ing these patches to somewhere besides KJML as
> I write them? I know that many of the various parts have their own
> mailings lists, but I don't begin to know what all of them are. What
> about trivial patch monkey?
For these, it may be useful to directly paste the warning you are
fixing rather than referencing a URL. Or at least be a little more
detailed as why gcc 4 complains, so that more experienced devs may be
able to comment directly on the gcc 4 changes.
As far as knowing subsystem lists, just go by MAINTAINERS (it's in the
root dir of kernel source).
> Here's my first would-be patch; anything I should change?
At least in reply, it looks like spaces became tabs, but maybe that is
just GMail's reply. I am just surprised you were able to get GMail to
protect tabs. You were able to apply the inlined patch on your system
(the one from the E-mail, not necessarily the only you inlined).
I haven't messed with gcc 4, but I can trust your ability to read
warnings and correct them intelligently :) Seems ok to me.
-Nish
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] [PATCH] arch/i386/kernel/acpi/boot.c
2005-02-26 2:08 [KJ] [PATCH] arch/i386/kernel/acpi/boot.c Jonathan Stafford
2005-02-26 5:43 ` Nish Aravamudan
@ 2005-02-27 16:04 ` walter harms
1 sibling, 0 replies; 3+ messages in thread
From: walter harms @ 2005-02-27 16:04 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]
hi Jonathan,
the complain of ggc4 is correct. defining char and returning unsigned
char is wrong. but i would exspect a void * here as a quick look at
boot.c says that the result is always casted to some other struct foo *.
I am not an expert on that can someone please comment it ?
I found also no references outside boot.c perhaps 'static' is usefull here ?
re,
walter
Jonathan Stafford wrote:
> I've never done any kernel work before, but the gcc 4 warning fixes
> seems like a fairly easy place to start. As there will ultimately be
> several hundred patches, is there are particular order to fix these?
> I've been tinkering with them simply in compiled order.
>
> Should I be sending/cc'ing these patches to somewhere besides KJML as
> I write them? I know that many of the various parts have their own
> mailings lists, but I don't begin to know what all of them are. What
> about trivial patch monkey?
>
> Thanks,
> jonathan
>
> Here's my first would-be patch; anything I should change?
> ==============================================
>
> Description: Fixes gcc 4 warnings. See
> http://marc.theaimsgroup.com/?t=110348353800003 for details
>
> Signed-off-by: Jonathan Stafford <thecabinet@gmail.com>
>
> diff -Nru a/arch/i386/kernel/acpi/boot.c b/arch/i386/kernel/acpi/boot.c
> --- a/arch/i386/kernel/acpi/boot.c 2005-02-24 04:36:13 -05:00
> +++ b/arch/i386/kernel/acpi/boot.c 2005-02-24 04:36:13 -05:00
> @@ -153,7 +153,7 @@
> mapped_size += PAGE_SIZE;
> }
>
> - return ((unsigned char *) base + offset);
> + return ((char *) base + offset);
> }
> #endif
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kernel-janitors mailing list
> Kernel-janitors@lists.osdl.org
> http://lists.osdl.org/mailman/listinfo/kernel-janitors
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-27 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-26 2:08 [KJ] [PATCH] arch/i386/kernel/acpi/boot.c Jonathan Stafford
2005-02-26 5:43 ` Nish Aravamudan
2005-02-27 16:04 ` walter harms
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.