diff options
Diffstat (limited to 'meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch')
-rw-r--r-- | meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch b/meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch index 2320b92eba..7c0a27510b 100644 --- a/meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch +++ b/meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From 0c4dbadc9db3cda1cfca64e44ea08c6e89919ea7 Mon Sep 17 00:00:00 2001 | 1 | From 4b68940b1ed46c54a5a0bdf6bb9d4599bc64e6f4 Mon Sep 17 00:00:00 2001 |
2 | From: Ting Liu <b28495@freescale.com> | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
3 | Date: Tue, 10 Sep 2013 13:44:18 +0800 | 3 | Date: Wed, 24 Dec 2014 10:12:40 +0800 |
4 | Subject: [PATCH] Change to calling bswap_* instead of htobe* and be*toh | 4 | Subject: [PATCH] Change to calling bswap_* instead of htobe* and be*toh |
5 | 5 | ||
6 | We can't use htobe* and be*toh functions because they are not | 6 | We can't use htobe* and be*toh functions because they are not |
@@ -11,12 +11,13 @@ Change to directly calling bswap_* as defined in+byteswap.h. | |||
11 | Upstream-Status: Inappropriate | 11 | Upstream-Status: Inappropriate |
12 | 12 | ||
13 | Signed-off-by: Ting Liu <b28495@freescale.com> | 13 | Signed-off-by: Ting Liu <b28495@freescale.com> |
14 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
14 | --- | 15 | --- |
15 | libkmod/libkmod-signature.c | 3 ++- | 16 | libkmod/libkmod-signature.c | 3 ++- |
16 | 1 files changed, 2 insertions(+), 1 deletions(-) | 17 | 1 file changed, 2 insertions(+), 1 deletion(-) |
17 | 18 | ||
18 | diff --git a/libkmod/libkmod-signature.c b/libkmod/libkmod-signature.c | 19 | diff --git a/libkmod/libkmod-signature.c b/libkmod/libkmod-signature.c |
19 | index 6b80caa..3544a36 100644 | 20 | index 2b976a5..ffe58c2 100644 |
20 | --- a/libkmod/libkmod-signature.c | 21 | --- a/libkmod/libkmod-signature.c |
21 | +++ b/libkmod/libkmod-signature.c | 22 | +++ b/libkmod/libkmod-signature.c |
22 | @@ -19,6 +19,7 @@ | 23 | @@ -19,6 +19,7 @@ |
@@ -24,10 +25,10 @@ index 6b80caa..3544a36 100644 | |||
24 | 25 | ||
25 | #include <endian.h> | 26 | #include <endian.h> |
26 | +#include <byteswap.h> | 27 | +#include <byteswap.h> |
27 | #include <stdint.h> | 28 | #include <inttypes.h> |
29 | #include <stdio.h> | ||
28 | #include <stdlib.h> | 30 | #include <stdlib.h> |
29 | #include <string.h> | 31 | @@ -124,7 +125,7 @@ bool kmod_module_signature_info(const struct kmod_file *file, struct kmod_signat |
30 | @@ -121,7 +122,7 @@ bool kmod_module_signature_info(const struct kmod_file *file, struct kmod_signat | ||
31 | modsig->hash >= PKEY_HASH__LAST || | 32 | modsig->hash >= PKEY_HASH__LAST || |
32 | modsig->id_type >= PKEY_ID_TYPE__LAST) | 33 | modsig->id_type >= PKEY_ID_TYPE__LAST) |
33 | return false; | 34 | return false; |
@@ -37,5 +38,5 @@ index 6b80caa..3544a36 100644 | |||
37 | return false; | 38 | return false; |
38 | 39 | ||
39 | -- | 40 | -- |
40 | 1.7.5.4 | 41 | 1.9.1 |
41 | 42 | ||