mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 09:09:55 -04:00
wifi: iwlwifi: don't export symbols that we shouldn't
Functions that are not called from the opmodes shouldn't be exported. Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20250723094230.97b80d0d00b3.Ib8abe63c9b25ef1e4ae1bc167cb23fe34bb3682a@changeid
This commit is contained in:
@@ -75,7 +75,6 @@ u32 iwl_read_direct32(struct iwl_trans *trans, u32 reg)
|
||||
/* return as if we have a HW timeout/failure */
|
||||
return 0x5a5a5a5a;
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_read_direct32);
|
||||
|
||||
void iwl_write_direct32(struct iwl_trans *trans, u32 reg, u32 value)
|
||||
{
|
||||
@@ -93,7 +92,6 @@ void iwl_write_direct64(struct iwl_trans *trans, u64 reg, u64 value)
|
||||
iwl_trans_release_nic_access(trans);
|
||||
}
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_write_direct64);
|
||||
|
||||
int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask,
|
||||
int timeout)
|
||||
@@ -109,7 +107,6 @@ int iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask,
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_poll_direct_bit);
|
||||
|
||||
u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs)
|
||||
{
|
||||
@@ -117,14 +114,12 @@ u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs)
|
||||
trace_iwlwifi_dev_ioread_prph32(trans->dev, ofs, val);
|
||||
return val;
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_read_prph_no_grab);
|
||||
|
||||
void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val)
|
||||
{
|
||||
trace_iwlwifi_dev_iowrite_prph32(trans->dev, ofs, val);
|
||||
iwl_trans_write_prph(trans, ofs, val);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_write_prph_no_grab);
|
||||
|
||||
void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val)
|
||||
{
|
||||
@@ -132,7 +127,6 @@ void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val)
|
||||
iwl_write_prph_no_grab(trans, ofs, val & 0xffffffff);
|
||||
iwl_write_prph_no_grab(trans, ofs + 4, val >> 32);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_write_prph64_no_grab);
|
||||
|
||||
u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs)
|
||||
{
|
||||
|
||||
@@ -437,31 +437,26 @@ void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val)
|
||||
{
|
||||
iwl_trans_pcie_write8(trans, ofs, val);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_write8);
|
||||
|
||||
void iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val)
|
||||
{
|
||||
iwl_trans_pcie_write32(trans, ofs, val);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_write32);
|
||||
|
||||
u32 iwl_trans_read32(struct iwl_trans *trans, u32 ofs)
|
||||
{
|
||||
return iwl_trans_pcie_read32(trans, ofs);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_read32);
|
||||
|
||||
u32 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs)
|
||||
{
|
||||
return iwl_trans_pcie_read_prph(trans, ofs);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_read_prph);
|
||||
|
||||
void iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, u32 val)
|
||||
{
|
||||
return iwl_trans_pcie_write_prph(trans, ofs, val);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_write_prph);
|
||||
|
||||
int iwl_trans_read_mem(struct iwl_trans *trans, u32 addr,
|
||||
void *buf, int dwords)
|
||||
@@ -502,7 +497,6 @@ int iwl_trans_sw_reset(struct iwl_trans *trans)
|
||||
{
|
||||
return iwl_trans_pcie_sw_reset(trans, true);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_sw_reset);
|
||||
|
||||
struct iwl_trans_dump_data *
|
||||
iwl_trans_dump_data(struct iwl_trans *trans, u32 dump_mask,
|
||||
@@ -512,7 +506,6 @@ iwl_trans_dump_data(struct iwl_trans *trans, u32 dump_mask,
|
||||
return iwl_trans_pcie_dump_data(trans, dump_mask,
|
||||
sanitize_ops, sanitize_ctx);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_dump_data);
|
||||
|
||||
int iwl_trans_d3_suspend(struct iwl_trans *trans, bool test, bool reset)
|
||||
{
|
||||
@@ -548,20 +541,17 @@ void iwl_trans_interrupts(struct iwl_trans *trans, bool enable)
|
||||
{
|
||||
iwl_trans_pci_interrupts(trans, enable);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_interrupts);
|
||||
|
||||
void iwl_trans_sync_nmi(struct iwl_trans *trans)
|
||||
{
|
||||
iwl_trans_pcie_sync_nmi(trans);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_sync_nmi);
|
||||
|
||||
int iwl_trans_write_imr_mem(struct iwl_trans *trans, u32 dst_addr,
|
||||
u64 src_addr, u32 byte_cnt)
|
||||
{
|
||||
return iwl_trans_pcie_copy_imr(trans, dst_addr, src_addr, byte_cnt);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_write_imr_mem);
|
||||
|
||||
void iwl_trans_set_bits_mask(struct iwl_trans *trans, u32 reg,
|
||||
u32 mask, u32 value)
|
||||
@@ -575,7 +565,6 @@ int iwl_trans_read_config32(struct iwl_trans *trans, u32 ofs,
|
||||
{
|
||||
return iwl_trans_pcie_read_config32(trans, ofs, val);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_read_config32);
|
||||
|
||||
bool _iwl_trans_grab_nic_access(struct iwl_trans *trans)
|
||||
{
|
||||
@@ -771,7 +760,6 @@ void iwl_trans_debugfs_cleanup(struct iwl_trans *trans)
|
||||
{
|
||||
iwl_trans_pcie_debugfs_cleanup(trans);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_debugfs_cleanup);
|
||||
#endif
|
||||
|
||||
void iwl_trans_set_q_ptrs(struct iwl_trans *trans, int queue, int ptr)
|
||||
@@ -809,7 +797,6 @@ int iwl_trans_get_rxq_dma_data(struct iwl_trans *trans, int queue,
|
||||
{
|
||||
return iwl_trans_pcie_rxq_dma_data(trans, queue, data);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_get_rxq_dma_data);
|
||||
|
||||
int iwl_trans_load_pnvm(struct iwl_trans *trans,
|
||||
const struct iwl_pnvm_image *pnvm_data,
|
||||
@@ -824,7 +811,6 @@ void iwl_trans_set_pnvm(struct iwl_trans *trans,
|
||||
{
|
||||
iwl_trans_pcie_ctx_info_v2_set_pnvm(trans, capa);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_set_pnvm);
|
||||
|
||||
int iwl_trans_load_reduce_power(struct iwl_trans *trans,
|
||||
const struct iwl_pnvm_image *payloads,
|
||||
@@ -833,11 +819,9 @@ int iwl_trans_load_reduce_power(struct iwl_trans *trans,
|
||||
return iwl_trans_pcie_ctx_info_v2_load_reduce_power(trans, payloads,
|
||||
capa);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_load_reduce_power);
|
||||
|
||||
void iwl_trans_set_reduce_power(struct iwl_trans *trans,
|
||||
const struct iwl_ucode_capabilities *capa)
|
||||
{
|
||||
iwl_trans_pcie_ctx_info_v2_set_reduce_power(trans, capa);
|
||||
}
|
||||
IWL_EXPORT_SYMBOL(iwl_trans_set_reduce_power);
|
||||
|
||||
Reference in New Issue
Block a user