1 |
Author: dsd |
2 |
Date: 2008-07-17 03:22:36 +0000 (Thu, 17 Jul 2008) |
3 |
New Revision: 1330 |
4 |
|
5 |
Removed: |
6 |
genpatches-2.6/trunk/2.6.26/4400_speakup-support.patch |
7 |
Modified: |
8 |
genpatches-2.6/trunk/2.6.26/0000_README |
9 |
genpatches-2.6/trunk/2.6.26/4105_dm-bbr.patch |
10 |
genpatches-2.6/trunk/2.6.26/4405_alpha-sysctl-uac.patch |
11 |
Log: |
12 |
update patches for 2.6.26 |
13 |
|
14 |
Modified: genpatches-2.6/trunk/2.6.26/0000_README |
15 |
=================================================================== |
16 |
--- genpatches-2.6/trunk/2.6.26/0000_README 2008-07-17 02:47:50 UTC (rev 1329) |
17 |
+++ genpatches-2.6/trunk/2.6.26/0000_README 2008-07-17 03:22:36 UTC (rev 1330) |
18 |
@@ -55,10 +55,6 @@ |
19 |
From: http://squashfs.sourceforge.net/ |
20 |
Desc: driver to support squashfs filesystems. |
21 |
|
22 |
-Patch: 4400_speakup-support.patch |
23 |
-From: http://bugs.gentoo.org/215189 |
24 |
-Desc: Add support for externally building speech synthesizer |
25 |
- |
26 |
Patch: 4405_alpha-sysctl-uac.patch |
27 |
From: Tavis Ormandy <taviso@g.o> and http://bugs.gentoo.org/show_bug.cgi?id=217323 |
28 |
Desc: enable control of the unaligned access control policy from sysctl |
29 |
|
30 |
Modified: genpatches-2.6/trunk/2.6.26/4105_dm-bbr.patch |
31 |
=================================================================== |
32 |
--- genpatches-2.6/trunk/2.6.26/4105_dm-bbr.patch 2008-07-17 02:47:50 UTC (rev 1329) |
33 |
+++ genpatches-2.6/trunk/2.6.26/4105_dm-bbr.patch 2008-07-17 03:22:36 UTC (rev 1330) |
34 |
@@ -1,10 +1,13 @@ |
35 |
BBR Target, updated by dsd@g.o |
36 |
|
37 |
Incomplete changelog: |
38 |
+ 2008/06/16: updated for new API in 2.6.26 |
39 |
2007/07/08: updated for new API in 2.6.22 |
40 |
|
41 |
---- a/drivers/md/Kconfig |
42 |
-+++ b/drivers/md/Kconfig |
43 |
+Index: linux-2.6.26-gentoo/drivers/md/Kconfig |
44 |
+=================================================================== |
45 |
+--- linux-2.6.26-gentoo.orig/drivers/md/Kconfig |
46 |
++++ linux-2.6.26-gentoo/drivers/md/Kconfig |
47 |
@@ -288,4 +288,15 @@ config DM_UEVENT |
48 |
---help--- |
49 |
Generate udev events for DM events. |
50 |
@@ -21,18 +24,22 @@ |
51 |
+ If unsure, say N. |
52 |
+ |
53 |
endif # MD |
54 |
---- a/drivers/md/Makefile |
55 |
-+++ b/drivers/md/Makefile |
56 |
+Index: linux-2.6.26-gentoo/drivers/md/Makefile |
57 |
+=================================================================== |
58 |
+--- linux-2.6.26-gentoo.orig/drivers/md/Makefile |
59 |
++++ linux-2.6.26-gentoo/drivers/md/Makefile |
60 |
@@ -41,6 +41,7 @@ obj-$(CONFIG_DM_MULTIPATH_RDAC) += dm-rd |
61 |
obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o |
62 |
- obj-$(CONFIG_DM_MIRROR) += dm-mirror.o |
63 |
+ obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o |
64 |
obj-$(CONFIG_DM_ZERO) += dm-zero.o |
65 |
+obj-$(CONFIG_BLK_DEV_DM_BBR) += dm-bbr.o |
66 |
|
67 |
quiet_cmd_unroll = UNROLL $@ |
68 |
cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \ |
69 |
+Index: linux-2.6.26-gentoo/drivers/md/dm-bbr.c |
70 |
+=================================================================== |
71 |
--- /dev/null |
72 |
-+++ b/drivers/md/dm-bbr.c |
73 |
++++ linux-2.6.26-gentoo/drivers/md/dm-bbr.c |
74 |
@@ -0,0 +1,1012 @@ |
75 |
+/* |
76 |
+ * (C) Copyright IBM Corp. 2002, 2004 |
77 |
@@ -69,12 +76,12 @@ |
78 |
+#include <linux/mempool.h> |
79 |
+#include <linux/workqueue.h> |
80 |
+#include <linux/vmalloc.h> |
81 |
++#include <linux/dm-io.h> |
82 |
+ |
83 |
+#include "dm.h" |
84 |
+#include "dm-bio-list.h" |
85 |
+#include "dm-bio-record.h" |
86 |
+#include "dm-bbr.h" |
87 |
-+#include "dm-io.h" |
88 |
+ |
89 |
+#define DM_MSG_PREFIX "bbr" |
90 |
+#define SECTOR_SIZE (1 << SECTOR_SHIFT) |
91 |
@@ -426,7 +433,7 @@ |
92 |
+} |
93 |
+ |
94 |
+static int rw_table(struct bbr_private *bbr_id, void *vma, |
95 |
-+ struct io_region *ptr, int rw) |
96 |
++ struct dm_io_region *ptr, int rw) |
97 |
+{ |
98 |
+ bbr_id->vma_io_req.bi_rw = rw; |
99 |
+ bbr_id->vma_io_req.mem.ptr.vma = vma; |
100 |
@@ -436,7 +443,7 @@ |
101 |
+} |
102 |
+ |
103 |
+static int io_sync(struct bbr_private *bbr_id, struct page_list *pl, |
104 |
-+ unsigned offset, struct io_region *ptr, int rw) |
105 |
++ unsigned offset, struct dm_io_region *ptr, int rw) |
106 |
+{ |
107 |
+ bbr_id->page_io_req.bi_rw = rw; |
108 |
+ bbr_id->page_io_req.mem.ptr.pl = pl; |
109 |
@@ -454,7 +461,7 @@ |
110 |
+static int bbr_setup(struct bbr_private *bbr_id) |
111 |
+{ |
112 |
+ struct bbr_table *table = bbr_id->bbr_table; |
113 |
-+ struct io_region job; |
114 |
++ struct dm_io_region job; |
115 |
+ int i, rc = 0; |
116 |
+ |
117 |
+ job.bdev = bbr_id->dev->bdev; |
118 |
@@ -507,7 +514,7 @@ |
119 |
+ unsigned int offset) |
120 |
+{ |
121 |
+ struct bbr_table *bbr_table; |
122 |
-+ struct io_region job; |
123 |
++ struct dm_io_region job; |
124 |
+ struct page_list pl; |
125 |
+ unsigned long table_sector_index; |
126 |
+ unsigned long table_sector_offset; |
127 |
@@ -620,7 +627,7 @@ |
128 |
+static int bbr_io_process_request(struct bbr_private *bbr_id, |
129 |
+ struct bio *bio) |
130 |
+{ |
131 |
-+ struct io_region job; |
132 |
++ struct dm_io_region job; |
133 |
+ u64 starting_lsn = bio->bi_sector; |
134 |
+ u64 count, lsn, remapped_lsn; |
135 |
+ struct page_list pl; |
136 |
@@ -1046,8 +1053,10 @@ |
137 |
+module_init(dm_bbr_init); |
138 |
+module_exit(dm_bbr_exit); |
139 |
+MODULE_LICENSE("GPL"); |
140 |
+Index: linux-2.6.26-gentoo/drivers/md/dm-bbr.h |
141 |
+=================================================================== |
142 |
--- /dev/null |
143 |
-+++ b/drivers/md/dm-bbr.h |
144 |
++++ linux-2.6.26-gentoo/drivers/md/dm-bbr.h |
145 |
@@ -0,0 +1,130 @@ |
146 |
+/* |
147 |
+ * (C) Copyright IBM Corp. 2002, 2004 |
148 |
@@ -1076,7 +1085,7 @@ |
149 |
+ * BBR replacement sectors have been used. |
150 |
+ */ |
151 |
+ |
152 |
-+#include "dm-io.h" |
153 |
++#include <linux/dm-io.h> |
154 |
+ |
155 |
+#define BBR_TABLE_SIGNATURE 0x42627254 /* BbrT */ |
156 |
+#define BBR_ENTRIES_PER_SECT 31 |
157 |
|
158 |
Deleted: genpatches-2.6/trunk/2.6.26/4400_speakup-support.patch |
159 |
=================================================================== |
160 |
--- genpatches-2.6/trunk/2.6.26/4400_speakup-support.patch 2008-07-17 02:47:50 UTC (rev 1329) |
161 |
+++ genpatches-2.6/trunk/2.6.26/4400_speakup-support.patch 2008-07-17 03:22:36 UTC (rev 1330) |
162 |
@@ -1,33 +0,0 @@ |
163 |
-diff --git a/drivers/char/consolemap.c b/drivers/char/consolemap.c |
164 |
-index 4b3916f..37c7980 100644 |
165 |
---- a/drivers/char/consolemap.c |
166 |
-+++ b/drivers/char/consolemap.c |
167 |
-@@ -277,6 +277,7 @@ |
168 |
- return p->inverse_translations[m][glyph]; |
169 |
- } |
170 |
- } |
171 |
-+EXPORT_SYMBOL_GPL(inverse_translate); |
172 |
- |
173 |
- static void update_user_maps(void) |
174 |
- { |
175 |
---- a/drivers/char/keyboard.c |
176 |
-+++ b/drivers/char/keyboard.c |
177 |
-@@ -111,6 +111,8 @@ |
178 |
- |
179 |
- struct kbd_struct kbd_table[MAX_NR_CONSOLES]; |
180 |
-+EXPORT_SYMBOL_GPL(kbd_table); |
181 |
- static struct kbd_struct *kbd = kbd_table; |
182 |
-+EXPORT_SYMBOL_GPL(kd_mksound); |
183 |
- |
184 |
- struct vt_spawn_console vt_spawn_con = { |
185 |
- .lock = __SPIN_LOCK_UNLOCKED(vt_spawn_con.lock), |
186 |
---- a/drivers/char/vt.c |
187 |
-+++ b/drivers/char/vt.c |
188 |
-@@ -3934,6 +3934,7 @@ |
189 |
- c |= 0x100; |
190 |
- return c; |
191 |
- } |
192 |
-+EXPORT_SYMBOL_GPL(screen_glyph); |
193 |
- |
194 |
- /* used by vcs - note the word offset */ |
195 |
- unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed) |
196 |
|
197 |
Modified: genpatches-2.6/trunk/2.6.26/4405_alpha-sysctl-uac.patch |
198 |
=================================================================== |
199 |
--- genpatches-2.6/trunk/2.6.26/4405_alpha-sysctl-uac.patch 2008-07-17 02:47:50 UTC (rev 1329) |
200 |
+++ genpatches-2.6/trunk/2.6.26/4405_alpha-sysctl-uac.patch 2008-07-17 03:22:36 UTC (rev 1330) |
201 |
@@ -1,9 +1,11 @@ |
202 |
---- src/arch/alpha/Kconfig.orig 2008-04-11 19:24:19.000000000 -0400 |
203 |
-+++ src/arch/alpha/Kconfig 2008-04-11 19:28:07.000000000 -0400 |
204 |
-@@ -616,6 +616,32 @@ config VERBOSE_MCHECK_ON |
205 |
+Index: linux-2.6.26-gentoo/arch/alpha/Kconfig |
206 |
+=================================================================== |
207 |
+--- linux-2.6.26-gentoo.orig/arch/alpha/Kconfig |
208 |
++++ linux-2.6.26-gentoo/arch/alpha/Kconfig |
209 |
+@@ -624,6 +624,32 @@ config HZ |
210 |
+ default 1200 if ALPHA_RAWHIDE |
211 |
+ default 1024 |
212 |
|
213 |
- Take the default (1) unless you want more control or more info. |
214 |
- |
215 |
+config ALPHA_UAC_SYSCTL |
216 |
+ bool "Configure UAC policy via sysctl" |
217 |
+ depends on SYSCTL |
218 |
@@ -33,9 +35,11 @@ |
219 |
source "drivers/pci/Kconfig" |
220 |
source "drivers/eisa/Kconfig" |
221 |
|
222 |
---- src/arch/alpha/kernel/traps.c.orig 2008-04-11 19:24:50.000000000 -0400 |
223 |
-+++ src/arch/alpha/kernel/traps.c 2008-04-13 17:07:10.000000000 -0400 |
224 |
-@@ -102,6 +102,52 @@ static char * ireg_name[] = {"v0", "t0", |
225 |
+Index: linux-2.6.26-gentoo/arch/alpha/kernel/traps.c |
226 |
+=================================================================== |
227 |
+--- linux-2.6.26-gentoo.orig/arch/alpha/kernel/traps.c |
228 |
++++ linux-2.6.26-gentoo/arch/alpha/kernel/traps.c |
229 |
+@@ -103,6 +103,52 @@ static char * ireg_name[] = {"v0", "t0", |
230 |
"t10", "t11", "ra", "pv", "at", "gp", "sp", "zero"}; |
231 |
#endif |
232 |
|
233 |
@@ -88,19 +92,19 @@ |
234 |
static void |
235 |
dik_show_code(unsigned int *pc) |
236 |
{ |
237 |
-@@ -780,7 +826,11 @@ do_entUnaUser(void __user * va, unsigned |
238 |
+@@ -782,7 +828,11 @@ do_entUnaUser(void __user * va, unsigned |
239 |
/* Check the UAC bits to decide what the user wants us to do |
240 |
with the unaliged access. */ |
241 |
|
242 |
+#ifndef CONFIG_ALPHA_UAC_SYSCTL |
243 |
if (!test_thread_flag (TIF_UAC_NOPRINT)) { |
244 |
+#else /* CONFIG_ALPHA_UAC_SYSCTL */ |
245 |
-+ if (!(enabled_noprint)) { |
246 |
++ if (!(enabled_noprint)) { |
247 |
+#endif /* CONFIG_ALPHA_UAC_SYSCTL */ |
248 |
- if (cnt >= 5 && jiffies - last_time > 5*HZ) { |
249 |
+ if (cnt >= 5 && time_after(jiffies, last_time + 5 * HZ)) { |
250 |
cnt = 0; |
251 |
} |
252 |
-@@ -791,10 +841,18 @@ do_entUnaUser(void __user * va, unsigned |
253 |
+@@ -793,10 +843,18 @@ do_entUnaUser(void __user * va, unsigned |
254 |
} |
255 |
last_time = jiffies; |
256 |
} |
257 |
@@ -119,7 +123,7 @@ |
258 |
return; |
259 |
|
260 |
/* Don't bother reading ds in the access check since we already |
261 |
-@@ -1089,3 +1147,7 @@ trap_init(void) |
262 |
+@@ -1091,3 +1149,7 @@ trap_init(void) |
263 |
wrent(entSys, 5); |
264 |
wrent(entDbg, 6); |
265 |
} |
266 |
@@ -127,9 +131,11 @@ |
267 |
+#ifdef CONFIG_ALPHA_UAC_SYSCTL |
268 |
+ __initcall(init_uac_sysctl); |
269 |
+#endif |
270 |
---- src/kernel/sysctl.c.orig 2008-04-11 19:26:51.000000000 -0400 |
271 |
-+++ src/kernel/sysctl.c 2008-04-13 16:35:12.000000000 -0400 |
272 |
-@@ -168,6 +168,9 @@ extern struct ctl_table random_table[]; |
273 |
+Index: linux-2.6.26-gentoo/kernel/sysctl.c |
274 |
+=================================================================== |
275 |
+--- linux-2.6.26-gentoo.orig/kernel/sysctl.c |
276 |
++++ linux-2.6.26-gentoo/kernel/sysctl.c |
277 |
+@@ -177,6 +177,9 @@ extern struct ctl_table random_table[]; |
278 |
#ifdef CONFIG_INOTIFY_USER |
279 |
extern struct ctl_table inotify_table[]; |
280 |
#endif |
281 |
@@ -139,7 +145,7 @@ |
282 |
|
283 |
#ifdef HAVE_ARCH_PICK_MMAP_LAYOUT |
284 |
int sysctl_legacy_va_layout; |
285 |
-@@ -779,6 +782,14 @@ static struct ctl_table kern_table[] = { |
286 |
+@@ -832,6 +835,14 @@ static struct ctl_table kern_table[] = { |
287 |
* NOTE: do not add new entries to this table unless you have read |
288 |
* Documentation/sysctl/ctl_unnumbered.txt |
289 |
*/ |
290 |
@@ -154,4 +160,3 @@ |
291 |
{ .ctl_name = 0 } |
292 |
}; |
293 |
|
294 |
- |
295 |
|
296 |
-- |
297 |
gentoo-commits@l.g.o mailing list |