Re: [PATCH 0/2] RFC: introduce typechecking toplatform_{get,set}_drvdata

From: Greg KH
Date: Wed Feb 16 2011 - 17:02:55 EST


On Wed, Feb 16, 2011 at 10:55:49PM +0100, Marc Kleine-Budde wrote:
> Hello,
>
> just found a mis-user of platform_set_drvdata(), so introduce typechecking
> to these macro definitions. An alternative would be to make them static inline
> functions.

Make it a static inline, that way you don't have to create that new
macro, as the build will warn/break right away.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/