linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: proc tree build failure
@ 2009-01-23  6:15 Stephen Rothwell
  2009-01-23  7:09 ` Cyrill Gorcunov
  0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2009-01-23  6:15 UTC (permalink / raw)
  To: Alexey Dobriyan
  Cc: linux-next, Cyrill Gorcunov, David S. Miller, Eric W. Biederman

Hi Alexey,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

drivers/net/pppoe.c: In function 'pppoe_seq_open':
drivers/net/pppoe.c:1102: error: implicit declaration of function 'PDE_NET'
drivers/net/pppol2tp.c: In function 'pppol2tp_proc_open':
drivers/net/pppol2tp.c:2579: error: implicit declaration of function 'PDE_NET'

Caused by commits a6bcf1c1d38e0672db35e0d9f2504ac04ddf3ed5 ("net: pppoe -
introduce net-namespace functionality") and
4e9fb8016a351b5b9da7fea32bcfdbc9d836e421 ("net: pppol2tp - introduce
net-namespace functionality") from the net tree interacting with commit
0e6a2bfcbae4ee3cf770a6a5da203b4a336ff8ff ("proc 5/6: simplify network
namespace lookup") from the proc tree.

I added the following fix to the merge and can carry it as necessary.

I expect that there is a better fix for this, though.  These are the only
references to PDE_NET outside fs/proc.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index 798b8cf..3aabf92 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -1099,7 +1099,7 @@ static int pppoe_seq_open(struct inode *inode, struct file *file)
 		return err;
 
 	m = file->private_data;
-	net = maybe_get_net(PDE_NET(PDE(inode)));
+	net = maybe_get_net(inode->i_sb->s_fs_info);
 	BUG_ON(!net);
 	m->private = net;
 
diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c
index 056e22a..d21470f 100644
--- a/drivers/net/pppol2tp.c
+++ b/drivers/net/pppol2tp.c
@@ -2576,7 +2576,7 @@ static int pppol2tp_proc_open(struct inode *inode, struct file *file)
 		goto out;
 
 	pd = m->private;
-	net = maybe_get_net(PDE_NET(PDE(inode)));
+	net = maybe_get_net(inode->i_sb->s_fs_info);
 	BUG_ON(!net);
 	pd->seq_net = net;
 	return 0;

^ permalink raw reply related	[flat|nested] 20+ messages in thread
* linux-next: proc tree build failure
@ 2009-03-30  6:43 Stephen Rothwell
  0 siblings, 0 replies; 20+ messages in thread
From: Stephen Rothwell @ 2009-03-30  6:43 UTC (permalink / raw)
  To: Alexey Dobriyan
  Cc: linux-next, Eric W. Biederman, Sukadev Bhattiprolu, Al Viro,
	Andrew Morton

Hi Alexey,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

fs/proc/proc_net.c: In function 'proc_net_get_sb':
fs/proc/proc_net.c:296: error: void value not ignored as it ought to be

Caused by commit 39bc389a04412aa199d8abec6582be33d57d1344 ("proc 3/6:
make /proc/net it's own filesystem") interacting with commit
a3ec947c85ec339884b30ef6a08133e9311fdae1 ("vfs: simple_set_mnt() should
return void") from Linus' tree.

I applied the following patch and can carry it for a while.
-- 
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, 30 Mar 2009 17:41:54 +1100
Subject: [PATCH] proc: update proc_net.c for simple_set_mnt API change

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

diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c
index 32dd84f..1e31e5d 100644
--- a/fs/proc/proc_net.c
+++ b/fs/proc/proc_net.c
@@ -293,7 +293,8 @@ static int proc_net_get_sb(struct file_system_type *fs_type,
 		sb->s_flags |= MS_ACTIVE;
 	}
 
-	return simple_set_mnt(mnt, sb);
+	simple_set_mnt(mnt, sb);
+	return 0;
 }
 
 static struct file_system_type proc_net_fs_type = {
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 20+ messages in thread
* linux-next: proc tree build failure
@ 2008-11-24  7:15 Stephen Rothwell
  2008-11-28  8:05 ` Alexey Dobriyan
  0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2008-11-24  7:15 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linux-next, Ken Chen, Ingo Molnar, David S. Miller

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

Hi Alexey,

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

fs/proc/base.c:362: undefined reference to `save_stack_trace_tsk'

It has been failing like this for some time.

Caused by commit 788ff43b53179f3af8677d59c87104aff1f75bde ("proc:
add /proc/*/stack") which has been fixed up for MIPS, but needs another
fix for Sparc.

-- 
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] 20+ messages in thread
* linux-next: proc tree build failure
@ 2008-11-20  6:24 Stephen Rothwell
  2008-11-20  8:43 ` Eric W. Biederman
  0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2008-11-20  6:24 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linux-next, Eric W. Biederman

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

Hi Alexey,

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

security/selinux/hooks.c: In function 'selinux_proc_get_sid':
security/selinux/hooks.c:1182: error: 'struct super_block' has no member named 'type'
security/selinux/hooks.c:1183: error: 'struct super_block' has no member named 'type'
security/selinux/hooks.c:1189: error: too few arguments to function 'memcpy'

Caused by commit e23b822350796e690a46873058d220878a18564c ("proc:
make /proc/net it's own filesystem"). This has clearly never been
compiled with CONFIG_PROC_FS set!  I have dropped the proc tree for today.
Much better testing is required - this should never have been submitted
to linux-next in this state.

-- 
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] 20+ messages in thread
* linux-next: proc tree build failure
@ 2008-11-10  5:29 Stephen Rothwell
  2008-11-10  5:53 ` Alexey Dobriyan
  0 siblings, 1 reply; 20+ messages in thread
From: Stephen Rothwell @ 2008-11-10  5:29 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linux-next, Ken Chen, Ingo Molnar

Hi Alexey,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

fs/proc/base.c:2547: error: 'pid_stack' undeclared here (not in a function)

Caused by an interaction of commits
078e9901c02d4899db5b24f708b8dfbca8935891 ("stacktrace:
add /proc/<pid>/stack to dump task's stack trace") and
35f0b5fd7fab907a1119eaa614d9b24e5e225755 ("stacktrace:
convert /proc/<pid>/stack to seqfiles") from the tip-core tree with commit
5d8880e3e0fb96459c652ac5e1504b90c949b3b9 ("proc: remove '##' usage") from
the proc tree.

The former added a new usage of INF (which the second converted to a
ONE).  I added the following patch to the merge of the proc tree and can
carry it.
-- 
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, 10 Nov 2008 16:25:29 +1100
Subject: [PATCH] proc: merge fix 1

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

diff --git a/fs/proc/base.c b/fs/proc/base.c
index 20e7752..f025953 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2544,7 +2544,7 @@ static const struct pid_entry tgid_base_stuff[] = {
 	INF("wchan",      S_IRUGO, proc_pid_wchan),
 #endif
 #ifdef CONFIG_STACKTRACE
-	ONE("stack",      S_IRUSR, pid_stack),
+	ONE("stack",      S_IRUSR, proc_pid_stack),
 #endif
 #ifdef CONFIG_SCHEDSTATS
 	INF("schedstat",  S_IRUGO, proc_pid_schedstat),
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 20+ messages in thread
* linux-next: proc tree build failure
@ 2008-10-21  7:21 Stephen Rothwell
  0 siblings, 0 replies; 20+ messages in thread
From: Stephen Rothwell @ 2008-10-21  7:21 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linux-next, Rik van Riel

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

Hi Alexey,

Today's linux-next build (powerpc ppc64_defconfig) failed like this:

fs/proc/meminfo.c: In function 'meminfo_proc_show':
fs/proc/meminfo.c:90: error: 'NR_ACTIVE' undeclared (first use in this function)
fs/proc/meminfo.c:91: error: 'NR_INACTIVE' undeclared (first use in this function)

Caused by commit d8ad172f12c10f974821247773a8b82ba7965ae4 ("proc:
switch /proc/meminfo to seq_file") from the proc tree interacting with
commit 4f98a2fee8acdb4ac84545df98cccecfd130f8db ("vmscan: split LRU lists
into anon & file sets") from  Linus' tree.

It was a bit hard to fix up this evening, so I have dropped the proc 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] 20+ messages in thread

end of thread, other threads:[~2009-03-30  6:43 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23  6:15 linux-next: proc tree build failure Stephen Rothwell
2009-01-23  7:09 ` Cyrill Gorcunov
2009-01-23 18:48   ` Alexey Dobriyan
2009-01-23 19:26     ` Cyrill Gorcunov
2009-01-23 19:41       ` Cyrill Gorcunov
2009-01-23 20:26         ` Cyrill Gorcunov
2009-01-24 22:00   ` [PATCH] pppol2tp: stop using proc internals Alexey Dobriyan
2009-01-25  8:47     ` Cyrill Gorcunov
2009-01-27  5:10       ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2009-03-30  6:43 linux-next: proc tree build failure Stephen Rothwell
2008-11-24  7:15 Stephen Rothwell
2008-11-28  8:05 ` Alexey Dobriyan
2008-11-28  9:00   ` David Miller
2008-11-28 10:25     ` David Miller
2008-11-20  6:24 Stephen Rothwell
2008-11-20  8:43 ` Eric W. Biederman
2008-11-10  5:29 Stephen Rothwell
2008-11-10  5:53 ` Alexey Dobriyan
2008-11-10  7:36   ` Ingo Molnar
2008-10-21  7:21 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).