Add a COMPAT_PROJECT tag
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 17 May 2010 21:36:43 +0000 (14:36 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 17 May 2010 21:36:43 +0000 (14:36 -0700)
This will be used to identify the backport project
only during initialization, there is no associated
module parameter for this as there is no need for it.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Makefile
compat/main.c

index 838bf82..46fda21 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@ NOSTDINC_FLAGS := -I$(M)/include/ \
        $(CFLAGS) \
        -DCOMPAT_BASE_TREE=\"$(COMPAT_BASE_TREE)\" \
        -DCOMPAT_BASE_TREE_VERSION=\"$(COMPAT_BASE_TREE_VERSION)\" \
+       -DCOMPAT_PROJECT="\"Generic kernel\"" \
        -DCOMPAT_VERSION=\"$(COMPAT_VERSION)\"
 
 modules:
index ef18516..a1a48d0 100644 (file)
@@ -37,7 +37,8 @@ static int __init compat_init(void)
        /* pm-qos for kernels <= 2.6.24, this is a no-op on newer kernels */
        compat_pm_qos_power_init();
 
-       printk(KERN_INFO "Kernel backport release: "
+       printk(KERN_INFO
+              COMPAT_PROJECT " backport release: "
               COMPAT_VERSION
               "\n");
        printk(KERN_INFO "Backport based on "