diff options
Diffstat (limited to 'meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv/0002-Support-Linux-kernels-v6.6.patch')
-rw-r--r-- | meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv/0002-Support-Linux-kernels-v6.6.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv/0002-Support-Linux-kernels-v6.6.patch b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv/0002-Support-Linux-kernels-v6.6.patch new file mode 100644 index 00000000..1e897394 --- /dev/null +++ b/meta-ti-extras/recipes-devtools/gdbc6x/gdbserverproxy-module-drv/0002-Support-Linux-kernels-v6.6.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From: Ryan Eatmon <reatmon@ti.com> | ||
2 | Date: Wed, 08 Feb 2024 10:43:00 -0500 | ||
3 | Subject: [PATCH] Support Linux kernels v6.6+ | ||
4 | |||
5 | gdb_write arg changed from int to unsigned int | ||
6 | |||
7 | Upstream-Status: Inactive-Upstream | ||
8 | |||
9 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
10 | --- | ||
11 | kernel_module/gdbproxy-mod/gdbserverproxy.c | 6 +++++- | ||
12 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/kernel_module/gdbproxy-mod/gdbserverproxy.c b/kernel_module/gdbproxy-mod/gdbserverproxy.c | ||
15 | index 418b6db..4b1c676 100644 | ||
16 | --- a/kernel_module/gdbproxy-mod/gdbserverproxy.c | ||
17 | +++ b/kernel_module/gdbproxy-mod/gdbserverproxy.c | ||
18 | @@ -496,8 +496,13 @@ static void gdb_close(struct tty_struct *tty, struct file *filp) | ||
19 | * | ||
20 | * | ||
21 | */ | ||
22 | +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0)) | ||
23 | +static int gdb_write(struct tty_struct *tty, | ||
24 | + const unsigned char *buf, unsigned int count) | ||
25 | +#else | ||
26 | static int gdb_write(struct tty_struct *tty, | ||
27 | const unsigned char *buf, int count) | ||
28 | +#endif | ||
29 | { | ||
30 | struct dsp_session *dsp = tty->driver_data; | ||
31 | int ret = 0; | ||