login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
25
Re: [PATCH 01/31] Add an ERR_CAST() macro to complement ERR_PTR and co. [try #5]
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Zach Brown <zach.brown@...>
To: David Howells <dhowells@...>
Cc: <akpm@...>, <linux-kernel@...>, <linux-fsdevel@...>
Subject:
Re: [PATCH 01/31] Add an ERR_CAST() macro to complement ERR_PTR and co. [try #5]
Date: Thursday, October 25, 2007 - 7:09 pm
> + * ERR_CAST - Explicitly cast an error-valued pointer to another pointer type
quoted text
> + * @ptr: The pointer to cast. > + * > + * Explicitly cast an error-valued pointer to another pointer type in such a > + * way as to make it clear that's what's going on. > + */ > +static inline void *ERR_CAST(const void *ptr) > +{ > + return (void *) ptr; > +}
Just to nit, surely you don't need the cast inside the function. The casting happens at the call site between the argument and returned pointer. - z -
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:
[PATCH 00/31] Remove iget() and read_inode() [try #5]
, David Howells
, (Thu Oct 25, 12:33 pm)
[PATCH 31/31] IGET: Remove iget() and the read_inode() super...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 30/31] IGET: Stop HPPFS from using iget() and read_in...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 29/31] IGET: Stop HOSTFS from using iget() and read_i...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 27/31] IGET: Stop UFS from using iget() and read_inod...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 23/31] IGET: Stop PROCFS from using iget() and read_i...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 28/31] IGET: Stop OPENPROMFS from using iget() and re...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 26/31] IGET: Stop the SYSV filesystem from using iget...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 24/31] IGET: Stop QNX4 from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 18/31] IGET: Stop HFSPLUS from using iget() and read_...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 17/31] IGET: Stop FUSE from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 22/31] IGET: Stop the MINIX filesystem from using ige...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 25/31] IGET: Stop ROMFS from using iget() and read_in...
, David Howells
, (Thu Oct 25, 12:36 pm)
[PATCH 16/31] IGET: Stop FreeVXFS from using iget() and read...
, David Howells
, (Thu Oct 25, 12:35 pm)
Re: [PATCH 16/31] IGET: Stop FreeVXFS from using iget() and ...
, Andrew Morton
, (Tue Nov 6, 6:25 am)
Re: [PATCH 16/31] IGET: Stop FreeVXFS from using iget() and ...
, David Howells
, (Tue Nov 6, 7:09 am)
Re: [PATCH 16/31] IGET: Stop FreeVXFS from using iget() and ...
, David Howells
, (Tue Nov 6, 7:13 am)
[PATCH 21/31] IGET: Stop JFS from using iget() and read_inod...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 20/31] IGET: Stop JFFS2 from using iget() and read_in...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 13/31] IGET: Stop EXT3 from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 14/31] IGET: Stop EXT4 from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 15/31] IGET: Stop FAT from using iget() and read_inod...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 12/31] IGET: Stop EXT2 from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 19/31] IGET: Stop ISOFS from using read_inode() [try ...
, David Howells
, (Thu Oct 25, 12:35 pm)
[PATCH 10/31] IGET: Stop CIFS from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 11/31] IGET: Stop EFS from using iget() and read_inod...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 09/31] IGET: Stop BFS from using iget() and read_inod...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 08/31] IGET: Stop BEFS from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 07/31] IGET: Stop autofs from using iget() and read_i...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 06/31] IGET: Stop AFFS from using iget() and read_ino...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 05/31] IGET: Use iget_failed() in GFS2 [try #5]
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 04/31] IGET: Use iget_failed() in AFS [try #5]
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 03/31] IGET: Introduce a function to register iget fa...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 02/31] Convert ERR_PTR(PTR_ERR(p)) instances to ERR_C...
, David Howells
, (Thu Oct 25, 12:34 pm)
[PATCH 01/31] Add an ERR_CAST() macro to complement ERR_PTR ...
, David Howells
, (Thu Oct 25, 12:33 pm)
Re: [PATCH 01/31] Add an ERR_CAST() macro to complement ERR_...
, Zach Brown
, (Thu Oct 25, 7:09 pm)
Re: [PATCH 01/31] Add an ERR_CAST() macro to complement ERR_...
, Andrew Morton
, (Thu Oct 25, 7:46 pm)
Re: [PATCH 01/31] Add an ERR_CAST() macro to complement ERR_...
, Roland Dreier
, (Thu Oct 25, 7:38 pm)
Re: [PATCH 01/31] Add an ERR_CAST() macro to complement ERR_...
, Zach Brown
, (Thu Oct 25, 8:20 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.27-rc5
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Trent Piepho
Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code
git
:
linux-netdev
:
Christoph Hellwig
Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2]
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
7 users
and
601 guests
online.
Online users
omronhbf-306cf
fireratedsteel
ez_wpthemes
portlandcarins
posters5suuhwkj
carlo331
greggtdowling
Syndicate