Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80682b7a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: hv: remove RING_BUFFER_DEBUG_INFO typedef



typedefs are bad, kill them.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3924865f
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -272,8 +272,8 @@ struct vmbus_channel_debug_info {
	u32 ClientMonitorLatency;
	u32 ClientMonitorLatency;
	u32 ClientMonitorConnectionId;
	u32 ClientMonitorConnectionId;


	RING_BUFFER_DEBUG_INFO Inbound;
	struct hv_ring_buffer_debug_info Inbound;
	RING_BUFFER_DEBUG_INFO Outbound;
	struct hv_ring_buffer_debug_info Outbound;
};
};


/*
/*
+6 −6
Original line number Original line Diff line number Diff line
@@ -257,7 +257,7 @@ Description:


--*/
--*/
void RingBufferGetDebugInfo(RING_BUFFER_INFO *RingInfo,
void RingBufferGetDebugInfo(RING_BUFFER_INFO *RingInfo,
			    RING_BUFFER_DEBUG_INFO *DebugInfo)
			    struct hv_ring_buffer_debug_info *debug_info)
{
{
	u32 bytesAvailToWrite;
	u32 bytesAvailToWrite;
	u32 bytesAvailToRead;
	u32 bytesAvailToRead;
@@ -267,11 +267,11 @@ void RingBufferGetDebugInfo(RING_BUFFER_INFO *RingInfo,
					&bytesAvailToRead,
					&bytesAvailToRead,
					&bytesAvailToWrite);
					&bytesAvailToWrite);


		DebugInfo->BytesAvailToRead = bytesAvailToRead;
		debug_info->BytesAvailToRead = bytesAvailToRead;
		DebugInfo->BytesAvailToWrite = bytesAvailToWrite;
		debug_info->BytesAvailToWrite = bytesAvailToWrite;
		DebugInfo->CurrentReadIndex = RingInfo->RingBuffer->ReadIndex;
		debug_info->CurrentReadIndex = RingInfo->RingBuffer->ReadIndex;
		DebugInfo->CurrentWriteIndex = RingInfo->RingBuffer->WriteIndex;
		debug_info->CurrentWriteIndex = RingInfo->RingBuffer->WriteIndex;
		DebugInfo->CurrentInterruptMask = RingInfo->RingBuffer->InterruptMask;
		debug_info->CurrentInterruptMask = RingInfo->RingBuffer->InterruptMask;
	}
	}
}
}


+3 −3
Original line number Original line Diff line number Diff line
@@ -63,13 +63,13 @@ typedef struct _RING_BUFFER_INFO {


} RING_BUFFER_INFO;
} RING_BUFFER_INFO;


typedef struct _RING_BUFFER_DEBUG_INFO {
struct hv_ring_buffer_debug_info {
	u32 CurrentInterruptMask;
	u32 CurrentInterruptMask;
	u32 CurrentReadIndex;
	u32 CurrentReadIndex;
	u32 CurrentWriteIndex;
	u32 CurrentWriteIndex;
	u32 BytesAvailToRead;
	u32 BytesAvailToRead;
	u32 BytesAvailToWrite;
	u32 BytesAvailToWrite;
} RING_BUFFER_DEBUG_INFO;
};






@@ -96,6 +96,6 @@ u32 GetRingBufferInterruptMask(RING_BUFFER_INFO *RingInfo);
void DumpRingInfo(RING_BUFFER_INFO *RingInfo, char *Prefix);
void DumpRingInfo(RING_BUFFER_INFO *RingInfo, char *Prefix);


void RingBufferGetDebugInfo(RING_BUFFER_INFO *RingInfo,
void RingBufferGetDebugInfo(RING_BUFFER_INFO *RingInfo,
			    RING_BUFFER_DEBUG_INFO *DebugInfo);
			    struct hv_ring_buffer_debug_info *debug_info);


#endif /* _RING_BUFFER_H_ */
#endif /* _RING_BUFFER_H_ */