Messages in this thread Patch in this message | | | Date | Sat, 19 Apr 2008 20:41:17 +0900 | From | KOSAKI Motohiro <> | Subject | Re: [RFC patch 26/27] Immediate Values - Jump |
| |
> Index: linux-2.6-lttng/include/linux/immediate.h > =================================================================== > --- linux-2.6-lttng.orig/include/linux/immediate.h 2008-04-16 14:04:47.000000000 -0400 > +++ linux-2.6-lttng/include/linux/immediate.h 2008-04-16 14:04:48.000000000 -0400 > @@ -33,8 +33,7 @@ > * Internal update functions. > */ > extern void core_imv_update(void); > -extern void imv_update_range(const struct __imv *begin, > - const struct __imv *end); > +extern void imv_update_range(struct __imv *begin, struct __imv *end); > extern void imv_unref_core_init(void); > extern void imv_unref(struct __imv *begin, struct __imv *end, void *start, > unsigned long size); > @@ -54,6 +53,14 @@ extern void imv_unref(struct __imv *begi > #define imv_read(name) _imv_read(name) > > /** > + * imv_cond - read immediate variable use as condition for if() > + * @name: immediate value name > + * > + * Reads the value of @name. > + */ > +#define imv_cond _imv_read(name) > + > +/**
err, missing name argument.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
--- include/linux/immediate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/include/linux/immediate.h =================================================================== --- a/include/linux/immediate.h 2008-04-19 20:57:19.000000000 +0900 +++ b/include/linux/immediate.h 2008-04-19 21:09:01.000000000 +0900 @@ -62,7 +62,7 @@ struct __imv { * * Reads the value of @name. */ -#define imv_cond _imv_read(name) +#define imv_cond(name) _imv_read(name)
/** * imv_set - set immediate variable (with locking)
| |