Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL-72207: Apply clang-format to ivshmem folder #1236

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jedoku
Copy link
Contributor

@Jedoku Jedoku commented Dec 26, 2024

No description provided.

@YanVugenfirer
Copy link
Collaborator

@Jedoku The PR has conflicts. Otherwise +1

@Jedoku Jedoku force-pushed the RHEL-72207-apply-clang-format-to-ivshmem-folder branch from 44cc664 to 5d2e002 Compare December 26, 2024 11:56
Comment on lines 176 to 178
#if (NTDDI_VERSION >= NTDDI_WIN8)
result = MmAllocateMdlForIoSpace(&deviceContext->shmemAddr, 1, &deviceContext->shmemMDL);
result = MmAllocateMdlForIoSpace(&deviceContext->shmemAddr, 1, &deviceContext->shmemMDL);
#else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YanVugenfirer

Looks like a part for refactoring. This condition can be removed as we drop Win8 support.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jedoku ignore this comment

ivshmem/Device.c Outdated
Comment on lines 228 to 238
DEBUG_INFO("%s", "This driver does not support > 64 interrupts, they will be ignored in the ISR.");
DEBUG_INFO("%s", "This driver does not support > 64 interrupts, they will be ignored in the ISR.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why without brackets?

ivshmem/Queue.c Outdated
Comment on lines 259 to 260
if (fileContext->shmemMap)
return STATUS_DEVICE_ALREADY_ATTACHED;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brackets?

Comment on lines 307 to 312
if (devHandle != INVALID_HANDLE_VALUE)
CloseHandle(devHandle);

if (infData)
free(infData);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brackets?

@Jedoku Jedoku changed the title RHEL-72207: Apply clang-formatt to ivshmem folder RHEL-72207: Apply clang-format to ivshmem folder Dec 26, 2024
@kostyanf14
Copy link
Member

s/clang-formatt/clang-format/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants