* [KJ] [PATCH 2.6.13-rc1 16/17] fix sparse warnings (__nocast type)
@ 2005-07-03 19:06 Victor Fusco
2005-07-03 20:03 ` Victor Fusco
2005-07-03 22:45 ` Alexey Dobriyan
0 siblings, 2 replies; 3+ messages in thread
From: Victor Fusco @ 2005-07-03 19:06 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
Description:
Fix the sparse warning "implicit cast to nocast type"
File/Subsystem: drivers/ieee1394/raw1394.c
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
[-- Attachment #2: ieee1394_raw1394.patch --]
[-- Type: text/x-diff, Size: 644 bytes --]
drivers/ieee1394/raw1394.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: linux-2.6-git/drivers/ieee1394/raw1394.c
===================================================================
--- linux-2.6-git.orig/drivers/ieee1394/raw1394.c 2005-07-01 17:48:31.000000000 +0000
+++ linux-2.6-git/drivers/ieee1394/raw1394.c 2005-07-03 17:06:04.000000000 +0000
@@ -98,7 +98,8 @@
static void queue_complete_cb(struct pending_request *req);
-static struct pending_request *__alloc_pending_request(int flags)
+static struct
+pending_request *__alloc_pending_request(unsigned int __nocast flags)
{
struct pending_request *req;
[-- Attachment #3: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] [PATCH 2.6.13-rc1 16/17] fix sparse warnings (__nocast type)
2005-07-03 19:06 [KJ] [PATCH 2.6.13-rc1 16/17] fix sparse warnings (__nocast type) Victor Fusco
@ 2005-07-03 20:03 ` Victor Fusco
2005-07-03 22:45 ` Alexey Dobriyan
1 sibling, 0 replies; 3+ messages in thread
From: Victor Fusco @ 2005-07-03 20:03 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 599 bytes --]
Em Dom 03 Jul 2005 22:45, Alexey Dobriyan escreveu:
> Very wrong line break. There are two styles in the kernel:
>
> a) struct foo * bar(void)
> {
> }
>
> b) struct foo *
> bar(void)
> {
> }
>
> drivers/ieee1394/raw1394.c uses a). Stick to it.
>
Oops..
Here is the correction.
Thanks,
Victor Fusco
-------------------------------------------------------------------------------
Description:
Fix the sparse warning "implicit cast to nocast type"
File/Subsystem: drivers/ieee1394/raw1394.c
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
[-- Attachment #2: ieee1394_raw1394.patch --]
[-- Type: text/x-diff, Size: 641 bytes --]
drivers/ieee1394/raw1394.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6-git/drivers/ieee1394/raw1394.c
===================================================================
--- linux-2.6-git.orig/drivers/ieee1394/raw1394.c 2005-07-03 19:47:50.000000000 +0000
+++ linux-2.6-git/drivers/ieee1394/raw1394.c 2005-07-03 19:48:43.000000000 +0000
@@ -98,7 +98,7 @@
static void queue_complete_cb(struct pending_request *req);
-static struct pending_request *__alloc_pending_request(int flags)
+static struct pending_request *__alloc_pending_request(unsigned int __nocast flags)
{
struct pending_request *req;
[-- Attachment #3: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] [PATCH 2.6.13-rc1 16/17] fix sparse warnings (__nocast type)
2005-07-03 19:06 [KJ] [PATCH 2.6.13-rc1 16/17] fix sparse warnings (__nocast type) Victor Fusco
2005-07-03 20:03 ` Victor Fusco
@ 2005-07-03 22:45 ` Alexey Dobriyan
1 sibling, 0 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2005-07-03 22:45 UTC (permalink / raw)
To: kernel-janitors
On Sunday 03 July 2005 23:06, Victor Fusco wrote:
> --- linux-2.6-git.orig/drivers/ieee1394/raw1394.c
> +++ linux-2.6-git/drivers/ieee1394/raw1394.c
>
> -static struct pending_request *__alloc_pending_request(int flags)
> +static struct
> +pending_request *__alloc_pending_request(unsigned int __nocast flags)
Very wrong line break. There are two styles in the kernel:
a) struct foo * bar(void)
{
}
b) struct foo *
bar(void)
{
}
drivers/ieee1394/raw1394.c uses a). Stick to it.
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-03 22:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-03 19:06 [KJ] [PATCH 2.6.13-rc1 16/17] fix sparse warnings (__nocast type) Victor Fusco
2005-07-03 20:03 ` Victor Fusco
2005-07-03 22:45 ` Alexey Dobriyan
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.