lkml.org 
[lkml]   [2005]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 79/82] move KERNEL_VERSION from linux/version.h to linux/utsname.h

changing CONFIG_LOCALVERSION rebuilds too much, for no appearent reason.

KERNEL_VERSION is a static macro, it doesnt belong to a changing header file.
stuff which relies on UTS_RELEASE or LINUX_VERSION_CODE does already
include linux/version.h
some drivers use KERNEL_VERSION for different purposes

Signed-off-by: Olaf Hering <olh@suse.de>

Makefile | 1 -
include/linux/utsname.h | 3 +++
2 files changed, 3 insertions(+), 1 deletion(-)

Index: linux-2.6.13-rc2-mm1/include/linux/utsname.h
===================================================================
--- linux-2.6.13-rc2-mm1.orig/include/linux/utsname.h
+++ linux-2.6.13-rc2-mm1/include/linux/utsname.h
@@ -33,4 +33,7 @@ struct new_utsname {
extern struct new_utsname system_utsname;

extern struct rw_semaphore uts_sem;
+
+#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+
#endif
Index: linux-2.6.13-rc2-mm1/Makefile
===================================================================
--- linux-2.6.13-rc2-mm1.orig/Makefile
+++ linux-2.6.13-rc2-mm1/Makefile
@@ -836,7 +836,6 @@ define filechk_version.h
fi; (echo #define UTS_RELEASE "$(KERNELRELEASE)"; echo #define LINUX_VERSION_CODE `expr $(VERSION) \* 65536 + $(PATCHLEVEL) \* 256 + $(SUBLEVEL)`; - echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'; )
endef

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-11 01:03    [W:0.351 / U:10.076 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site