All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH 10/20] Fix "nocast type" warnings
Date: Mon, 11 Jul 2005 10:16:41 +0000	[thread overview]
Message-ID: <200507111416.41333.adobriyan@gmail.com> (raw)
In-Reply-To: <200507102319.34713.victor@cetuc.puc-rio.br>

On Monday 11 July 2005 03:19, Victor Fusco wrote:
> --- linux-git.orig/drivers/pnp/pnpbios/core.c
> +++ linux-git/drivers/pnp/pnpbios/core.c

> -void *pnpbios_kmalloc(size_t size, int f)
> +void *pnpbios_kmalloc(size_t size, unsigned int __nocast flags)
>  {
> -	void *p = kmalloc( size, f );
> +	void *p = kmalloc( size, flags );
>  	if ( p = NULL )
>  		printk(KERN_ERR "PnPBIOS: kmalloc() failed\n");
>  	else
                memset(p, 0, size);
        return p;
   }

YA kcalloc(). sparse correctly warns you pnpbios_kmalloc() is a trivial
wrapper that should be removed. 
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

      reply	other threads:[~2005-07-11 10:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-10 23:19 [KJ] [PATCH 10/20] Fix "nocast type" warnings Victor Fusco
2005-07-11 10:16 ` Alexey Dobriyan [this message]

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=200507111416.41333.adobriyan@gmail.com \
    --to=adobriyan@gmail.com \
    --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.