]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PCI/TSM: Drop stub for pci_tsm_doe_transfer()
authorDan Williams <dan.j.williams@intel.com>
Thu, 13 Nov 2025 02:14:40 +0000 (18:14 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 14 Nov 2025 01:05:08 +0000 (17:05 -0800)
Just like pci_tsm_pf0_{con,de}structor(), in the CONFIG_PCI_TSM=n case there
should be no callers of pci_tsm_doe_transfer().

Reported-by: Xu Yilun <yilun.xu@linux.intel.com>
Closes: http://lore.kernel.org/aRFfk14DJWEVhC/R@yilunxu-OptiPlex-7050
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20251113021446.436830-3-dan.j.williams@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
include/linux/pci-tsm.h

index e921d30f9b6cd61571d833f9dc95a98c8261fec6..d7b078d5e2726aef0e5d0636d7aad85e874f0175 100644 (file)
@@ -147,11 +147,5 @@ static inline int pci_tsm_register(struct tsm_dev *tsm_dev)
 static inline void pci_tsm_unregister(struct tsm_dev *tsm_dev)
 {
 }
-static inline int pci_tsm_doe_transfer(struct pci_dev *pdev, u8 type,
-                                      const void *req, size_t req_sz,
-                                      void *resp, size_t resp_sz)
-{
-       return -ENXIO;
-}
 #endif
 #endif /*__PCI_TSM_H */