Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: remove unused struct cdit_header

struct cdit_header was never used across any of the amd drivers nor
this is exposed to UAPI so it can be removed.

This patch removes struct cdit_header and refactor code accordingly

Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Paulo Miguel Almeida and committed by
Alex Deucher
25135748 3f1a02eb

+1 -23
+1 -23
drivers/gpu/drm/amd/amdkfd/kfd_crat.h
··· 29 29 #pragma pack(1) 30 30 31 31 /* 32 - * 4CC signature values for the CRAT and CDIT ACPI tables 32 + * 4CC signature value for the CRAT ACPI table 33 33 */ 34 34 35 35 #define CRAT_SIGNATURE "CRAT" 36 - #define CDIT_SIGNATURE "CDIT" 37 36 38 37 /* 39 38 * Component Resource Association Table (CRAT) ··· 289 290 uint8_t length; 290 291 uint16_t reserved; 291 292 uint32_t flags; 292 - }; 293 - 294 - /* 295 - * Component Locality Distance Information Table (CDIT) 296 - */ 297 - #define CDIT_OEMID_LENGTH 6 298 - #define CDIT_OEMTABLEID_LENGTH 8 299 - 300 - struct cdit_header { 301 - uint32_t signature; 302 - uint32_t length; 303 - uint8_t revision; 304 - uint8_t checksum; 305 - uint8_t oem_id[CDIT_OEMID_LENGTH]; 306 - uint8_t oem_table_id[CDIT_OEMTABLEID_LENGTH]; 307 - uint32_t oem_revision; 308 - uint32_t creator_id; 309 - uint32_t creator_revision; 310 - uint32_t total_entries; 311 - uint16_t num_domains; 312 - uint8_t entry[1]; 313 293 }; 314 294 315 295 #pragma pack()