2005-03-19 13:59:28

by Domen Puncer

[permalink] [raw]
Subject: [patch 2/4] security/selinux/ss/ebitmap.c: fix sparse warnings




Signed-off-by: Domen Puncer <[email protected]>
---


kj-domen/security/selinux/ss/ebitmap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff -puN security/selinux/ss/ebitmap.c~sparse-security_selinux_ss_ebitmap security/selinux/ss/ebitmap.c
--- kj/security/selinux/ss/ebitmap.c~sparse-security_selinux_ss_ebitmap 2005-03-18 20:05:32.000000000 +0100
+++ kj-domen/security/selinux/ss/ebitmap.c 2005-03-18 20:05:32.000000000 +0100
@@ -239,8 +239,9 @@ int ebitmap_read(struct ebitmap *e, void
{
int rc;
struct ebitmap_node *n, *l;
- u32 buf[3], mapsize, count, i;
- u64 map;
+ __le32 buf[3];
+ u32 mapsize, count, i;
+ __le64 map;

ebitmap_init(e);

_


2005-03-20 12:00:13

by Domen Puncer

[permalink] [raw]
Subject: Re: [patch 2/4 with proper signed-off] security/selinux/ss/ebitmap.c: fix sparse warnings


Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>
---


kj-domen/security/selinux/ss/ebitmap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff -puN security/selinux/ss/ebitmap.c~sparse-security_selinux_ss_ebitmap security/selinux/ss/ebitmap.c
--- kj/security/selinux/ss/ebitmap.c~sparse-security_selinux_ss_ebitmap 2005-03-20 12:11:31.000000000 +0100
+++ kj-domen/security/selinux/ss/ebitmap.c 2005-03-20 12:11:31.000000000 +0100
@@ -239,8 +239,9 @@ int ebitmap_read(struct ebitmap *e, void
{
int rc;
struct ebitmap_node *n, *l;
- u32 buf[3], mapsize, count, i;
- u64 map;
+ __le32 buf[3];
+ u32 mapsize, count, i;
+ __le64 map;

ebitmap_init(e);

_