Skip to contentSkip to conversation

CONFIG_PROC_FS=n fixes

PATCH New Andrzej Krzysztofowicz 1 participant 1 message May 21, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CONFIG_PROC_FS=n fixes

Hi,
The following patch fixes compilation problems of
- zoran (drivers/media/video/zr36067.c)
- Compaq SMART2 disk array (drivers/block/cpqarray.c)

and possibly some others, when CONFIG_PROC_FS=n

Andrzej

***********************************************************************

drivers/media/video/zoran.h +0 -3
diff -ur linux-2.4.4-ac11/drivers/media/video/zoran.h linux/drivers/media/video/zoran.h
@@ -305,11 +305,8 @@
 	struct zoran_gbuffer jpg_gbuf[BUZ_MAX_FRAME];	/* MJPEG buffers' info */
 
 	/* Additional stuff for testing */
-#ifdef CONFIG_PROC_FS
-
 	struct proc_dir_entry *zoran_proc;
 
-#endif
 	int testing;
 	int jpeg_error;
 	int intr_counter_GIRQ1;
include/linux/proc_fs.h +2 -0
diff -ur linux-2.4.4-ac11/include/linux/proc_fs.h linux/include/linux/proc_fs.h
@@ -171,6 +171,8 @@
 
 #else
 
+#define proc_root_driver NULL
+
 static inline struct proc_dir_entry *proc_net_create(const char *name, mode_t mode, 
 	get_info_t *get_info) {return NULL;}
 static inline void proc_net_remove(const char *name) {}
Signature · 4 lines
=======================================================================
  Andrzej M. Krzysztofowicz               [email protected]
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk