Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932228AbYHHWLz (ORCPT ); Fri, 8 Aug 2008 18:11:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762468AbYHHV4r (ORCPT ); Fri, 8 Aug 2008 17:56:47 -0400 Received: from terminus.zytor.com ([198.137.202.10]:40024 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762771AbYHHV4q (ORCPT ); Fri, 8 Aug 2008 17:56:46 -0400 Message-ID: <489CC0DD.5010402@zytor.com> Date: Fri, 08 Aug 2008 14:55:41 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Rene Herman CC: Bjorn Helgaas , Linux Kernel , Andrew Morton Subject: Re: [PATCH] PNP: make the resource type an unsigned long References: <489BEA31.3040101@keyaccess.nl> In-Reply-To: <489BEA31.3040101@keyaccess.nl> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 819 Lines: 24 Rene Herman wrote: > Hi Bjorn. > > Andrew earlier commented that pci_resourec_flags() returns an unsigned > long. Had this hanging around a local branch. Useful? > -int pnp_resource_type(struct resource *res) +unsigned long pnp_resource_type(struct resource *res) { return res->flags & (IORESOURCE_IO | IORESOURCE_MEM | IORESOURCE_IRQ | IORESOURCE_DMA); } Seems a bit pointless ... either one of those flags is >= 32 bits, in which case we need u64, or it's not, in which case there is no reason to burden the output with bits we don't need. -hpa -- 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/