Skip to contentSkip to conversation

Move ircomm_tty_line_info() under #ifdef CONFIG_PROC_FS

PATCH In review Pavel Emelyanov 2 participants 2 messages Dec 4, 2007 – Dec 5, 2007 1 message not in the archive

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

PATCH 1/1 Move ircomm_tty_line_info() under #ifdef CONFIG_PROC_FS

The function in question is called only from ircomm_tty_read_proc, which is under this option. Move this helper to the same place.

Fits both net-2.6 and net-2.6.25

---

net/irda/ircomm/ircomm_tty.c +1 -1
index 1120b15..be627e1 100644
@@ -1245,6 +1245,7 @@ static void ircomm_tty_flow_indication(void *instance, void *sap,
 	self->flow = cmd;
 }
 
+#ifdef CONFIG_PROC_FS
 static int ircomm_tty_line_info(struct ircomm_tty_cb *self, char *buf)
 {
 	int  ret=0;
@@ -1354,7 +1355,6 @@ static int ircomm_tty_line_info(struct ircomm_tty_cb *self, char *buf)
  *
  *
  */
-#ifdef CONFIG_PROC_FS
 static int ircomm_tty_read_proc(char *buf, char **start, off_t offset, int len,
 				int *eof, void *unused)
 {
Signature · 1 line
1.5.3.4

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

From: Pavel Emelyanov <[email protected]>
Date: Tue, 04 Dec 2007 18:14:48 +0300

Quoted 6 lines

The function in question is called only from ircomm_tty_read_proc, which is under this option. Move this helper to the same place.

Fits both net-2.6 and net-2.6.25

Also applied to net-2.6, thanks!

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4