Re: [PATCH] amd_iommu: Fix kvm_enable_x2apic link error with clang in non-KVM builds

2024-11-29 Thread Philippe Mathieu-Daudé
On 29/11/24 11:29, Philippe Mathieu-Daudé wrote: On 14/11/24 12:45, Sairaj Kodilkar wrote: Commit b12cb3819 (amd_iommu: Check APIC ID > 255 for XTSup) throws linking error for the `kvm_enable_x2apic` when kvm is disabled and Clang is used for compilation. This issue comes up because Clang does

Re: [PATCH] amd_iommu: Fix kvm_enable_x2apic link error with clang in non-KVM builds

2024-11-29 Thread Philippe Mathieu-Daudé
On 29/11/24 11:29, Philippe Mathieu-Daudé wrote: On 14/11/24 12:45, Sairaj Kodilkar wrote: Commit b12cb3819 (amd_iommu: Check APIC ID > 255 for XTSup) throws linking error for the `kvm_enable_x2apic` when kvm is disabled and Clang is used for compilation. This issue comes up because Clang does

Re: [PATCH] amd_iommu: Fix kvm_enable_x2apic link error with clang in non-KVM builds

2024-11-29 Thread Philippe Mathieu-Daudé
On 14/11/24 12:45, Sairaj Kodilkar wrote: Commit b12cb3819 (amd_iommu: Check APIC ID > 255 for XTSup) throws linking error for the `kvm_enable_x2apic` when kvm is disabled and Clang is used for compilation. This issue comes up because Clang does not remove the function callsite (kvm_enable_x2api

Re: [PATCH] amd_iommu: Fix kvm_enable_x2apic link error with clang in non-KVM builds

2024-11-29 Thread Philippe Mathieu-Daudé
On 14/11/24 12:45, Sairaj Kodilkar wrote: Commit b12cb3819 (amd_iommu: Check APIC ID > 255 for XTSup) throws linking error for the `kvm_enable_x2apic` when kvm is disabled and Clang is used for compilation. This issue comes up because Clang does not remove the function callsite (kvm_enable_x2api

[PATCH] amd_iommu: Fix kvm_enable_x2apic link error with clang in non-KVM builds

2024-11-14 Thread Sairaj Kodilkar
Commit b12cb3819 (amd_iommu: Check APIC ID > 255 for XTSup) throws linking error for the `kvm_enable_x2apic` when kvm is disabled and Clang is used for compilation. This issue comes up because Clang does not remove the function callsite (kvm_enable_x2apic in this case) during optimization when if