* + init-versionc-define-version_string-only-if-config_kallsyms-is-not-defined.patch added to -mm tree
@ 2008-07-14 22:22 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2008-07-14 22:22 UTC (permalink / raw)
To: mm-commits; +Cc: guilak, daniel, randy.dunlap
The patch titled
init/version.c: define version_string only if CONFIG_KALLSYMS is not defined
has been added to the -mm tree. Its filename is
init-versionc-define-version_string-only-if-config_kallsyms-is-not-defined.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: init/version.c: define version_string only if CONFIG_KALLSYMS is not defined
From: Daniel Guilak <guilak@linux.vnet.ibm.com>
int Version_* is only used with ksymoops, which is only needed (according
to README and Documentation/Changes) if CONFIG_KALLSYMS is NOT defined.
Therefore this patch defines version_string only if CONFIG_KALLSYMS is not
defined.
Signed-off-by: Daniel Guilak <daniel@danielguilak.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
init/version.c | 2 ++
1 file changed, 2 insertions(+)
diff -puN init/version.c~init-versionc-define-version_string-only-if-config_kallsyms-is-not-defined init/version.c
--- a/init/version.c~init-versionc-define-version_string-only-if-config_kallsyms-is-not-defined
+++ a/init/version.c
@@ -13,11 +13,13 @@
#include <linux/utsrelease.h>
#include <linux/version.h>
+#ifndef CONFIG_KALLSYMS
#define version(a) Version_ ## a
#define version_string(a) version(a)
extern int version_string(LINUX_VERSION_CODE);
int version_string(LINUX_VERSION_CODE);
+#endif
struct uts_namespace init_uts_ns = {
.kref = {
_
Patches currently in -mm which might be from guilak@linux.vnet.ibm.com are
init-versionc-silenced-sparse-warning-by-declaring-the-version-string.patch
init-versionc-define-version_string-only-if-config_kallsyms-is-not-defined.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-14 22:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-14 22:22 + init-versionc-define-version_string-only-if-config_kallsyms-is-not-defined.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.