aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/ltq-vdsl-vr11-app/patches/101-warnings.patch
diff options
context:
space:
mode:
authorMartin Schiller <ms.3headeddevs@gmail.com>2019-08-21 09:00:08 +0200
committerDaniel Golle <daniel@makrotopia.org>2023-01-16 23:41:41 +0000
commit6e4c9738bed0ac99d048e71596b716d0819375b2 (patch)
treee20da0840a133ffbb163bfce71cf96b3757a6980 /package/network/config/ltq-vdsl-vr11-app/patches/101-warnings.patch
parent6361eb47cdcca974a38c00259008d9df7bb7e885 (diff)
downloadupstream-6e4c9738bed0ac99d048e71596b716d0819375b2.tar.gz
upstream-6e4c9738bed0ac99d048e71596b716d0819375b2.tar.bz2
upstream-6e4c9738bed0ac99d048e71596b716d0819375b2.zip
ltq-vdsl-vr11-app: add version 4.23.1 for vr11 targets
This uses version 4.23.1 of the dsl_cpe_control package from the Intel UGW 8.5.2.10 for the VRX518. Signed-off-by: Martin Schiller <ms.3headeddevs@gmail.com> [rebased] Signed-off-by: Jan Hoffmann <jan@3e8.eu> [update to 4.23.1, added Jan's vector mac patch, fix warnings, switch to tag tarball] Signed-off-by: Andre Heider <a.heider@gmail.com> [add missing nLine in autoboot script, fix disconnect on termination, remove unneeded VR9 leftovers in init script] Signed-off-by: Jan Hoffmann <jan@3e8.eu> Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'package/network/config/ltq-vdsl-vr11-app/patches/101-warnings.patch')
-rw-r--r--package/network/config/ltq-vdsl-vr11-app/patches/101-warnings.patch87
1 files changed, 87 insertions, 0 deletions
diff --git a/package/network/config/ltq-vdsl-vr11-app/patches/101-warnings.patch b/package/network/config/ltq-vdsl-vr11-app/patches/101-warnings.patch
new file mode 100644
index 0000000000..0c02bb17b7
--- /dev/null
+++ b/package/network/config/ltq-vdsl-vr11-app/patches/101-warnings.patch
@@ -0,0 +1,87 @@
+--- a/src/dsl_cpe_control.h
++++ b/src/dsl_cpe_control.h
+@@ -13,6 +13,8 @@
+ #ifndef _DSL_CPE_CONTROL_H
+ #define _DSL_CPE_CONTROL_H
+
++#include <string.h>
++
+ /** \defgroup DSL_CPE_CONTROL Lantiq DSL CPE API Control Application
+ Lists the entire modules to the DSL CPE_API Control Application.
+ @{ */
+--- a/src/dsl_cpe_safec_wrapper.h
++++ b/src/dsl_cpe_safec_wrapper.h
+@@ -23,7 +23,7 @@
+ #define cpe_control_vsnprintf_s vsnprintf_s
+
+ /* snprintf_s symbol is not exported in SafeC lib */
+-static int cpe_control_snprintf_s(char *dest,
++static inline int cpe_control_snprintf_s(char *dest,
+ size_t dmax,
+ const char *fmt,
+ ...)
+@@ -40,7 +40,7 @@ static int cpe_control_snprintf_s(char *
+
+ #else
+
+-#warning "Safe C library is not available!"
++//#warning "Safe C library is not available!"
+
+ #include <stddef.h> /* size_t */
+ #include <stdarg.h> /* va_list */
+@@ -55,7 +55,7 @@ static __inline__ size_t safec_wrapper_m
+ #define cpe_control_memset_s(dest, destsz, src, srcsz) memset(dest, src, safec_wrapper_min(destsz,srcsz))
+ #define cpe_control_strncpy_s(dest, destsz, src, srcsz) strncpy(dest, src, safec_wrapper_min(destsz,srcsz))
+
+-static size_t cpe_control_strnlen_s(const char *str,
++static inline size_t cpe_control_strnlen_s(const char *str,
+ size_t smax)
+ {
+ /* preconditions */
+@@ -74,7 +74,7 @@ static size_t cpe_control_strnlen_s(cons
+ return size;
+ }
+
+-static char *cpe_control_strtok_s(char *dest,
++static inline char *cpe_control_strtok_s(char *dest,
+ size_t *dmax,
+ const char *delim,
+ char **ptr)
+@@ -123,7 +123,7 @@ static char *cpe_control_strtok_s(char *
+ return pTmp;
+ }
+
+-static int cpe_control_pipe_strcat_s(char *dest,
++static inline int cpe_control_pipe_strcat_s(char *dest,
+ size_t destsz,
+ char *src)
+ {
+@@ -157,7 +157,7 @@ static int cpe_control_pipe_strcat_s(cha
+ return 0;
+ }
+
+-static int cpe_control_snprintf_s(char *dest,
++static inline int cpe_control_snprintf_s(char *dest,
+ size_t dmax,
+ const char *fmt,
+ ...)
+@@ -181,7 +181,7 @@ static int cpe_control_snprintf_s(char *
+ return retVal;
+ }
+
+-static int cpe_control_vsnprintf_s(char *dest,
++static inline int cpe_control_vsnprintf_s(char *dest,
+ size_t dmax,
+ const char *fmt,
+ va_list vlist)
+--- a/tools/pipe/dsl_cpe_safec_wrapper.h
++++ b/tools/pipe/dsl_cpe_safec_wrapper.h
+@@ -27,7 +27,7 @@
+
+ #else
+
+-#warning "Safe C library is not available!"
++//#warning "Safe C library is not available!"
+
+ #include <stddef.h> /* size_t */
+ static __inline__ size_t safec_wrapper_min(size_t a, size_t b)