Re: [RFC patch 26/27] Immediate Values - Jump

From: KOSAKI Motohiro
Date: Sat Apr 19 2008 - 07:41:39 EST


> 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@xxxxxxxxxxxxxx>

---
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)



--
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/