patch-2.4.19 linux-2.4.19/drivers/sound/sound_config.h
Next file: linux-2.4.19/drivers/sound/swarm_cs4297a.c
Previous file: linux-2.4.19/drivers/sound/sonicvibes.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/sound/sound_config.h
- Orig date:
Mon Dec 11 13:02:27 2000
diff -urN linux-2.4.18/drivers/sound/sound_config.h linux-2.4.19/drivers/sound/sound_config.h
@@ -113,14 +113,14 @@
#if OPEN_READ == FMODE_READ && OPEN_WRITE == FMODE_WRITE
-extern __inline__ int translate_mode(struct file *file)
+static inline int translate_mode(struct file *file)
{
return file->f_mode;
}
#else
-extern __inline__ int translate_mode(struct file *file)
+static inline int translate_mode(struct file *file)
{
return ((file->f_mode & FMODE_READ) ? OPEN_READ : 0) |
((file->f_mode & FMODE_WRITE) ? OPEN_WRITE : 0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)