All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian Bornträger" <borntrae@de.ibm.com>
To: "André Lopes" <andre.neo.net@gmail.com>
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Are the cast necessary in function "kfree"?
Date: Wed, 20 May 2009 10:38:15 +0000	[thread overview]
Message-ID: <200905201238.16160.borntrae@de.ibm.com> (raw)
In-Reply-To: <5c43c2d40905200330p5b14be2ey567bc493374e09b3@mail.gmail.com>

Am Mittwoch 20 Mai 2009 12:30:21 schrieb André Lopes:

I only looked at the s390 parts:

> arch/s390/include/asm/idals.h:110: kfree((void *)(unsigned long) ccw->cda);
This cast is necessary since cda is an u32 even on 64bit machines.

> drivers/s390/char/vmur.c:188:        kfree((void *)(addr_t) ptr->cda);
dito.

Christian


--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: "Christian Bornträger" <borntrae@de.ibm.com>
To: "André Lopes" <andre.neo.net@gmail.com>
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Are the cast necessary in function "kfree"?
Date: Wed, 20 May 2009 12:38:15 +0200	[thread overview]
Message-ID: <200905201238.16160.borntrae@de.ibm.com> (raw)
In-Reply-To: <5c43c2d40905200330p5b14be2ey567bc493374e09b3@mail.gmail.com>

Am Mittwoch 20 Mai 2009 12:30:21 schrieb André Lopes:

I only looked at the s390 parts:

> arch/s390/include/asm/idals.h:110: kfree((void *)(unsigned long) ccw->cda);
This cast is necessary since cda is an u32 even on 64bit machines.

> drivers/s390/char/vmur.c:188:        kfree((void *)(addr_t) ptr->cda);
dito.

Christian



  reply	other threads:[~2009-05-20 10:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-20 10:30 Are the cast necessary in function "kfree"? André Lopes
2009-05-20 10:30 ` André Lopes
2009-05-20 10:38 ` Christian Bornträger [this message]
2009-05-20 10:38   ` Christian Bornträger
2009-05-20 11:16 ` Paul Mundt
2009-05-20 11:16   ` Paul Mundt
2009-05-20 12:18 ` walter harms

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=200905201238.16160.borntrae@de.ibm.com \
    --to=borntrae@de.ibm.com \
    --cc=andre.neo.net@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    --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 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.