fix issues reported by clang-tidy 14

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2022-05-05 13:41:20 +00:00
committed by Compute-Runtime-Automation
parent 27ca561482
commit b429df1b55
5 changed files with 9 additions and 10 deletions

View File

@ -20,7 +20,7 @@ components:
infra:
branch: master
dest_dir: infra
revision: 872d4a71958e47a33262448cc36d7c7514f73f8c
revision: b209173336d16453c23e7dfb03da87d087d4816a
type: git
internal:
branch: master

View File

@ -430,7 +430,7 @@ HWTEST_F(CommandQueueHwTest, GivenEventsWaitlistOnBlockingWhenMappingBufferThenW
struct MockEvent : UserEvent {
MockEvent(Context *ctx, uint32_t updateCountBeforeCompleted)
: UserEvent(ctx),
updateCount(0), updateCountBeforeCompleted(updateCountBeforeCompleted) {
updateCountBeforeCompleted(updateCountBeforeCompleted) {
this->updateTaskCount(0, 0);
this->taskLevel = 0;
}
@ -443,7 +443,7 @@ HWTEST_F(CommandQueueHwTest, GivenEventsWaitlistOnBlockingWhenMappingBufferThenW
unblockEventsBlockedByThis(executionStatus);
}
uint32_t updateCount;
uint32_t updateCount = 0;
uint32_t updateCountBeforeCompleted;
};

View File

@ -83,7 +83,7 @@ struct EnqueueThreadingFixture : public ClDeviceFixture {
public:
MyCommandQueue(Context *context,
ClDevice *device,
const cl_queue_properties *props) : CommandQueueHw<FamilyType>(context, device, props, false), kernel(nullptr) {
const cl_queue_properties *props) : CommandQueueHw<FamilyType>(context, device, props, false) {
}
static CommandQueue *create(Context *context,
@ -106,7 +106,7 @@ struct EnqueueThreadingFixture : public ClDeviceFixture {
}
}
Kernel *kernel;
Kernel *kernel = nullptr;
};
CommandQueue *pCmdQ;

View File

@ -1053,8 +1053,7 @@ struct CommandStreamReceiverHwLog : public UltCommandStreamReceiver<FamilyType>
CommandStreamReceiverHwLog(ExecutionEnvironment &executionEnvironment,
uint32_t rootDeviceIndex,
const DeviceBitfield deviceBitfield)
: UltCommandStreamReceiver<FamilyType>(executionEnvironment, rootDeviceIndex, deviceBitfield),
flushCount(0) {
: UltCommandStreamReceiver<FamilyType>(executionEnvironment, rootDeviceIndex, deviceBitfield) {
}
SubmissionStatus flush(BatchBuffer &batchBuffer, ResidencyContainer &allocationsForResidency) override {
@ -1062,7 +1061,7 @@ struct CommandStreamReceiverHwLog : public UltCommandStreamReceiver<FamilyType>
return SubmissionStatus::SUCCESS;
}
int flushCount;
int flushCount = 0;
};
HWTEST_F(CommandStreamReceiverFlushTaskTests, GivenBothCsWhenFlushingTaskThenFlushOnce) {

View File

@ -1093,7 +1093,7 @@ HWTEST_F(EventTest, givenVirtualEventWhenSubmitCommandEventNotReadyAndEventWitho
HWTEST_F(InternalsEventTest, GivenBufferWithoutZeroCopyWhenMappingOrUnmappingThenFlushPreviousTasksBeforeMappingOrUnmapping) {
struct MockNonZeroCopyBuff : UnalignedBuffer {
MockNonZeroCopyBuff(int32_t &executionStamp)
: executionStamp(executionStamp), dataTransferedStamp(-1) {
: executionStamp(executionStamp) {
hostPtr = &dataTransferedStamp;
memoryStorage = &executionStamp;
size = sizeof(executionStamp);
@ -1108,7 +1108,7 @@ HWTEST_F(InternalsEventTest, GivenBufferWithoutZeroCopyWhenMappingOrUnmappingThe
}
int32_t &executionStamp;
int32_t dataTransferedStamp;
int32_t dataTransferedStamp = -1;
};
int32_t executionStamp = 0;