Commit 451913e9 authored by Bokun Zhang's avatar Bokun Zhang Committed by Alex Deucher

drm/amd/amdgpu: Properly indent PF2VF header

- Clean up the identation in the header file
Signed-off-by: default avatarBokun Zhang <Bokun.Zhang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c649287a
...@@ -263,7 +263,7 @@ struct amd_sriov_msg_vf2pf_info { ...@@ -263,7 +263,7 @@ struct amd_sriov_msg_vf2pf_info {
uint64_t dummy_page_addr; uint64_t dummy_page_addr;
/* reserved */ /* reserved */
uint32_t reserved[256-70]; uint32_t reserved[256 - 70];
}; };
/* mailbox message send from guest to host */ /* mailbox message send from guest to host */
...@@ -300,9 +300,7 @@ enum amd_sriov_gpu_init_data_version { ...@@ -300,9 +300,7 @@ enum amd_sriov_gpu_init_data_version {
#pragma pack(pop) // Restore previous packing option #pragma pack(pop) // Restore previous packing option
/* checksum function between host and guest */ /* checksum function between host and guest */
unsigned int amd_sriov_msg_checksum(void *obj, unsigned int amd_sriov_msg_checksum(void *obj, unsigned long obj_size, unsigned int key,
unsigned long obj_size,
unsigned int key,
unsigned int checksum); unsigned int checksum);
/* assertion at compile time */ /* assertion at compile time */
...@@ -318,12 +316,10 @@ _Static_assert( ...@@ -318,12 +316,10 @@ _Static_assert(
sizeof(struct amd_sriov_msg_pf2vf_info) == AMD_SRIOV_MSG_SIZE_KB << 10, sizeof(struct amd_sriov_msg_pf2vf_info) == AMD_SRIOV_MSG_SIZE_KB << 10,
"amd_sriov_msg_pf2vf_info must be " stringification(AMD_SRIOV_MSG_SIZE_KB) " KB"); "amd_sriov_msg_pf2vf_info must be " stringification(AMD_SRIOV_MSG_SIZE_KB) " KB");
_Static_assert( _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE % 4 == 0,
AMD_SRIOV_MSG_RESERVE_UCODE % 4 == 0,
"AMD_SRIOV_MSG_RESERVE_UCODE must be multiple of 4"); "AMD_SRIOV_MSG_RESERVE_UCODE must be multiple of 4");
_Static_assert( _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE > AMD_SRIOV_UCODE_ID__MAX,
AMD_SRIOV_MSG_RESERVE_UCODE > AMD_SRIOV_UCODE_ID__MAX,
"AMD_SRIOV_MSG_RESERVE_UCODE must be bigger than AMD_SRIOV_UCODE_ID__MAX"); "AMD_SRIOV_MSG_RESERVE_UCODE must be bigger than AMD_SRIOV_UCODE_ID__MAX");
#undef _stringification #undef _stringification
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment