Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261179AbVCTMEG (ORCPT ); Sun, 20 Mar 2005 07:04:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262152AbVCTMCC (ORCPT ); Sun, 20 Mar 2005 07:02:02 -0500 Received: from coderock.org ([193.77.147.115]:6284 "EHLO trashy.coderock.org") by vger.kernel.org with ESMTP id S262150AbVCTMAe (ORCPT ); Sun, 20 Mar 2005 07:00:34 -0500 Date: Sun, 20 Mar 2005 13:00:29 +0100 From: Domen Puncer To: sds@epoch.ncsc.mil Cc: jmorris@redhat.com, linux-kernel@vger.kernel.org, adobriyan@mail.ru Subject: Re: [patch 4/4 with proper signed-off] security/selinux/ss/conditional.c: fix sparse warnings Message-ID: <20050320120029.GW14273@nd47.coderock.org> References: <20050319131948.84AC51F1EE@trashy.coderock.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050319131948.84AC51F1EE@trashy.coderock.org> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1730 Lines: 58 Signed-off-by: Alexey Dobriyan Signed-off-by: Domen Puncer --- kj-domen/security/selinux/ss/conditional.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff -puN security/selinux/ss/conditional.c~sparse-security_selinux_ss_conditional security/selinux/ss/conditional.c --- kj/security/selinux/ss/conditional.c~sparse-security_selinux_ss_conditional 2005-03-20 12:11:33.000000000 +0100 +++ kj-domen/security/selinux/ss/conditional.c 2005-03-20 12:11:33.000000000 +0100 @@ -219,7 +219,8 @@ int cond_read_bool(struct policydb *p, s { char *key = NULL; struct cond_bool_datum *booldatum; - u32 buf[3], len; + __le32 buf[3]; + u32 len; int rc; booldatum = kmalloc(sizeof(struct cond_bool_datum), GFP_KERNEL); @@ -263,7 +264,8 @@ static int cond_read_av_list(struct poli struct avtab_datum datum; struct avtab_node *node_ptr; int rc; - u32 buf[1], i, len; + __le32 buf[1]; + u32 i, len; u8 found; *ret_list = NULL; @@ -369,7 +371,8 @@ static int expr_isvalid(struct policydb static int cond_read_node(struct policydb *p, struct cond_node *node, void *fp) { - u32 buf[2], len, i; + __le32 buf[2]; + u32 len, i; int rc; struct cond_expr *expr = NULL, *last = NULL; @@ -427,7 +430,8 @@ err: int cond_read_list(struct policydb *p, void *fp) { struct cond_node *node, *last = NULL; - u32 buf[1], i, len; + __le32 buf[1]; + u32 i, len; int rc; rc = next_entry(buf, fp, sizeof buf); _ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/