CONFIG_PROC_FS=n fixes
Subsystems (2)
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
@@ -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
@@ -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