public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@fs.tum.de>
To: Andrew Morton <akpm@digeo.com>
Cc: linux-kernel@vger.kernel.org, trivial@rustcorp.com.au
Subject: [patch] 2.5.70-mm5: Compile error if !CONFIG_PROC_FS
Date: Sat, 7 Jun 2003 15:41:00 +0200	[thread overview]
Message-ID: <20030607134100.GJ15311@fs.tum.de> (raw)
In-Reply-To: <20030605021231.2b3ebc59.akpm@digeo.com>

It seems the following compile error if !CONFIG_PROC_FS comes from 
Linus' tree:

<--  snip  -->

...
  CC      init/main.o
In file included from init/main.c:15:
include/linux/proc_fs.h:238: redefinition of `kclist_add'
include/linux/proc_fs.h:231: `kclist_add' previously defined here
include/linux/proc_fs.h:239: redefinition of `kclist_del'
include/linux/proc_fs.h:234: `kclist_del' previously defined here
include/linux/proc_fs.h: In function `kclist_del':
include/linux/proc_fs.h:239: syntax error before '}' token
include/linux/proc_fs.h:239: warning: no return statement in function 
returning non-void
make[1]: *** [init/main.o] Error 1

<--  snip  -->


The fis is trivial:


--- linux-2.5.70-mm5/include/linux/proc_fs.h.old	2003-06-07 15:33:21.000000000 +0200
+++ linux-2.5.70-mm5/include/linux/proc_fs.h	2003-06-07 15:34:04.000000000 +0200
@@ -235,8 +235,6 @@
 	return NULL;
 }
 
-static inline void kclist_add(struct kcore_list *new, void *addr, size_t size) {};
-static inline struct kcore_list * kclist_del(void *addr) {return NULL};
 #endif /* CONFIG_PROC_FS */
 
 struct proc_inode {




cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


      parent reply	other threads:[~2003-06-07 13:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-05  9:12 2.5.70-mm5 Andrew Morton
2003-06-05 11:57 ` 2.5.70-mm5 new oops that wasn't in 2.5.70-mm4 Helge Hafting
2003-06-05 12:35   ` Paul E. Erkkila
2003-06-05 14:05 ` 2.5.70-mm5 Pavel Machek
2003-06-07 10:08 ` 2.5.70-mm5: sound/pcmcia/vx/snd-vx* multiple definitions Adrian Bunk
2003-06-07 13:41 ` Adrian Bunk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030607134100.GJ15311@fs.tum.de \
    --to=bunk@fs.tum.de \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox