mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-28 03:19:35 +00:00

We can remove #ifdef CONFIG_PCI_IOV in .c files if we provide dummy replacement of the xe_pci_sriov_configure() function. Suggested-by: Jani Nikula <jani.nikula@linux.intel.com> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Francois Dugast <francois.dugast@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240627104305.1477-1-michal.wajdeczko@intel.com
21 lines
352 B
C
21 lines
352 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023-2024 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_PCI_SRIOV_H_
|
|
#define _XE_PCI_SRIOV_H_
|
|
|
|
struct pci_dev;
|
|
|
|
#ifdef CONFIG_PCI_IOV
|
|
int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs);
|
|
#else
|
|
static inline int xe_pci_sriov_configure(struct pci_dev *pdev, int num_vfs)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif
|
|
|
|
#endif
|