Skip to content

Commit 6607ef3

Browse files
Vitalii ChulakYanVugenfirer
authored andcommitted
RHEL-69071: fix broken style for Common folder in NetKVM
Signed-off-by: Vitalii Chulak <vitalii@daynix.com>
1 parent af79188 commit 6607ef3

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

NetKVM/Common/ParaNdis-Util.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,9 @@ class CNdisList : private TAccessStrategy, public TCountingStrategy
503503

504504
template <typename TPredicate, typename TFunctor> void ForEachDetachedIf(TPredicate Predicate, TFunctor Functor)
505505
{
506+
// clang-format off
506507
ForEachPrepareIf(Predicate, [this](PLIST_ENTRY Entry){ Remove_LockLess(Entry); }, Functor);
508+
// clang-format on
507509
}
508510

509511
template <typename TFunctor> void ForEach(TFunctor Functor)
@@ -561,7 +563,7 @@ class CNdisList : private TAccessStrategy, public TCountingStrategy
561563
class CDpcIrqlRaiser
562564
{
563565
public:
564-
566+
// clang-format off
565567
_IRQL_requires_max_(DISPATCH_LEVEL)
566568
_IRQL_raises_(DISPATCH_LEVEL)
567569
_IRQL_saves_global_(OldIrql, this->m_OriginalIRQL)
@@ -575,7 +577,7 @@ class CDpcIrqlRaiser
575577
}
576578
CDpcIrqlRaiser(const CDpcIrqlRaiser &) = delete;
577579
CDpcIrqlRaiser &operator=(const CDpcIrqlRaiser &) = delete;
578-
580+
// clang-format on
579581
private:
580582
KIRQL m_OriginalIRQL;
581583
};

NetKVM/Common/ParaNdis_Common.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ typedef struct _tagConfigurationEntries
111111
tConfigurationEntry PollMode;
112112
} tConfigurationEntries;
113113

114+
// clang-format off
114115
static const tConfigurationEntries defaultConfiguration =
115116
{
116117
{ "*PhysicalMediaType", 0, 0, 0xff },
@@ -163,6 +164,7 @@ static void ParaNdis_ResetVirtIONetDevice(PARANDIS_ADAPTER *pContext)
163164
/* reset all the features in the device */
164165
pContext->ulCurrentVlansFilterSet = 0;
165166
}
167+
// clang-format on
166168

167169
/**********************************************************
168170
Gets integer value for specifies in pEntry->Name name
@@ -474,6 +476,7 @@ void ParaNdis_ResetOffloadSettings(PARANDIS_ADAPTER *pContext, tOffloadSettingsF
474476
pDest->fUsov6 = !!(*from & osbT6Uso);
475477
}
476478

479+
// clang-format off
477480
static void DumpVirtIOFeatures(PPARANDIS_ADAPTER pContext)
478481
{
479482
static const struct { ULONG bitmask; PCHAR Name; } Features[] =
@@ -523,6 +526,7 @@ static void DumpVirtIOFeatures(PPARANDIS_ADAPTER pContext)
523526
}
524527
}
525528
}
529+
// clang-format on
526530

527531
static BOOLEAN AckFeature(PPARANDIS_ADAPTER pContext, UINT64 Feature)
528532
{

NetKVM/Common/ParaNdis_Util.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ bool CSystemThread::Start(PVOID Context)
125125
{
126126
m_Context = Context;
127127
UpdateTimestamp(m_StartTime);
128+
// clang-format off
128129
NTSTATUS status = PsCreateSystemThread(&m_hThread,
129130
GENERIC_READ,
130131
NULL,
@@ -134,6 +135,7 @@ bool CSystemThread::Start(PVOID Context)
134135
((CSystemThread *)Ctx)->ThreadProc();
135136
},
136137
this);
138+
// clang-format on
137139
if (!NT_SUCCESS(status))
138140
{
139141
DPrintf(0, "Failed to start, status %X", status);

NetKVM/Common/ParaNdis_VirtIO.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ static void vdev_sleep(void *context, unsigned int msecs)
464464
NdisMSleep(1000 * msecs);
465465
}
466466

467+
// clang-format off
467468
VirtIOSystemOps ParaNdisSystemOps = {
468469
ReadVirtIODeviceByte,
469470
ReadVirtIODeviceWord,
@@ -484,3 +485,4 @@ VirtIOSystemOps ParaNdisSystemOps = {
484485
vdev_get_msix_vector,
485486
vdev_sleep,
486487
};
488+
// clang-format on

0 commit comments

Comments
 (0)