login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
16
Re: Why is the kfree() argument const?
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Christoph Lameter <clameter@...>
To: Johannes Weiner <hannes@...>
Cc: Linus Torvalds <torvalds@...>, Linux Kernel Mailing List <linux-kernel@...>, <penberg@...>
Subject:
Re: Why is the kfree() argument const?
Date: Wednesday, January 16, 2008 - 6:20 pm
On Wed, 16 Jan 2008, Johannes Weiner wrote:
quoted text
> So if I got it right and you actually modify the memory you only got a > const pointer to, you reach a level where you _have to_ break this > policy and cast to a non-const pointer, as it is currently done in > kfree(). No?
Correct and we have gcc 4.2 currently spitting out warnings because of casting to non const. Any idea how to convince gcc that this is okay? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Why is the kfree() argument const?
, Johannes Weiner
, (Wed Jan 16, 12:32 pm)
Re: Why is the kfree() argument const?
, Linus Torvalds
, (Wed Jan 16, 2:39 pm)
Re: Why is the kfree() argument const?
, Steven Rostedt
, (Wed Jan 16, 6:33 pm)
Re: Why is the kfree() argument const?
, Johannes Weiner
, (Wed Jan 16, 6:19 pm)
Re: Why is the kfree() argument const?
, Linus Torvalds
, (Wed Jan 16, 7:16 pm)
Re: Why is the kfree() argument const?
, Christoph Lameter
, (Wed Jan 16, 6:20 pm)
Re: Why is the kfree() argument const?
, Linus Torvalds
, (Wed Jan 16, 7:18 pm)
Re: Why is the kfree() argument const?
, Johannes Weiner
, (Wed Jan 16, 7:13 pm)
Re: Why is the kfree() argument const?
, Johannes Weiner
, (Wed Jan 16, 6:37 pm)
Re: Why is the kfree() argument const?
, Christoph Lameter
, (Wed Jan 16, 12:48 pm)
Re: Why is the kfree() argument const?
, Pekka J Enberg
, (Wed Jan 16, 1:45 pm)
Re: Why is the kfree() argument const?
, Bernd Petrovitsch
, (Wed Jan 16, 1:34 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andi Kleen
[PATCH] [3/58] x86_64: asm/ptrace.h needs linux/compiler.h
Ingo Molnar
Re: containers (was Re: -mm merge plans for 2.6.23)
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
[GIT]: Networking
Linus Torvalds
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
862 guests
online.
Online users
sreejithc
matamas80
nat505asha
jhitch6
interruptorebxf
lea22
Syndicate