Skip to content

Commit d355bb2

Browse files
committed
PCI/ATS: Remove unnecessary EXPORT_SYMBOL_GPL()
The following functions are only used by the PCI core or by IOMMU drivers that cannot be modular, so there's no need to export them at all: pci_enable_ats() pci_disable_ats() pci_restore_ats_state() pci_ats_queue_depth() pci_ats_page_aligned() pci_enable_pri() pci_restore_pri_state() pci_reset_pri() pci_prg_resp_pasid_required() pci_enable_pasid() pci_disable_pasid() pci_restore_pasid_state() pci_pasid_features() pci_max_pasids() Remove the unnecessary EXPORT_SYMBOL_GPL()s. Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Joerg Roedel <[email protected]>
1 parent c6e9aef commit d355bb2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/pci/ats.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ int pci_enable_ats(struct pci_dev *dev, int ps)
6969
dev->ats_enabled = 1;
7070
return 0;
7171
}
72-
EXPORT_SYMBOL_GPL(pci_enable_ats);
7372

7473
/**
7574
* pci_disable_ats - disable the ATS capability
@@ -88,7 +87,6 @@ void pci_disable_ats(struct pci_dev *dev)
8887

8988
dev->ats_enabled = 0;
9089
}
91-
EXPORT_SYMBOL_GPL(pci_disable_ats);
9290

9391
void pci_restore_ats_state(struct pci_dev *dev)
9492
{
@@ -102,7 +100,6 @@ void pci_restore_ats_state(struct pci_dev *dev)
102100
ctrl |= PCI_ATS_CTRL_STU(dev->ats_stu - PCI_ATS_MIN_STU);
103101
pci_write_config_word(dev, dev->ats_cap + PCI_ATS_CTRL, ctrl);
104102
}
105-
EXPORT_SYMBOL_GPL(pci_restore_ats_state);
106103

107104
/**
108105
* pci_ats_queue_depth - query the ATS Invalidate Queue Depth
@@ -129,7 +126,6 @@ int pci_ats_queue_depth(struct pci_dev *dev)
129126
pci_read_config_word(dev, dev->ats_cap + PCI_ATS_CAP, &cap);
130127
return PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) : PCI_ATS_MAX_QDEP;
131128
}
132-
EXPORT_SYMBOL_GPL(pci_ats_queue_depth);
133129

134130
/**
135131
* pci_ats_page_aligned - Return Page Aligned Request bit status.
@@ -156,7 +152,6 @@ int pci_ats_page_aligned(struct pci_dev *pdev)
156152

157153
return 0;
158154
}
159-
EXPORT_SYMBOL_GPL(pci_ats_page_aligned);
160155

161156
#ifdef CONFIG_PCI_PRI
162157
void pci_pri_init(struct pci_dev *pdev)
@@ -218,7 +213,6 @@ int pci_enable_pri(struct pci_dev *pdev, u32 reqs)
218213

219214
return 0;
220215
}
221-
EXPORT_SYMBOL_GPL(pci_enable_pri);
222216

223217
/**
224218
* pci_disable_pri - Disable PRI capability
@@ -271,7 +265,6 @@ void pci_restore_pri_state(struct pci_dev *pdev)
271265
pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs);
272266
pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control);
273267
}
274-
EXPORT_SYMBOL_GPL(pci_restore_pri_state);
275268

276269
/**
277270
* pci_reset_pri - Resets device's PRI state
@@ -299,7 +292,6 @@ int pci_reset_pri(struct pci_dev *pdev)
299292

300293
return 0;
301294
}
302-
EXPORT_SYMBOL_GPL(pci_reset_pri);
303295

304296
/**
305297
* pci_prg_resp_pasid_required - Return PRG Response PASID Required bit
@@ -315,7 +307,6 @@ int pci_prg_resp_pasid_required(struct pci_dev *pdev)
315307

316308
return pdev->pasid_required;
317309
}
318-
EXPORT_SYMBOL_GPL(pci_prg_resp_pasid_required);
319310
#endif /* CONFIG_PCI_PRI */
320311

321312
#ifdef CONFIG_PCI_PASID
@@ -373,7 +364,6 @@ int pci_enable_pasid(struct pci_dev *pdev, int features)
373364

374365
return 0;
375366
}
376-
EXPORT_SYMBOL_GPL(pci_enable_pasid);
377367

378368
/**
379369
* pci_disable_pasid - Disable the PASID capability
@@ -398,7 +388,6 @@ void pci_disable_pasid(struct pci_dev *pdev)
398388

399389
pdev->pasid_enabled = 0;
400390
}
401-
EXPORT_SYMBOL_GPL(pci_disable_pasid);
402391

403392
/**
404393
* pci_restore_pasid_state - Restore PASID capabilities
@@ -421,7 +410,6 @@ void pci_restore_pasid_state(struct pci_dev *pdev)
421410
control = PCI_PASID_CTRL_ENABLE | pdev->pasid_features;
422411
pci_write_config_word(pdev, pasid + PCI_PASID_CTRL, control);
423412
}
424-
EXPORT_SYMBOL_GPL(pci_restore_pasid_state);
425413

426414
/**
427415
* pci_pasid_features - Check which PASID features are supported
@@ -450,7 +438,6 @@ int pci_pasid_features(struct pci_dev *pdev)
450438

451439
return supported;
452440
}
453-
EXPORT_SYMBOL_GPL(pci_pasid_features);
454441

455442
#define PASID_NUMBER_SHIFT 8
456443
#define PASID_NUMBER_MASK (0x1f << PASID_NUMBER_SHIFT)
@@ -478,5 +465,4 @@ int pci_max_pasids(struct pci_dev *pdev)
478465

479466
return (1 << supported);
480467
}
481-
EXPORT_SYMBOL_GPL(pci_max_pasids);
482468
#endif /* CONFIG_PCI_PASID */

0 commit comments

Comments
 (0)