Skip to contentSkip to conversation

patches for PROC_FS=n (2.6.0-test7)

DISCUSSION Randy.Dunlap 3 participants 5 messages Oct 10, 2003 – Oct 12, 2003

Subsystems (3)
lore
Share & tools
lore
#3 lore raw
Quoted 7 lines · On Sat, 11 Oct 2003 21:40:08 +0200 Sam Ravnborg <[email protected]> wrote:

Due to this - the real offender:

from: net/atm/clip.c:
#ifdef CONFIG_PROC_FS
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#endif

That makes a whole lot more sense, here is the fix I just checked in:

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1352 -> 1.1353
# net/atm/clip.c 1.26 -> 1.27
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/10/11 [email protected] 1.1353
# [ATM]: Kill PROC_FS ifdef around includes.
# --------------------------------------------
#

net/atm/clip.c +0 -2
diff -Nru a/net/atm/clip.c b/net/atm/clip.c
@@ -24,10 +24,8 @@
 #include <linux/if.h> /* for IFF_UP */
 #include <linux/inetdevice.h>
 #include <linux/bitops.h>
-#ifdef CONFIG_PROC_FS
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
-#endif
 #include <net/route.h> /* for struct rtable and routing */
 #include <net/icmp.h> /* icmp_send */
 #include <asm/param.h> /* for HZ */
#4 lore raw
In reply to Sam Ravnborg

On Sat, 11 Oct 2003 21:40:08 +0200 Sam Ravnborg <[email protected]> wrote:

| On Sat, Oct 11, 2003 at 12:08:52PM -0700, David S. Miller wrote:
| > On Fri, 10 Oct 2003 14:16:46 -0700
| > "Randy.Dunlap" <[email protected]> wrote:
| > 
| > > http://developer.osdl.org/rddunlap/patches/atmprocfs_260t7.patch
| > 
| > How can this be needed?  When procfs is disabled then
| > remove_proc_entry() is defined as "do { } while (0)", ie. a nop.
| 
| Due to this - the real offender:
| 
| from: net/atm/clip.c:
| #ifdef CONFIG_PROC_FS
| #include <linux/proc_fs.h>
| #include <linux/seq_file.h>
| #endif

ugh, thanks.

--
~Randy