mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: David Howells <dhowells@redhat.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] no need to cast pointer to (void *) when passing it to kfree()
Date: Tue, 5 Apr 2005 18:16:24 +0200	[thread overview]
Message-ID: <20050405161624.GC12536@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <Pine.LNX.4.62.0504051238410.15967@jjulnx.backbone.dif.dk>

On Tue, 5 April 2005 12:39:44 +0200, Jesper Juhl wrote:
> On Tue, 5 Apr 2005, David Howells wrote:
> > Jesper Juhl <juhl-lkml@dif.dk> wrote:
> > 
> > > kfree() takes a void pointer argument, no need to cast.
> > 
> > vma->vm_start is unsigned long (unless it's changed since last I looked):
> > 
> As I wrote in the reply I send to my original mail I made a stupid 
> mistake. Don't know what I was thinking. Sorry.

Your thinking wasn't that bad, just didn't match the language.  As
Linus already noted, C could use a truly transparent data type, for
things like kmalloc, kfree, or the various ->private_data fields in
structs.

Jörn

-- 
The cost of changing business rules is much more expensive for software
than for a secretaty.
-- unknown

      reply	other threads:[~2005-04-05 16:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04 21:31 Jesper Juhl
2005-04-04 21:55 ` Jesper Juhl
2005-04-05 10:04 ` David Howells
2005-04-05 10:39   ` Jesper Juhl
2005-04-05 16:16     ` Jörn Engel [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=20050405161624.GC12536@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=dhowells@redhat.com \
    --cc=juhl-lkml@dif.dk \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®