]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pf: Simplify IS_SRIOV_PF macro
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 28 Jan 2026 22:27:13 +0000 (23:27 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 2 Feb 2026 21:22:57 +0000 (22:22 +0100)
commit316b05ae7ed90544733f5c01e14f64d6e84a80dc
treeea45cf3eb49d5596c4e0270ab0890d2766134eb2
parent9f9c117ac566cb567dd56cc5b7564c45653f7a2a
drm/xe/pf: Simplify IS_SRIOV_PF macro

Instead of two having variants of the IS_SRIOV_PF macro, move the
CONFIG_PCI_IOV check to the xe_device_is_sriov_pf() function and
let the compiler optimize that. This will help us drop poor man's
type check of the macro parameter that fails on const xe pointer.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://patch.msgid.link/20260128222714.3056-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_sriov.h