On Fri, 2009-07-31 at 09:41 -0700, Greg KH wrote: > On Fri, Jul 31, 2009 at 09:34:43AM -0700, Joe Perches wrote: > > On Fri, 2009-07-31 at 08:47 -0700, Greg KH wrote: > > > I'll run this as a set of patches and credit you for the script > > > generation, is that ok? > > > > Fine by me. The sed and perl statements might be > > useful in the future so perhaps it's be good to > > include them in the commit log. > > Ah, nice idea, I'll do that. I sure don't want to ever have to create > such a beast on my own again :) Hey Greg, Along a similar vein... Here's a script and input file that converts unnamed typedefs to the common kernel standard struct uses. from: typedef struct { bar } foo[, *Pfoo]; foo var; to: struct foo { bar }; struct foo var; The order of entries in the input file must be the same as the typedef definition order. Joe -------------- next part -------------- HV_INPUT_SIGNAL_EVENT_BUFFER:hv_input_signal_event_buffer HV_CONTEXT:hv_context VMBUS_CHANNEL_OFFER:vmbus_channel_offer VMRCB:vmrcb VMRING:vmring VMPACKET_DESCRIPTOR:vmpacket_descriptor VMPACKET_HEADER:vmpacket_header VMTRANSFER_PAGE_RANGE:vmtransfer_page_range VMSCSI_REQUEST:vmscsi_request VMSTORAGE_CHANNEL_PROPERTIES:vmstorage_channel_properties VMSTORAGE_PROTOCOL_VERSION:vmstorage_protocol_version GUID:hv_guid -------------- next part -------------- A non-text attachment was scrubbed... Name: cvt_nameless_typedef_to_struct.bash Type: application/x-shellscript Size: 897 bytes Desc: not available URL: <http://driverdev.linuxdriverproject.org/pipermail/devel/attachments/20090731/3396dca9/attachment.bin>