* [KJ] [PATCH 2.6.13-c1 3/17] fix sparse warnings (__nocast type)
@ 2005-07-03 18:49 Victor Fusco
2005-07-03 22:11 ` Alexey Dobriyan
0 siblings, 1 reply; 2+ messages in thread
From: Victor Fusco @ 2005-07-03 18:49 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 156 bytes --]
Description:
Fix the sparse warning "implicit cast to nocast type"
File/Subsystem: mm/mempool.c
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
[-- Attachment #2: mm_mempool.patch --]
[-- Type: text/x-diff, Size: 552 bytes --]
Fix the sparse warning:
implicit cast to nocast type
mm/mempool.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6-git/mm/mempool.c
===================================================================
--- linux-2.6-git.orig/mm/mempool.c 2005-07-01 17:48:52.000000000 +0000
+++ linux-2.6-git/mm/mempool.c 2005-07-03 14:15:48.000000000 +0000
@@ -205,7 +205,7 @@
void *element;
unsigned long flags;
wait_queue_t wait;
- int gfp_temp;
+ unsigned int __nocast gfp_temp;
might_sleep_if(gfp_mask & __GFP_WAIT);
[-- 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] 2+ messages in thread
* Re: [KJ] [PATCH 2.6.13-c1 3/17] fix sparse warnings (__nocast type)
2005-07-03 18:49 [KJ] [PATCH 2.6.13-c1 3/17] fix sparse warnings (__nocast type) Victor Fusco
@ 2005-07-03 22:11 ` Alexey Dobriyan
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2005-07-03 22:11 UTC (permalink / raw)
To: kernel-janitors
On Sunday 03 July 2005 22:49, Victor Fusco wrote:
> --- linux-2.6-git.orig/mm/mempool.c
> +++ linux-2.6-git/mm/mempool.c
> @@ -205,7 +205,7 @@
> void *element;
> unsigned long flags;
> wait_queue_t wait;
> - int gfp_temp;
> + unsigned int __nocast gfp_temp;
Already in -mm, but only function parameters should be __nocast annotated.
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-03 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-03 18:49 [KJ] [PATCH 2.6.13-c1 3/17] fix sparse warnings (__nocast type) Victor Fusco
2005-07-03 22:11 ` 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.