From: | "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-crypt/truecrypt/files: truecrypt-4.3a-2.6.29.patch |
Date: | Mon, 20 Apr 2009 00:07:26 |
Message-Id: | E1Lvh2i-0006oQ-GI@stork.gentoo.org |
1 | arfrever 09/04/20 00:07:24 |
2 | |
3 | Added: truecrypt-4.3a-2.6.29.patch |
4 | Log: |
5 | Fix building with Linux 2.6.29 (bug #264450). |
6 | (Portage version: 13375-svn/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/truecrypt/files/truecrypt-4.3a-2.6.29.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: truecrypt-4.3a-2.6.29.patch |
15 | =================================================================== |
16 | --- Linux/Kernel/Dm-target.c |
17 | +++ Linux/Kernel/Dm-target.c |
18 | @@ -703,12 +703,16 @@ |
19 | |
20 | void __exit dm_truecrypt_exit(void) |
21 | { |
22 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29) |
23 | int r; |
24 | |
25 | r = dm_unregister_target (&truecrypt_target); |
26 | |
27 | if (r < 0) |
28 | error ("unregister failed %d", r); |
29 | +#else |
30 | + dm_unregister_target (&truecrypt_target); |
31 | +#endif |
32 | |
33 | destroy_workqueue (work_queue); |
34 | kmem_cache_destroy (bio_ctx_cache); |