login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
1
Re: [RFC PATCH] type safe allocator
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Andi Kleen <andi@...>
To: Miklos Szeredi <miklos@...>
Cc: <andi@...>, <linux-kernel@...>, <linux-mm@...>, <akpm@...>, <torvalds@...>
Subject:
Re: [RFC PATCH] type safe allocator
Date: Wednesday, August 1, 2007 - 7:34 am
Miklos Szeredi <miklos@szeredi.hu> writes:
quoted text
> > #define k_new(type, flags) ((type *) kmalloc(sizeof(type), flags))
The cast doesn't make it more safe in any way (at least as long as you don't care about portability to C++; the kernel doesn't) -Andi -
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:
[RFC PATCH] type safe allocator
, Miklos Szeredi
, (Wed Aug 1, 5:06 am)
Re: [RFC PATCH] type safe allocator
, Satyam Sharma
, (Thu Aug 2, 3:37 am)
Re: [RFC PATCH] type safe allocator
, Miklos Szeredi
, (Thu Aug 2, 3:40 am)
Re: [RFC PATCH] type safe allocator
, Christoph Lameter
, (Thu Aug 2, 1:33 am)
Re: [RFC PATCH] type safe allocator
, Miklos Szeredi
, (Thu Aug 2, 3:38 am)
Re: [RFC PATCH] type safe allocator
, Christoph Lameter
, (Thu Aug 2, 3:16 pm)
Re: [RFC PATCH] type safe allocator
, Linus Torvalds
, (Wed Aug 1, 11:56 pm)
Re: [RFC PATCH] type safe allocator
, Miklos Szeredi
, (Thu Aug 2, 3:27 am)
Re: [RFC PATCH] type safe allocator
, Linus Torvalds
, (Thu Aug 2, 1:23 pm)
Re: [RFC PATCH] type safe allocator
, Al Viro
, (Thu Aug 2, 8:05 am)
Re: [RFC PATCH] type safe allocator
, Miklos Szeredi
, (Thu Aug 2, 9:05 am)
Re: [RFC PATCH] type safe allocator
, Andi Kleen
, (Wed Aug 1, 6:44 am)
Re: [RFC PATCH] type safe allocator
, Miklos Szeredi
, (Wed Aug 1, 5:57 am)
Re: [RFC PATCH] type safe allocator
, Andi Kleen
, (Wed Aug 1, 7:34 am)
Re: [RFC PATCH] type safe allocator
, Adrian Bunk
, (Wed Aug 1, 5:29 am)
Re: [RFC PATCH] type safe allocator
, Miklos Szeredi
, (Wed Aug 1, 5:41 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrea Arcangeli
[PATCH 00 of 12] mmu notifier #v13
Eric W. Biederman
Remaining straight forward kthread API conversions...
Eric Paris
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan...
Trond Myklebust
Re: Announce: Linux-next (Or Andrew's dream :-))
git
:
linux-netdev
:
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
[GIT]: Networking
Herbert Xu
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Alexey Dobriyan
[PATCH 04/33] Fix {ip,6}_route_me_harder() in netns
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
1066 guests
online.
Online users
strcmp
techxpert
hedomeka86d
Nelson
Syndicate