kernel: ltq-ptm: add patch fixing compilation warning
[openwrt/staging/jow.git] / package / kernel / lantiq / ltq-ptm / patches / 101-fix-more-compilation-warning-debugfs.patch
1 --- a/ifxmips_ptm_adsl.c
2 +++ b/ifxmips_ptm_adsl.c
3 @@ -180,7 +180,7 @@ static int proc_read_version(char *, char **, off_t, int, int *, void *);
4 static int proc_read_wanmib(char *, char **, off_t, int, int *, void *);
5 static int proc_write_wanmib(struct file *, const char *, unsigned long, void *);
6 #endif
7 -#if defined(ENABLE_FW_PROC) && ENABLE_FW_PROC
8 +#if defined(ENABLE_FW_PROC) && ENABLE_FW_PROC && defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
9 static int proc_read_genconf(char *, char **, off_t, int, int *, void *);
10 #endif
11 #if defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
12 @@ -191,8 +191,8 @@ static int proc_write_wanmib(struct file *, const char *, unsigned long, void *)
13 /*
14 * Proc Help Functions
15 */
16 -static INLINE int stricmp(const char *, const char *);
17 #if defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
18 + static INLINE int stricmp(const char *, const char *);
19 static INLINE int strincmp(const char *, const char *, int);
20 #endif
21 static INLINE int ifx_ptm_version(char *);
22 @@ -1159,8 +1159,6 @@ static int proc_write_dbg(struct file *file, const char *buf, unsigned long coun
23 return count;
24 }
25
26 -#endif // defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
27 -
28 static INLINE int stricmp(const char *p1, const char *p2)
29 {
30 int c1, c2;
31 @@ -1178,7 +1176,6 @@ static INLINE int stricmp(const char *p1, const char *p2)
32 return *p1 - *p2;
33 }
34
35 -#if defined(ENABLE_DBG_PROC) && ENABLE_DBG_PROC
36 static INLINE int strincmp(const char *p1, const char *p2, int n)
37 {
38 int c1 = 0, c2;