Re: [PATCH V5 3/4] intel-iommu: convert VTD_PE_GET_FPD_ERR() to be a function

2022-10-28 Thread Yi Liu
On 2022/10/28 14:14, Jason Wang wrote: We used to have a macro for VTD_PE_GET_FPD_ERR() but it has an internal goto which prevents it from being reused. This patch convert that macro to a dedicated function and let the caller to decide what to do (e.g using goto or not). This makes sure it can

[PATCH V5 3/4] intel-iommu: convert VTD_PE_GET_FPD_ERR() to be a function

2022-10-28 Thread Jason Wang
We used to have a macro for VTD_PE_GET_FPD_ERR() but it has an internal goto which prevents it from being reused. This patch convert that macro to a dedicated function and let the caller to decide what to do (e.g using goto or not). This makes sure it can be re-used for other function that