linux-next: build failure after merge of the final tree (uprobes tree related)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Srikar,

After merging the uprobes tree, today's linux-next build (sparc64
defconfig) failed like this:

In file included from include/linux/mm_types.h:15:0,
                 from include/linux/kmemcheck.h:4,
                 from include/linux/skbuff.h:18,
                 from net/8021q/vlan_core.c:1:
include/linux/uprobes.h: In function 'register_uprobe':
include/linux/uprobes.h:148:10: error: 'ENOSYS' undeclared (first use in this function)

And several more.

Caused by commit fb16338b69cd ("register_unregister_uprobe" - "Uprobes:
register/unregister probes").

I have added this patch for today:

From: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Date: Wed, 23 Nov 2011 15:11:20 +1100
Subject: [PATCH] uprobes: using ENOSYS requires errno.h

Fixes this build problem:

In file included from include/linux/mm_types.h:15:0,
                 from include/linux/kmemcheck.h:4,
                 from include/linux/skbuff.h:18,
                 from net/8021q/vlan_core.c:1:
include/linux/uprobes.h: In function 'register_uprobe':
include/linux/uprobes.h:148:10: error: 'ENOSYS' undeclared (first use in this function)

when CONFIG_UPROBES is not defined.

Signed-off-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
---
 include/linux/uprobes.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/uprobes.h b/include/linux/uprobes.h
index 091dfb8..e2e0674 100644
--- a/include/linux/uprobes.h
+++ b/include/linux/uprobes.h
@@ -23,6 +23,7 @@
  *	Jim Keniston
  */
 
+#include <linux/errno.h>
 #include <linux/rbtree.h>
 
 struct vm_area_struct;
-- 
1.7.7.3

-- 
Cheers,
Stephen Rothwell                    sfr@xxxxxxxxxxxxxxxx

Attachment: pgpLFa9mhkFaM.pgp
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux