[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pacth question
Why this patch isn't good ?
I juste make a diff -u include/linux/kernel.org.h include/linux/kernel.h
and catch the result in the file monpatch.
--- include/linux/kernel.org.h 2004-06-03 11:21:53.000000000 +0200
+++ include/linux/kernel.h 2004-06-03 11:22:13.000000000 +0200
@@ -114,13 +114,6 @@
return x;
}
-static inline int abs(int x)
-{
- if (x < 0)
- return -x;
- return x;
-}
-
extern void bust_spinlocks(int yes);
extern int oops_in_progress; /* If set, an oops, panic(),
BUG() or die() is in progress */
extern int panic_on_oops;
But when i hit the command : "cat monpatch | -p1", there is the
following error :
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- include/linux/kernel.org.h 2004-06-03 11:21:53.000000000 +0200
|+++ include/linux/kernel.h 2004-06-03 11:22:13.000000000 +0200
--------------------------
File to patch:
Where is my error ?
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/