Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754600AbZGUCs4 (ORCPT ); Mon, 20 Jul 2009 22:48:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754544AbZGUCsz (ORCPT ); Mon, 20 Jul 2009 22:48:55 -0400 Received: from cantor.suse.de ([195.135.220.2]:56066 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754293AbZGUCsz (ORCPT ); Mon, 20 Jul 2009 22:48:55 -0400 Date: Mon, 20 Jul 2009 19:38:23 -0700 From: Greg KH To: Arnd Bergmann Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, virtualization@lists.osdl.org, Greg KH , Sam Ramji , Haiyang Zhang , Hank Janssen , shemminger@linux-foundation.org Subject: Re: [patch 27/54] Staging: hv: remove ULONG and LONG typedefs Message-ID: <20090721023823.GA12154@suse.de> References: <20090717180850.873962925@mini.kroah.org> <20090717180920.285605541@mini.kroah.org> <200907210200.16295.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200907210200.16295.arnd@arndb.de> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 55 On Tue, Jul 21, 2009 at 02:00:16AM +0200, Arnd Bergmann wrote: > On Friday 17 July 2009, Greg Kroah-Hartman wrote: > > From: Greg Kroah-Hartman > > > > The ULONG and LONG typedefs are now removed from the Hyper-V driver > > code > > > > This conversion is not equivalent: > > > // > > -// unsigned types > > -// > > -typedef unsigned int ULONG; > > - > > -// > > -// signed types > > -// > > -typedef int LONG; > > - // redefine the world, because we can > - extern char *i; > - void abs(unsigned u); > - #define FALSE (2) > > ;-) > > > --- a/drivers/staging/hv/include/StorVscApi.h > > +++ b/drivers/staging/hv/include/StorVscApi.h > > @@ -117,7 +117,7 @@ typedef struct _STORVSC_DRIVER_OBJECT { > > } STORVSC_DRIVER_OBJECT; > > > > typedef struct _STORVSC_DEVICE_INFO { > > - ULONG PortNumber; > > + unsigned long PortNumber; > > unsigned char PathId; > > unsigned char TargetId; > > } STORVSC_DEVICE_INFO; > > If this is an API (as the header file name suggests), you just changed it. > Same for the other hunks in this patch. Ah crap, you're right, that's all wrong, nice catch. I'll go redo it to be "unsigned int", but for some reason, the code still seems to work properly :) thanks, greg k-h -- 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/