]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commitdiff
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 838bf82852e8e2f98692764d9f50be52d305cada..46fda21aa29895fbeeb77e56b8ce7456b39d46e0 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 ef18516b234e6b59165922f1fd1701d8beea6e7f..a1a48d01a73dbd13763671367640439afc904446 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 "