aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-11-24 20:39:59 +0000
committerJohn Crispin <john@openwrt.org>2015-11-24 20:39:59 +0000
commitc4bbe3698db51ebacc5d36181fd25c584cf1d061 (patch)
treea9170d5262bb70b3fa2a67629a22b18f8e004e37 /package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
parentf5970b94720ce7016979ac2fd3fef50f23994740 (diff)
downloadupstream-c4bbe3698db51ebacc5d36181fd25c584cf1d061.tar.gz
upstream-c4bbe3698db51ebacc5d36181fd25c584cf1d061.tar.bz2
upstream-c4bbe3698db51ebacc5d36181fd25c584cf1d061.zip
lantiq: ltq-ifxos: fix build warnings
This makes the build script use the same configure options as used by Lantiq UGW and fixes some warnings and cleans up some of the patches. Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com> SVN-Revision: 47630
Diffstat (limited to 'package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch')
-rw-r--r--package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch19
1 files changed, 6 insertions, 13 deletions
diff --git a/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch b/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
index dcd260ef3f..80275e6b11 100644
--- a/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
+++ b/package/kernel/lantiq/ltq-ifxos/patches/100-compat.patch
@@ -40,28 +40,21 @@
/* Enable signals in Kernel >= 2.6 */
allow_signal(SIGKILL);
-@@ -221,9 +218,7 @@ IFX_int32_t IFXOS_ThreadInit(
+@@ -221,9 +218,11 @@ IFX_int32_t IFXOS_ThreadInit(
init_completion(&pThrCntrl->thrCompletion);
/* start kernel thread via the wrapper function */
- pThrCntrl->tid = kernel_thread( (IFXOS_KERNEL_THREAD_StartRoutine)IFXOS_KernelThreadStartup,
- (void *)pThrCntrl,
- IFXOS_DRV_THREAD_OPTIONS);
-+ pThrCntrl->tid = kthread_run(IFXOS_KernelThreadStartup, (void *)pThrCntrl, "ifxos");
++ pThrCntrl->tid = kthread_run(IFXOS_KernelThreadStartup, (void *)pThrCntrl, pThrCntrl->thrParams.pName);
++ if (IS_ERR(pThrCntrl->tid)) {
++ IFXOS_PRN_USR_ERR_NL( IFXOS, IFXOS_PRN_LEVEL_ERR,
++ ("IFXOS ERROR - Problem creating thread: %li" IFXOS_CRLF, PTR_ERR(pThrCntrl->tid)));
++ }
pThrCntrl->bValid = IFX_TRUE;
---- a/src/include/ifxos_thread.h
-+++ b/src/include/ifxos_thread.h
-@@ -111,7 +111,7 @@ typedef struct IFXOS_ThreadParams_s
- /**
- Function type of the user thread/task function.
- */
--typedef IFX_int32_t (*IFXOS_ThreadFunction_t)(IFXOS_ThreadParams_t *);
-+typedef int (*IFXOS_ThreadFunction_t)(void*);
-
- /** @} */
-
--- a/src/include/linux/ifxos_linux_thread.h
+++ b/src/include/linux/ifxos_linux_thread.h
@@ -152,7 +152,7 @@ typedef struct