Skip to content

Commit

Permalink
RHEL-65784: Fix files ending
Browse files Browse the repository at this point in the history
clang-format always check one \n at the end of file.

Jira: https://issues.redhat.com/browse/RHEL-65784

Signed-off-by: Konstantin Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Nov 14, 2024
1 parent a6b8b40 commit 80776e1
Show file tree
Hide file tree
Showing 49 changed files with 53 additions and 94 deletions.
1 change: 0 additions & 1 deletion NetKVM/CoInstaller/Exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ class neTKVMW32ErrorException : public neTKVMNumErrorException
static tstring GetErrorString(DWORD dwErrorCode);
};
#endif

1 change: 0 additions & 1 deletion NetKVM/CoInstaller/NetKVMAux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ wstring NetKVMGetKeyPathFromKKEY(HKEY hKey)
}
return wstrKeyPath;
}

1 change: 0 additions & 1 deletion NetKVM/CoInstaller/RegAccess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,4 +543,3 @@ VOID neTKVMRegAccess::FormatFullRegPath(LPTSTR lpzFullPathBuff, DWORD_PTR dwNumb
}
}
}

2 changes: 0 additions & 2 deletions NetKVM/CoInstaller/RegParam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,3 @@ void neTKVMRegEditParam::FillExInfo(neTKVMRegParamExInfoList &ExInfoList)
ExInfoList.push_back(neTKVMRegParamExInfo(NETKVM_RPIID_EDIT_TEXT_LIMIT, tss.str()));
}
}


1 change: 0 additions & 1 deletion NetKVM/CoInstaller/RegParam.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,3 @@ class neTKVMRegEditParam : public neTKVMRegParam
DWORD m_nLimitText;
bool m_bUpperCase;
};

2 changes: 0 additions & 2 deletions NetKVM/CoInstaller/tstrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,3 @@ wstring __string2wstring(const string& str);
typedef list<tstring, allocator<tstring>> neTKVMTStrList;

#define TBUF_SIZEOF(a) ARRAY_SIZE(a)


1 change: 0 additions & 1 deletion NetKVM/Common/ParaNdis-RSS.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ class PARANDIS_RSS_PARAMS
#endif

#endif

2 changes: 1 addition & 1 deletion NetKVM/Common/ParaNdis_GuestAnnounce.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class CGuestAnnouncePackets : public CPlacementAllocatable
EthernetNSMFrame *CreateIPv6Packet(USHORT *IPV6);
};

bool CallCompletionForNBL(PARANDIS_ADAPTER * pContext, PNET_BUFFER_LIST NBL);
bool CallCompletionForNBL(PARANDIS_ADAPTER * pContext, PNET_BUFFER_LIST NBL);
2 changes: 1 addition & 1 deletion NetKVM/Common/ParaNdis_LockFreeQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,4 @@ class CLockFreeDynamicQueue : public CPlacementAllocatable
volatile LONG m_QueueFullListIsEmpty;
volatile LONG m_ElementCount;
volatile LONG m_Size;
};
};
2 changes: 1 addition & 1 deletion NetKVM/Common/Trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
//
// FUNC TraceNoPrefix{Flags=TRACE_DRIVER}(LEVEL, MSG, ...);
// end_wpp
//
//
3 changes: 1 addition & 2 deletions NetKVM/Common/netkvmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ typedef struct _NETKVMD_ADAPTER
UCHAR MacAddress[6];
UCHAR Virtio;
UCHAR IsStandby;

UCHAR VirtioLink;
UCHAR SuppressLink;
UCHAR Started;
Expand All @@ -60,4 +60,3 @@ typedef struct _NETKVMD_SET_LINK

// input buffer = NETKVMD_SET_LINK
#define IOCTL_NETKVMD_SET_LINK CTL_CODE(FILE_DEVICE_NETWORK, 0x802, METHOD_BUFFERED, FILE_READ_ACCESS)

4 changes: 1 addition & 3 deletions NetKVM/DebugTools/Netchecksum/netchecksum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,8 @@ int _tmain(int argc, _TCHAR* argv[])
}

DPrintf(0, ("Unit test %s", bOK ? "PASSED" : "FAILED"));

//getchar();

return 0;
}


2 changes: 0 additions & 2 deletions NetKVM/DebugTools/RSS-Toeplitz/WinToeplitz.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ UINT32 ToeplitzHash(const PHASH_CALC_SG_BUF_ENTRY sgBuff, int sgEntriesNum, UINT
#undef TOEPLITZ_BYTE_BIT_STATE
#undef TOEPLITZ_MAX_BIT_NUM
}


1 change: 0 additions & 1 deletion NetKVM/ProtocolService/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

#define ELEMENTS_IN(a) sizeof(a)/sizeof(a[0])
#define Log(fmt, ...) { CStringA _s_; _s_.Format(fmt "\n", __VA_ARGS__); OutputDebugStringA(_s_); }

1 change: 0 additions & 1 deletion NetKVM/linux/if_ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
#define ETH_ALEN 6

#endif

2 changes: 1 addition & 1 deletion NetKVM/wlh/ParaNdis6_Driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#include "ndis56common.h"

VOID ParaNdis6_SendNBLInternal(NDIS_HANDLE miniportAdapterContext, PNET_BUFFER_LIST pNBL,
NDIS_PORT_NUMBER portNumber, ULONG flags);
NDIS_PORT_NUMBER portNumber, ULONG flags);
2 changes: 1 addition & 1 deletion VirtIO/virtio_pci_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ bool vp_notify(struct virtqueue *vq);
NTSTATUS vio_legacy_initialize(VirtIODevice *vdev);
NTSTATUS vio_modern_initialize(VirtIODevice *vdev);

#endif
#endif
1 change: 0 additions & 1 deletion fwcfg64/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,3 @@ NTSTATUS VMCoreInfoFill(PDEVICE_CONTEXT ctx);
NTSTATUS VMCoreInfoSend(PDEVICE_CONTEXT ctx);

NTSTATUS GetKdbg(PDEVICE_CONTEXT ctx);

2 changes: 1 addition & 1 deletion ivshmem/Driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ NTSTATUS IVSHMEMEvtDeviceAdd(_In_ WDFDRIVER Driver, _Inout_ PWDFDEVICE_INIT Devi

status = IVSHMEMCreateDevice(DeviceInit);
return status;
}
}
1 change: 0 additions & 1 deletion pvpanic/pvpanic/trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@
// FUNC TraceEvents(LEVEL, FLAGS, MSG, ...);
// end_wpp
//

1 change: 0 additions & 1 deletion viocrypt/dll/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ BOOL APIENTRY DllMain( HMODULE hModule,
}
return TRUE;
}

4 changes: 2 additions & 2 deletions viocrypt/sys/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ EVT_WDF_INTERRUPT_ISR VioCryptInterruptIsr;
EVT_WDF_INTERRUPT_DPC VioCryptInterruptDpc;
EVT_WDF_INTERRUPT_ENABLE VioCryptInterruptEnable;
EVT_WDF_INTERRUPT_DISABLE VioCryptInterruptDisable;

EVT_WDF_IO_QUEUE_IO_DEVICE_CONTROL VioCryptIoControl;
EVT_WDF_IO_QUEUE_IO_STOP VioCryptIoStop;
EVT_WDF_IO_QUEUE_IO_STOP VioCryptIoStop;
2 changes: 1 addition & 1 deletion viogpu/common/edid.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ bool GetStandardTimingResolution(PSTANDARD_TIMING_DESCRIPTOR desc, PVIOGPU_DISP_
bool GetVICResolution(USHORT idx, PVIOGPU_DISP_MODE mode);

extern VIOGPU_DISP_MODE gpu_disp_modes[64];
extern UCHAR g_gpu_edid[EDID_V1_BLOCK_SIZE];
extern UCHAR g_gpu_edid[EDID_V1_BLOCK_SIZE];
1 change: 0 additions & 1 deletion viogpu/common/viogpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,3 @@ typedef struct _COLOR_CHARACTERISTICS {
#define ISR_REASON_DISPLAY 1
#define ISR_REASON_CURSOR 2
#define ISR_REASON_CHANGE 4

1 change: 0 additions & 1 deletion viogpu/common/viogpu_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,3 @@ NTSTATUS
UnmapFrameBuffer(
_In_reads_bytes_(Length) VOID* VirtualAddress,
_In_ ULONG Length);

3 changes: 1 addition & 2 deletions viogpu/common/viogpu_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class VioGpuQueue
VioGpuQueue();
~VioGpuQueue();
BOOLEAN Init(
_In_ VirtIODevice* pVIODevice,
_In_ VirtIODevice* pVIODevice,
_In_ struct virtqueue* pVirtQueue,
_In_ UINT index);
void Close(void);
Expand Down Expand Up @@ -201,4 +201,3 @@ class CrsrQueue : public VioGpuQueue
UINT QueueCursor(PGPU_VBUFFER buf);
PGPU_VBUFFER DequeueCursor(_Out_ UINT* len);
};

1 change: 0 additions & 1 deletion viogpu/viogpudo/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,4 +716,3 @@ void DebugPrintFuncKdPrint(const char *format, ...)

#endif
#pragma code_seg(pop) // End Non-Paged Code

1 change: 0 additions & 1 deletion viogpu/viogpudo/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,3 @@ VioGpuDodSystemDisplayWrite(
_In_ UINT SourceStride,
_In_ UINT PositionX,
_In_ UINT PositionY);

1 change: 0 additions & 1 deletion viogpu/viogpudo/viogpudo.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,3 @@ class VioGpuDod {
NTSTATUS GetRegisterInfo(void);
VOID BuildVideoSignalInfo(D3DKMDT_VIDEO_SIGNAL_INFO* pVideoSignalInfo, PVIDEO_MODE_INFORMATION pModeInfo);
};

31 changes: 15 additions & 16 deletions viomem/sys/Device.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ ViomemDeviceAdd(

memset(&devCtx->MemoryConfiguration, 0, sizeof(devCtx->MemoryConfiguration));
devCtx->finishProcessing = FALSE;

KeInitializeEvent(&devCtx->hostAcknowledge, SynchronizationEvent, FALSE);

WDF_OBJECT_ATTRIBUTES_INIT(&attributes);
Expand Down Expand Up @@ -192,7 +192,7 @@ ViomemEvtDevicePrepareHardware(
ResourceListTranslated,
NULL,
VIRTIO_MEM_POOL_TAG);

if (!NT_SUCCESS(status))
{
TraceEvents(TRACE_LEVEL_ERROR, DBG_POWER, "VirtIOWdfInitialize failed with %x\n", status);
Expand Down Expand Up @@ -234,8 +234,8 @@ ViomemEvtDevicePrepareHardware(
TraceEvents(TRACE_LEVEL_ERROR, DBG_POWER, "Failed to allocate MemoryResponse block\n");
status = STATUS_INSUFFICIENT_RESOURCES;
}
RtlFillMemory(&devCtx->memoryBitmapHandle, sizeof(RTL_BITMAP), 0);

RtlFillMemory(&devCtx->memoryBitmapHandle, sizeof(RTL_BITMAP), 0);
devCtx->bitmapBuffer = NULL;

//
Expand Down Expand Up @@ -281,7 +281,7 @@ ViomemEvtDeviceReleaseHardware (
return STATUS_SUCCESS;
}

NTSTATUS
NTSTATUS
ViomemCreateWorkerThread(
IN WDFDEVICE Device
)
Expand All @@ -296,7 +296,7 @@ ViomemCreateWorkerThread(

if(devCtx->Thread == NULL)
{
InitializeObjectAttributes(&oa, NULL,
InitializeObjectAttributes(&oa, NULL,
OBJ_KERNEL_HANDLE, NULL, NULL);

status = PsCreateSystemThread(&hThread, THREAD_ALL_ACCESS, &oa, NULL, NULL,
Expand Down Expand Up @@ -379,14 +379,14 @@ ViomemEvtDeviceD0Entry(
{
TraceEvents(TRACE_LEVEL_ERROR, DBG_PNP,
"ViomemCreateWorkerThread failed with status 0x%08x\n", status);
}
}

TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "%s Return \n", __FUNCTION__);

return status;
}

NTSTATUS
NTSTATUS
ViomemEvtDeviceD0Exit(
IN WDFDEVICE Device,
IN WDF_POWER_DEVICE_STATE TargetState
Expand All @@ -401,13 +401,13 @@ ViomemEvtDeviceD0Exit(
PAGED_CODE();

ViomemTerminate(Device);

TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "%s Return\n", __FUNCTION__);

return STATUS_SUCCESS;
}

NTSTATUS
NTSTATUS
ViomemEvtDeviceD0ExitPreInterruptsDisabled(
IN WDFDEVICE Device,
IN WDF_POWER_DEVICE_STATE TargetState
Expand All @@ -429,7 +429,7 @@ ViomemEvtDeviceD0ExitPreInterruptsDisabled(
return STATUS_SUCCESS;
}

BOOLEAN
BOOLEAN
ViomemISR(
IN WDFINTERRUPT WdfInterrupt,
IN ULONG MessageID
Expand All @@ -455,7 +455,7 @@ ViomemISR(
return FALSE;
}

VOID
VOID
ViomemDPC(
IN WDFINTERRUPT WdfInterrupt,
IN WDFOBJECT WdfDevice
Expand All @@ -471,7 +471,7 @@ ViomemDPC(
TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "%s Entry\n", __FUNCTION__);

WdfSpinLockAcquire(devCtx->infVirtQueueLock);

if (virtqueue_has_buf(devCtx->infVirtQueue))
{
bHostAck = TRUE;
Expand All @@ -491,7 +491,7 @@ ViomemDPC(
TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "%s Return\n", __FUNCTION__);
}

NTSTATUS
NTSTATUS
ViomemEnableInterrupts(
IN WDFINTERRUPT WdfInterrupt,
IN WDFDEVICE WdfDevice
Expand All @@ -509,7 +509,7 @@ ViomemEnableInterrupts(
return STATUS_SUCCESS;
}

NTSTATUS
NTSTATUS
ViomemDisableInterrupts(
IN WDFINTERRUPT WdfInterrupt,
IN WDFDEVICE WdfDevice
Expand All @@ -526,4 +526,3 @@ ViomemDisableInterrupts(
TraceEvents(TRACE_LEVEL_VERBOSE, DBG_INIT, "%s Return\n", __FUNCTION__);
return STATUS_SUCCESS;
}

1 change: 0 additions & 1 deletion viomem/sys/precomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif

3 changes: 1 addition & 2 deletions viomem/sys/viomem.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#pragma once
#include "virtio.h"

//
//
// Types and defines taken directly from the Linux header file.
//

Expand Down Expand Up @@ -173,4 +173,3 @@ typedef struct _virtio_mem_resp {
#define VIRTIO_MEM_STATE_UNPLUGGED 1
/* State of memory blocks is "mixed" */
#define VIRTIO_MEM_STATE_MIXED 2

1 change: 0 additions & 1 deletion vioscsi/resources.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@
#define CLUSDISK L"CLUSDISK"
#define HBA_ID 1234567890987654321ULL
#endif //___RESOURCES_H__

1 change: 0 additions & 1 deletion vioserial/app/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ class CDevice {
};

#endif

1 change: 0 additions & 1 deletion vioserial/app/notifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ class CNotifier {
};

#endif

2 changes: 1 addition & 1 deletion vioserial/app/win/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#define SOCK_STREAM 1 /* stream socket */
#define AF_UNIX 1 /* local to host (pipes, portals) */

typedef size_t socklen_t;
typedef size_t socklen_t;
2 changes: 1 addition & 1 deletion vioserial/app/win/sys/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

#define clock_gettime(x, data) ((timespec_get(data, TIME_UTC) != 0) ? 0 : 1)

#endif
#endif
1 change: 0 additions & 1 deletion vioserial/lib/PnPAll.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,3 @@ class SerialPort : public IPnPEventObserver
virtual void handleEvent(const PnPControl& ref);
pair <VIOSERIALNOTIFYCALLBACK*, PVOID> NotificationPair;
};

1 change: 0 additions & 1 deletion vioserial/lib/port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,3 @@ void SerialPort::handleEvent(const PnPControl& ref)
break;
}
}

2 changes: 0 additions & 2 deletions vioserial/lib/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@

#include "PnPAll.h"
#include "vioser.h"


1 change: 0 additions & 1 deletion vioserial/sys/Driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,3 @@ VIOSerialEvtDriverContextCleanup(

WPP_CLEANUP( WdfDriverWdmGetDriverObject((WDFDRIVER)Driver) );
}

1 change: 0 additions & 1 deletion vioserial/sys/IsrDpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,3 @@ VIOSerialDisableInterruptQueue(IN struct virtqueue *vq)

TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INTERRUPT, "<-- %s\n", __FUNCTION__);
}

Loading

0 comments on commit 80776e1

Please sign in to comment.