From: Dexuan Cui <decui@xxxxxxxxxxxxx> Date: Tue, 14 Jul 2015 02:58:56 -0700 > +int vmbus_sendpacket_hvsock(struct vmbus_channel *channel, void *buf, u32 len) > +{ > + struct vmpacket_descriptor desc; > + struct vmpipe_proto_header pipe_hdr; > + u32 packetlen; > + u32 packetlen_aligned; > + struct kvec bufferlist[4]; > + u64 aligned_data = 0; > + int ret; > + bool signal = false; Reverse christmas-tree (longest to shortest line) order these local variables, please. > +EXPORT_SYMBOL(vmbus_sendpacket_hvsock); EXPORT_SYMBOL_GPL() > +int vmbus_recvpacket_hvsock(struct vmbus_channel *channel, void *buffer, > + u32 bufferlen, u32 *buffer_actual_len) > +{ > + struct vmpacket_descriptor *desc; > + struct vmpipe_proto_header *pipe_hdr; > + u32 packet_len, payload_len; > + int ret; > + bool signal = false; Again, please use reverse christmas-tree order. > +void vmbus_get_hvsock_rw_status(struct vmbus_channel *channel, > + bool *can_read, bool *can_write) Second line is not properly indented, it should start exactly one column after the openning parenthesis on the previous line. > + hv_get_ringbuffer_availbytes(inring_info, > + bytes_avail_toread, > + bytes_avail_towrite); Again, improperly indented. > +extern int vmbus_sendpacket_hvsock(struct vmbus_channel *channel, > + void *buf, u32 len); > + Likewise. > +extern int vmbus_recvpacket_hvsock(struct vmbus_channel *channel, void *buffer, > + u32 bufferlen, u32 *buffer_actual_len); > + > +extern void vmbus_get_hvsock_rw_status(struct vmbus_channel *channel, > + bool *can_read, bool *can_write); Likewise. _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel