2012-05-21 02:50:20

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH 3/3] scripts/patch-kernel: update comments to 3.x

From: Randy Dunlap <[email protected]>

Update comments from 2.6.x to 3.x.

Signed-off-by: Randy Dunlap <[email protected]>
---
scripts/patch-kernel | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)

--- lnx-34-rc7-pk.orig/scripts/patch-kernel
+++ lnx-34-rc7-pk/scripts/patch-kernel
@@ -7,8 +7,10 @@
# scripts/patch-kernel . ..
# Update the kernel tree in the current directory using patches in the
# directory above to the latest Linus kernel
-# scripts/patch-kernel . .. 2.4.9
-# Gets standard kernel 2.4.9
+# scripts/patch-kernel . .. 3.2.5
+# Gets standard kernel 3.2.5
+# scripts/patch-kernel . .. 3.3-rc4
+# Gets standard kernel 3.3-rc4
#
# It determines the current kernel version from the top-level Makefile.
# It then looks for patches for the next sublevel in the patch directory.
@@ -203,7 +205,7 @@ else
STOPEXTRA=9999
fi

-# This all assumes a 2.6.x[.y] kernel tree.
+# This all assumes a 3.x[.y] kernel tree.
# Don't allow backwards/reverse patching.
if [ $STOPSUBLEVEL -lt $SUBLEVEL ]; then
backwards
@@ -222,10 +224,10 @@ if [ x$EXTRAVER != "x" ]; then
reversePatch ${patch} || exit 1
fi

-# now current is 2.6.x, with no EXTRA applied,
-# so update to target SUBLEVEL (2.6.SUBLEVEL)
-# and then to target EXTRAVER (2.6.SUB.EXTRAVER) if requested.
-# If not ending sublevel is specified, it is incremented until
+# now current is 3.x, with no EXTRA applied,
+# so update to target SUBLEVEL (3.PATCHLEVEL.SUBLEVEL)
+# and then to target EXTRAVER (3.PATCHLEVEL.SUBLEVEL.EXTRAVER) if requested.
+# If no ending sublevel is specified, it is incremented until
# no further sublevels are found.

if [ $STOPSUBLEVEL -gt $SUBLEVEL ]; then