aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-ptm/patches/100-fix-compilation-warning-debugfs.patch
blob: 283982fdef007242e62ac581c6728004f5a6c4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/ifxmips_ptm_adsl.c
+++ b/ifxmips_ptm_adsl.c
@@ -175,9 +175,11 @@ static INLINE void mailbox_signal(unsign
  */
 static INLINE void proc_file_create(void);
 static INLINE void proc_file_delete(void);
+#if defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
 static int proc_read_version(char *, char **, off_t, int, int *, void *);
 static int proc_read_wanmib(char *, char **, off_t, int, int *, void *);
 static int proc_write_wanmib(struct file *, const char *, unsigned long, void *);
+#endif
 #if defined(ENABLE_FW_PROC) && ENABLE_FW_PROC
   static int proc_read_genconf(char *, char **, off_t, int, int *, void *);
 #endif
@@ -889,6 +891,7 @@ static INLINE void proc_file_delete(void
     remove_proc_entry("driver/ifx_ptm", NULL);
 }
 
+#if defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
 static int proc_read_version(char *buf, char **start, off_t offset, int count, int *eof, void *data)
 {
     int len = 0;
@@ -963,8 +966,9 @@ static int proc_write_wanmib(struct file
 
     return count;
 }
+#endif
 
-#if defined(ENABLE_FW_PROC) && ENABLE_FW_PROC
+#if defined(ENABLE_FW_PROC) && ENABLE_FW_PROC && defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
 
 static int proc_read_genconf(char *page, char **start, off_t off, int count, int *eof, void *data)
 {