* [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type)
@ 2005-07-03 18:57 Victor Fusco
2005-07-03 20:01 ` Victor Fusco
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Victor Fusco @ 2005-07-03 18:57 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 155 bytes --]
Description:
Fix the sparse warning "implicit cast to nocast type"
File/Subsystem: fs/reiserfs
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
[-- Attachment #2: reiserfs_fs.patch --]
[-- Type: text/x-diff, Size: 760 bytes --]
include/linux/reiserfs_fs.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6-git/include/linux/reiserfs_fs.h
===================================================================
--- linux-2.6-git.orig/include/linux/reiserfs_fs.h 2005-07-01 17:48:51.000000000 +0000
+++ linux-2.6-git/include/linux/reiserfs_fs.h 2005-07-03 14:15:48.000000000 +0000
@@ -2008,7 +2008,7 @@
void * reiserfs_kmalloc (size_t size, int flags, struct super_block * s);
void reiserfs_kfree (const void * vp, size_t size, struct super_block * s);
#else
-static inline void *reiserfs_kmalloc(size_t size, int flags,
+static inline void *reiserfs_kmalloc(size_t size, unsigned int __nocast flags,
struct super_block *s)
{
return kmalloc(size, flags);
[-- 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] 4+ messages in thread
* Re: [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type)
2005-07-03 18:57 [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type) Victor Fusco
@ 2005-07-03 20:01 ` Victor Fusco
2005-07-03 22:36 ` Alexey Dobriyan
2005-07-06 2:03 ` Victor Fusco
2 siblings, 0 replies; 4+ messages in thread
From: Victor Fusco @ 2005-07-03 20:01 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 427 bytes --]
Em Dom 03 Jul 2005 22:36, você escreveu:
> You forget to patch the prototype 3 lines above and fs/reiserfs/fix_node.c
Here is the correction.
Thanks,
Victor Fusco
---------------------------------------------------------------------------------
Description:
Fix the sparse warning "implicit cast to nocast type"
File/Subsystem: fs/reiserfs
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
[-- Attachment #2: reiserfs_fs.patch --]
[-- Type: text/x-diff, Size: 937 bytes --]
include/linux/reiserfs_fs.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: linux-2.6-git/include/linux/reiserfs_fs.h
===================================================================
--- linux-2.6-git.orig/include/linux/reiserfs_fs.h 2005-07-03 19:43:09.000000000 +0000
+++ linux-2.6-git/include/linux/reiserfs_fs.h 2005-07-03 19:44:45.000000000 +0000
@@ -2005,10 +2005,11 @@
/* fix_nodes.c */
#ifdef CONFIG_REISERFS_CHECK
-void * reiserfs_kmalloc (size_t size, int flags, struct super_block * s);
+void * reiserfs_kmalloc (size_t size, unsigned int __nocast flags,
+ struct super_block * s);
void reiserfs_kfree (const void * vp, size_t size, struct super_block * s);
#else
-static inline void *reiserfs_kmalloc(size_t size, int flags,
+static inline void *reiserfs_kmalloc(size_t size, unsigned int __nocast flags,
struct super_block *s)
{
return kmalloc(size, flags);
[-- 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] 4+ messages in thread
* Re: [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type)
2005-07-03 18:57 [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type) Victor Fusco
2005-07-03 20:01 ` Victor Fusco
@ 2005-07-03 22:36 ` Alexey Dobriyan
2005-07-06 2:03 ` Victor Fusco
2 siblings, 0 replies; 4+ messages in thread
From: Alexey Dobriyan @ 2005-07-03 22:36 UTC (permalink / raw)
To: kernel-janitors
On Sunday 03 July 2005 22:57, Victor Fusco wrote:
> --- linux-2.6-git.orig/include/linux/reiserfs_fs.h
> +++ linux-2.6-git/include/linux/reiserfs_fs.h
> @@ -2008,7 +2008,7 @@
> void * reiserfs_kmalloc (size_t size, int flags, struct super_block * s);
> void reiserfs_kfree (const void * vp, size_t size, struct super_block * s);
> #else
> -static inline void *reiserfs_kmalloc(size_t size, int flags,
> +static inline void *reiserfs_kmalloc(size_t size, unsigned int __nocast flags,
> struct super_block *s)
You forget to patch the prototype 3 lines above and fs/reiserfs/fix_node.c
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type)
2005-07-03 18:57 [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type) Victor Fusco
2005-07-03 20:01 ` Victor Fusco
2005-07-03 22:36 ` Alexey Dobriyan
@ 2005-07-06 2:03 ` Victor Fusco
2 siblings, 0 replies; 4+ messages in thread
From: Victor Fusco @ 2005-07-06 2:03 UTC (permalink / raw)
To: kernel-janitors
On Sunday 03 July 2005 22:36, Alexey Dobriyan wrote:
> On Sunday 03 July 2005 22:57, Alexey Dobriyan wrote:
> > --- linux-2.6-git.orig/include/linux/reiserfs_fs.h
> > +++ linux-2.6-git/include/linux/reiserfs_fs.h
> > @@ -2008,7 +2008,7 @@
> > void * reiserfs_kmalloc (size_t size, int flags, struct super_block * s);
> > void reiserfs_kfree (const void * vp, size_t size, struct super_block * s);
> > #else
> > -static inline void *reiserfs_kmalloc(size_t size, int flags,
> > +static inline void *reiserfs_kmalloc(size_t size, unsigned int __nocast flags,
> > struct super_block *s)
>
> You forget to patch the prototype 3 lines above and fs/reiserfs/fix_node.c
>
"and fs/reiserfs/fix_node.c"
Description:
Fix the sparse warning "implicit cast to nocast type"
File/Subsystem: fs/reiserfs/fix_node.c
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
fs/reiserfs/fix_node.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: linux-git/fs/reiserfs/fix_node.c
=================================--- linux-git.orig/fs/reiserfs/fix_node.c 2005-07-06 00:35:29.000000000 +0000
+++ linux-git/fs/reiserfs/fix_node.c 2005-07-06 01:50:50.000000000 +0000
@@ -1967,7 +1967,7 @@
}
#ifdef CONFIG_REISERFS_CHECK
-void * reiserfs_kmalloc (size_t size, int flags, struct super_block * s)
+void * reiserfs_kmalloc (size_t size, unsigned int __nocast flags, struct super_block * s)
{
void * vp;
static size_t malloced;
--
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-06 2:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-03 18:57 [KJ] [PATCH 2.6.13-rc1 9/17] fix sparse warnings (__nocast type) Victor Fusco
2005-07-03 20:01 ` Victor Fusco
2005-07-03 22:36 ` Alexey Dobriyan
2005-07-06 2:03 ` Victor Fusco
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.