From ee94d1feea13bdfbbde87391fc4a478e97ef1c1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 1 Feb 2010 03:34:40 +0000 Subject: [PATCH] corrections --- linux-2.6-591-chopstix-intern.patch | 67 +---------------------------- 1 file changed, 2 insertions(+), 65 deletions(-) diff --git a/linux-2.6-591-chopstix-intern.patch b/linux-2.6-591-chopstix-intern.patch index 747cc1243..433d55818 100644 --- a/linux-2.6-591-chopstix-intern.patch +++ b/linux-2.6-591-chopstix-intern.patch @@ -71,28 +71,6 @@ Index: linux-2.6.27.y/arch/x86/kernel/asm-offsets_32.c OFFSET(TI_task, thread_info, task); OFFSET(TI_exec_domain, thread_info, exec_domain); OFFSET(TI_flags, thread_info, flags); -Index: linux-2.6.27.y/arch/x86/kernel/asm-offsets_32.c.rej -=================================================================== ---- /dev/null -+++ linux-2.6.27.y/arch/x86/kernel/asm-offsets_32.c.rej -@@ -0,0 +1,17 @@ -+*************** -+*** 63,69 **** -+ BLANK(); -+ -+ STACKOFFSET(TASK_thread, task_struct, thread); -+- STACKOFFSET(THREAD_esp, thread_struct, esp); -+ STACKOFFSET(EVENT_event_data, event, event_data); -+ STACKOFFSET(EVENT_task, event, task); -+ STACKOFFSET(EVENT_event_type, event, event_type); -+--- 63,69 ---- -+ BLANK(); -+ -+ STACKOFFSET(TASK_thread, task_struct, thread); -++ STACKOFFSET(THREAD_esp, thread_struct, sp); -+ STACKOFFSET(EVENT_event_data, event, event_data); -+ STACKOFFSET(EVENT_task, event, task); -+ STACKOFFSET(EVENT_event_type, event, event_type); Index: linux-2.6.27.y/arch/x86/kernel/entry_32.S =================================================================== --- linux-2.6.27.y.orig/arch/x86/kernel/entry_32.S @@ -297,54 +275,13 @@ Index: linux-2.6.27.y/fs/exec.c + #ifdef CONFIG_CHOPSTIX + unsigned long cookie; + extern void (*rec_event)(void *, unsigned int); -+ if (rec_event && !nd.dentry->d_cookie) -+ get_dcookie(nd.dentry, nd.mnt, &cookie); ++ if (rec_event && !nd.path.dentry->d_cookie) ++ get_dcookie(&nd.path, &cookie); + #endif + return file; out_path_put: -Index: linux-2.6.27.y/fs/exec.c.rej -=================================================================== ---- /dev/null -+++ linux-2.6.27.y/fs/exec.c.rej -@@ -0,0 +1,36 @@ -+*************** -+*** 40,46 **** -+ #include -+ #include -+ #include -+- /*#include */ -+ #include -+ #include -+ #include -+--- 40,46 ---- -+ #include -+ #include -+ #include -++ #include -+ #include -+ #include -+ #include -+*************** -+*** 702,709 **** -+ #ifdef CONFIG_CHOPSTIX -+ unsigned long cookie; -+ extern void (*rec_event)(void *, unsigned int); -+- if (rec_event && !nd.dentry->d_cookie) -+- get_dcookie(nd.dentry, nd.mnt, &cookie); -+ #endif -+ -+ return file; -+--- 702,709 ---- -+ #ifdef CONFIG_CHOPSTIX -+ unsigned long cookie; -+ extern void (*rec_event)(void *, unsigned int); -++ if (rec_event && !nd.path.dentry->d_cookie) -++ get_dcookie(&nd.path, &cookie); -+ #endif -+ -+ return file; Index: linux-2.6.27.y/include/linux/arrays.h =================================================================== --- /dev/null -- 2.43.0