login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
14
Re: [PATCH] init/version.c: Define version_string only if CONFIG_KALLSYMS is not defined.
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Daniel Guilak
Subject:
Re: [PATCH] init/version.c: Define version_string only if CONFIG_KALLSYMS is not defined.
Date: Monday, July 14, 2008 - 2:25 pm
On Mon, 2008-07-14 at 14:20 -0700, Daniel Guilak wrote:
quoted text
> On Mon, 2008-07-14 at 12:38 -0700, Randy Dunlap wrote: > > On Mon, 14 Jul 2008 12:04:46 -0700 Daniel Guilak wrote: > > > > > 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> > > > --- > > > init/version.c | 2 ++ > > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > > > Depends on "[PATCH] init/version.c: Silenced sparse warning by declaring the version string." > > > > > > diff --git a/init/version.c b/init/version.c > > > index 041fd82..52a8b98 100644 > > > --- a/init/version.c > > > +++ b/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 = { > > > -- > > > > Does not apply cleanly to linux-2.6.26, linux-next-20080714, or Linus-git-head. > > > > Did you apply "[PATCH] init/version.c: Silenced sparse warning by > declaring the version string." beforehand? I just applied it on the most > recent tree and I didn't have any issues. > > > and why do we ned both extern int version_string() > > and int version_string() ? > Because sparse was complaining that it wasn't prototyped or static. > There isn't a header file to put it in since it only exists to be a > kernel.
"Symbol", not "kernel", sorry.
quoted text
> > --- > > ~Randy > > Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA > >
http://linuxplumbersconf.org/
> > --Daniel
--
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] init/version.c: Silenced sparse warning by declari ...
, Daniel Guilak
, (Tue Jul 8, 2:21 pm)
Re: [PATCH] init/version.c: Silenced sparse warning by dec ...
, Josh Triplett
, (Tue Jul 8, 6:10 pm)
Re: [PATCH] init/version.c: Silenced sparse warning by dec ...
, Andrew Morton
, (Fri Jul 11, 12:18 pm)
Re: [PATCH] init/version.c: Silenced sparse warning by dec ...
, Daniel Guilak
, (Mon Jul 14, 12:02 pm)
[PATCH] init/version.c: Define version_string only if CONF ...
, Daniel Guilak
, (Mon Jul 14, 12:04 pm)
Re: [PATCH] init/version.c: Define version_string only if ...
, Randy Dunlap
, (Mon Jul 14, 12:38 pm)
Re: [PATCH] init/version.c: Define version_string only if ...
, Daniel Guilak
, (Mon Jul 14, 2:20 pm)
Re: [PATCH] init/version.c: Define version_string only if ...
, Daniel Guilak
, (Mon Jul 14, 2:25 pm)
Re: [PATCH] init/version.c: Define version_string only if ...
, Randy Dunlap
, (Mon Jul 14, 3:07 pm)
Re: [PATCH] init/version.c: Define version_string only if ...
, Daniel Guilak
, (Mon Jul 14, 3:29 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Jan Engelhardt
Re: [PATCH] Allow Kconfig to set default mmap_min_addr protection
Dmitry Torokhov
Re: [2.6 patch] input/serio/hp_sdc.c section fix
Rafael J. Wysocki
[Bug #16380] Loop devices act strangely in 2.6.35
git
:
Steven Grimm
Using git as a general backup mechanism (was Re: Using GIT to store /etc)
Jeff King
Re: [PATCH] git-reset: allow --soft in a bare repo
Johannes Sixt
Re: [PATCH 01/14] msvc: Fix compilation errors in compat/win32/sys/poll.c
Johannes Schindelin
Re: [PATCH] Uninstall rule for top level Makefile
Shawn O. Pearce
Re: [PATCH v2] Speed up bash completion loading
git-commits-head
:
Linux Kernel Mailing List
cgroups: clean up cgroup_pidlist_find() a bit
Linux Kernel Mailing List
sony-laptop: Add support for extended hotkeys
Linux Kernel Mailing List
IB/core: Add support for masked atomic operations
Linux Kernel Mailing List
V4L/DVB (8939): cx18: fix sparse warnings
Linux Kernel Mailing List
ipv6 mcast: Check address family of gf_group in getsockopt(MS_FILTER).
linux-netdev
:
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Karsten Keil
[mISDN PATCH v2 05/19] Reduce stack size in dsp_cmx_send()
linux
Re: 2.6.23-rc8 network problem. Mem leak? ip1000a?
David Miller
Re: tun: Use netif_receive_skb instead of netif_rx
David Miller
Re: [net-next PATCH v2] llc enhancements
freebsd-current
:
Matthew Fleming
Re: [RFC] Outline of USB process integration in the kernel taskqueue system
illoai@gmail.com
Re: OT: 2d password
Hartmut Brandt
Re: problem with nss_ldap
Andrew Reilly
Re: FreeBSD's problems as seen by the BSDForen.de community
Max Laier
Re: Upcoming ABI Breakage in RELENG_7
Colocation donated by:
Syndicate