Re: [PATCH 2/2] of/flattree: Make unflatten_device_tree() safe tocall from any arch
From: Stephen Rothwell
Date: Mon Feb 22 2010 - 17:51:35 EST
Hi Grant,
On Mon, 22 Feb 2010 08:50:59 -0700 Grant Likely <grant.likely@xxxxxxxxxxxx> wrote:
>
> - If CONFIG_OF_FLATTREE is not set, then make unflatten_device_tree()
> an empty #define.
Any reason not to make this a static inline?
> +#define unflatten_device_tree() do {} while(0)
static inline void unflatten_device_tree(void) {}
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/
Attachment:
pgp00000.pgp
Description: PGP signature