Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758162AbXLRFOz (ORCPT ); Tue, 18 Dec 2007 00:14:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751492AbXLRFOr (ORCPT ); Tue, 18 Dec 2007 00:14:47 -0500 Received: from ozlabs.org ([203.10.76.45]:59750 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbXLRFOq (ORCPT ); Tue, 18 Dec 2007 00:14:46 -0500 From: Rusty Russell To: Glauber de Oliveira Costa Subject: Re: [PATCH 3/21] [PATCH] move desc_empty to where they belong Date: Tue, 18 Dec 2007 16:14:36 +1100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, glommer@gmail.com, tglx@linutronix.de, mingo@elte.hu, ehabkost@redhat.com, jeremy@goop.org, avi@qumranet.com, anthony@codemonkey.ws, virtualization@lists.linux-foundation.org, ak@suse.de, chrisw@sous-sol.org, rostedt@goodmis.org, hpa@zytor.com, zach@vmware.com, roland@redhat.com References: <11979319641796-git-send-email-gcosta@redhat.com> <11979319763641-git-send-email-gcosta@redhat.com> <11979319811234-git-send-email-gcosta@redhat.com> In-Reply-To: <11979319811234-git-send-email-gcosta@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712181614.37890.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 528 Lines: 16 On Tuesday 18 December 2007 09:52:26 Glauber de Oliveira Costa wrote: > +static inline int desc_empty(const void *ptr) > +{ > + const u32 *desc = ptr; > + return !(desc[0] | desc[1]); > +} Erk. This really needs to be a union, not a void *. I guess we can clean it later. Rusty. -- 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/