From: Domen Puncer <domen@coderock.org>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH 2.6.13-c1 2/17] fix sparse warnings (__nocast type)
Date: Tue, 05 Jul 2005 14:06:15 +0000 [thread overview]
Message-ID: <20050705140615.GC2257@homer.coderock.org> (raw)
In-Reply-To: <200507031848.19703.victor@cetuc.puc-rio.br>
[-- Attachment #1: Type: text/plain, Size: 1892 bytes --]
On 04/07/05 00:58 +0000, Victor Fusco wrote:
> Em Dom 03 Jul 2005 22:22, voc? escreveu:
> > On Sunday 03 July 2005 22:48, Victor Fusco wrote:
> > > --- linux-2.6-git.orig/mm/slab.c
> > > +++ linux-2.6-git/mm/slab.c
> >
> > > - cachep->slabp_cache = kmem_find_general_cachep(slab_size,0);
> > > + cachep->slabp_cache = kmem_find_general_cachep(slab_size, 0u);
> >
> > > -void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid)
> > > +void *kmem_cache_alloc_node(kmem_cache_t *cachep, unsigned int __nocast
> flags, int nodeid)
> >
> > Everything except kmem_cache_alloc_node() annotations and 0u chunk is
> > already in -mm.
>
> Description:
> ????????Fix the sparse warning "implicit cast to nocast type"
Can you change "quote-printable" to 7bit, 8bit, plain text or something sane?
> ?
> File/Subsystem: mm/slab
>
> Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
>
> slab.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>
> Index: linux-2.6-git/mm/slab.c
> ===================================================================
> --- linux-2.6-git.orig/mm/slab.c 2005-07-03 15:00:06.000000000 +0000
> +++ linux-2.6-git/mm/slab.c 2005-07-03 15:00:51.000000000 +0000
> @@ -1425,7 +1426,7 @@
> INIT_LIST_HEAD(&cachep->lists.slabs_free);
>
> if (flags & CFLGS_OFF_SLAB)
> - cachep->slabp_cache = kmem_find_general_cachep(slab_size,0);
> + cachep->slabp_cache = kmem_find_general_cachep(slab_size, 0u);
> cachep->ctor = ctor;
> cachep->dtor = dtor;
> cachep->name = name;
> @@ -2365,7 +2366,7 @@
> * and can sleep. And it will allocate memory on the given node, which
> * can improve the performance for cpu bound structures.
> */
> -void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid)
> +void *kmem_cache_alloc_node(kmem_cache_t *cachep, unsigned int __nocast
> flags, int nodeid)
Line wrapped.
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2005-07-05 14:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-03 18:48 [KJ] [PATCH 2.6.13-c1 2/17] fix sparse warnings (__nocast type) Victor Fusco
2005-07-03 22:22 ` Alexey Dobriyan
2005-07-04 0:58 ` Victor Fusco
2005-07-05 14:06 ` Domen Puncer [this message]
2005-07-05 14:52 ` [KJ] [PATCH 2.6.13-c1 2/17] fix sparse warnings [UPDATE] Victor Fusco
2005-07-05 15:07 ` [KJ] [PATCH 2.6.13-c1 2/17] fix sparse warnings (__nocast type) Alexey Dobriyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050705140615.GC2257@homer.coderock.org \
--to=domen@coderock.org \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.