linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: ftrace tree build failure
@ 2008-11-25  3:07 Stephen Rothwell
  2008-11-25  3:21 ` Steven Rostedt
  2008-11-25  7:28 ` Ingo Molnar
  0 siblings, 2 replies; 37+ messages in thread
From: Stephen Rothwell @ 2008-11-25  3:07 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin
  Cc: linux-next, Steven Rostedt, Luis R. Rodriguez, John W. Linville,
	David S. Miller

Hi all,

Today's linux-next build (x86_64 allmodconfig) failed like this:

net/wireless/reg.c:348:29: error: macro "if" passed 2 arguments, but takes just 1
net/wireless/reg.c: In function 'ignore_request':
net/wireless/reg.c:349: error: expected '(' before 'return'

This is clearly a bug in in the above file and should be fixed there, so
I have applied the following patch for today.  I expect some patch to fix
this to appear in the wireless-current or net-current tree very soon.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 626dbb6..648c765 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -343,9 +343,7 @@ static int ignore_request(struct wiphy *wiphy, enum reg_set_by set_by,
 				return 0;
 			return -EALREADY;
 		}
-		if (WARN_ON(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2)),
-				"Invalid Country IE regulatory hint passed "
-				"to the wireless core\n")
+		if (WARN_ON(!is_alpha2_set(alpha2) || !is_an_alpha2(alpha2)))
 			return -EINVAL;
 		/* We ignore Country IE hints for now, as we haven't yet
 		 * added the dot11MultiDomainCapabilityEnabled flag

^ permalink raw reply related	[flat|nested] 37+ messages in thread
* linux-next: ftrace tree build failure
@ 2009-01-07  0:53 Stephen Rothwell
  2009-01-07  9:55 ` Ingo Molnar
  0 siblings, 1 reply; 37+ messages in thread
From: Stephen Rothwell @ 2009-01-07  0:53 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

Hi all,

Today's linux-next build (x86_64 allmodconfig) failed like this:

init/main.c:653: undefined reference to `kmemtrace_init'

I have cherry-picked the fix from the tip/master tree.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 37+ messages in thread
* linux-next: ftrace tree build failure
@ 2009-01-02  9:07 Stephen Rothwell
  2009-01-02  9:14 ` Ingo Molnar
  0 siblings, 1 reply; 37+ messages in thread
From: Stephen Rothwell @ 2009-01-02  9:07 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-next

Hi Ingo,

Today's linux-next build (sparc defconfig) failed like this:

mm/slab.c:105:31: error: tracing/kmemtrace.h: No such file or directory

Caused by commit 3fd4bc015ef879a7d2b955ce97fb125e3a51ba7e
("tracing/kmemtrace: export kmemtrace_mark_alloc_node() /
kmemtrace_mark_free()") from the ftrace tree.

For a "build fix", this didn't :-)

I didn't revert the ftrace tree today, but added the patch below.  A bit
more care, please.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Fri, 2 Jan 2009 19:25:21 +1100
Subject: [PATCH] tracing/kmemtrace: fix for build fix

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 mm/slab.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/slab.c b/mm/slab.c
index 7241a19..ae76de2 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -102,7 +102,7 @@
 #include	<linux/cpu.h>
 #include	<linux/sysctl.h>
 #include	<linux/module.h>
-#include	<tracing/kmemtrace.h>
+#include	<trace/kmemtrace.h>
 #include	<linux/rcupdate.h>
 #include	<linux/string.h>
 #include	<linux/uaccess.h>
-- 
1.6.0.5

^ permalink raw reply related	[flat|nested] 37+ messages in thread
* linux-next: ftrace tree build failure
@ 2008-11-25  3:21 Stephen Rothwell
  2008-11-25  3:48 ` Steven Rostedt
  0 siblings, 1 reply; 37+ messages in thread
From: Stephen Rothwell @ 2008-11-25  3:21 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next, Steven Rostedt

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

Hi all,

Today's linux-next build (x86_64 allmodconfig) failed like this:

arch/x86/boot/tty.c: Assembler messages:
arch/x86/boot/tty.c:76: Error: bad register name `%dil'

I have no idea what caused this (maybe a compiler option?) so I have
dropped the ftrace tree for today.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 37+ messages in thread
* linux-next: ftrace tree build failure
@ 2008-08-25  3:08 Stephen Rothwell
  2008-08-25  6:05 ` Ingo Molnar
  0 siblings, 1 reply; 37+ messages in thread
From: Stephen Rothwell @ 2008-08-25  3:08 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next

Hi all,

Today's linux-next build (x86_64 allmodconfig) failed like this:

kernel/trace/ftrace.c: In function 'ftrace_record_ip':
kernel/trace/ftrace.c:416: error: incompatible type for argument 1 of '_spin_lock_irqsave'
kernel/trace/ftrace.c:433: error: incompatible type for argument 1 of '_spin_lock_irqsave'

(This is after I have disabled CONFIG_FTRACE_MCOUNT_RECORD)

Introduced by commit 6dad8e07f4c10b17b038e84d29f3ca41c2e55cd0 ("ftrace:
add necessary locking for ftrace records").  I have applied the following
patch.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 25 Aug 2008 13:06:46 +1000
Subject: [PATCH] ftrace: fix locking when CONFIG_FTRACE_MCOUNT_RECORD is not set

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 kernel/trace/ftrace.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index dcc8f6b..2bc3eb5 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -161,8 +161,8 @@ static int __unregister_ftrace_function(struct ftrace_ops *ops)
  * not recorded via the compilation.
  */
 static DEFINE_SPINLOCK(ftrace_hash_lock);
-#define ftrace_hash_lock(flags)	  spin_lock_irqsave(ftrace_hash_lock, flags)
-#define ftrace_hash_unlock(flags) spin_lock_irqsave(ftrace_hash_lock, flags)
+#define ftrace_hash_lock(flags)	  spin_lock_irqsave(&ftrace_hash_lock, flags)
+#define ftrace_hash_unlock(flags) spin_lock_irqsave(&ftrace_hash_lock, flags)
 #else
 /* This is protected via the ftrace_lock with MCOUNT_RECORD. */
 #define ftrace_hash_lock(flags)   do { (void)flags; } while (0)
-- 
1.5.6.3

^ permalink raw reply related	[flat|nested] 37+ messages in thread
* linux-next: ftrace tree build failure
@ 2008-08-25  3:01 Stephen Rothwell
  2008-08-25  6:09 ` Ingo Molnar
  0 siblings, 1 reply; 37+ messages in thread
From: Stephen Rothwell @ 2008-08-25  3:01 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next, Steven Rostedt

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

Hi all,

Today's linux-next build (x86_64 allmodconfig) failed like this:

x86_64-unknown-linux-gnu-objcopy: unrecognized option `--globalize-symbol'

Introduced by commit 46483cdbb5dc06d84d9572bac1b90f6744c7fc95 ("ftrace:
create __mcount_loc section").

The currently documented minimum requirements for binutils is 2.12.

$ x86_64-unknown-linux-gnu-objcopy --version
GNU objcopy 2.16.1

For now I have reverted commit c2ffd56692cc4b762c175fad69b70a4ec0dfca3f
("ftrace: enable using mcount recording on x86") since that is the least
intrusive thing to do and the above change depends on
CONFIG_FTRACE_MCOUNT_RECORD.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 37+ messages in thread
* linux-next: ftrace tree build failure
@ 2008-08-15  2:27 Stephen Rothwell
  2008-08-15  7:56 ` Ingo Molnar
  0 siblings, 1 reply; 37+ messages in thread
From: Stephen Rothwell @ 2008-08-15  2:27 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin; +Cc: linux-next, Steven Rostedt

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

Hi all,

Today's linux-next build (x86_64 allmodconfig) failed like this:

kernel/trace/ftrace.c: In function 'ftrace_record_ip':
kernel/trace/ftrace.c:345: error: implicit declaration of function 'in_nmi'

Caused by commit 431e94644bde07a327dea17ee9be297c3d44a876 ("ftrace: do
not trace NMI contexts").

in_nmi() is not defined as a function (or macro) anywhere in my kernel
tree, so I assume a patch was missed. More care, please.

I reverted the above commit.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2009-01-07 21:20 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25  3:07 linux-next: ftrace tree build failure Stephen Rothwell
2008-11-25  3:21 ` Steven Rostedt
2008-11-25  7:28 ` Ingo Molnar
2008-11-25  7:43   ` Stephen Rothwell
2008-11-25  8:04     ` Ingo Molnar
2008-11-25 14:57       ` John W. Linville
2008-11-25 18:46         ` Luis R. Rodriguez
2008-11-26  0:08           ` Stephen Rothwell
2008-11-26  0:14             ` Luis R. Rodriguez
  -- strict thread matches above, loose matches on Subject: below --
2009-01-07  0:53 Stephen Rothwell
2009-01-07  9:55 ` Ingo Molnar
2009-01-07 21:20   ` Stephen Rothwell
2009-01-02  9:07 Stephen Rothwell
2009-01-02  9:14 ` Ingo Molnar
2009-01-02 10:22   ` Stephen Rothwell
2009-01-02 11:16     ` Ingo Molnar
2008-11-25  3:21 Stephen Rothwell
2008-11-25  3:48 ` Steven Rostedt
2008-11-25  4:13   ` Stephen Rothwell
2008-11-25  4:31     ` Steven Rostedt
2008-11-25  5:09       ` Stephen Rothwell
2008-11-25  5:44         ` Steven Rostedt
2008-11-25  6:57           ` Stephen Rothwell
2008-11-25  7:14             ` Ingo Molnar
2008-11-25  7:26               ` Stephen Rothwell
2008-11-25  5:24     ` Steven Rostedt
2008-08-25  3:08 Stephen Rothwell
2008-08-25  6:05 ` Ingo Molnar
2008-08-25  6:11   ` Ingo Molnar
2008-08-25  6:31     ` Stephen Rothwell
2008-08-25  3:01 Stephen Rothwell
2008-08-25  6:09 ` Ingo Molnar
2008-08-25 16:42   ` Steven Rostedt
2008-08-25 16:46     ` Steven Rostedt
2008-08-15  2:27 Stephen Rothwell
2008-08-15  7:56 ` Ingo Molnar
2008-08-15  8:29   ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).