Skip to content

Commit 76e94ca

Browse files
committed
llext: remove superfluous symbol exports
I've checked all the external symbols in currently built LLEXT modules and probe and compared them to all the exported symbols. This commit removes most of needlessly exported symbols, except mathematics functions. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 77790ce commit 76e94ca

File tree

8 files changed

+0
-36
lines changed

8 files changed

+0
-36
lines changed

src/audio/component.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ int comp_register(struct comp_driver_info *drv)
5353

5454
return 0;
5555
}
56-
EXPORT_SYMBOL(comp_register);
5756

5857
void comp_unregister(struct comp_driver_info *drv)
5958
{

src/audio/drc/drc_log.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@
1010
SOF_DEFINE_REG_UUID(drc);
1111
LOG_MODULE_REGISTER(drc, CONFIG_SOF_LOG_LEVEL);
1212
DECLARE_TR_CTX(drc_tr, SOF_UUID(drc_uuid), LOG_LEVEL_INFO);
13-
EXPORT_SYMBOL(drc_tr);
14-
EXPORT_SYMBOL(drc_uuid);
1513
EXPORT_SYMBOL(log_const_drc);

src/audio/module_adapter/module/generic.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,6 @@ void mod_free_all(struct processing_module *mod)
714714
/* Make sure resource lists and accounting are reset */
715715
mod_resource_init(mod);
716716
}
717-
EXPORT_SYMBOL(mod_free_all);
718717

719718
int module_free(struct processing_module *mod)
720719
{
@@ -950,4 +949,3 @@ uint32_t module_get_deadline(struct processing_module *mod)
950949

951950
return deadline;
952951
}
953-
EXPORT_SYMBOL(module_get_deadline);

src/audio/module_adapter/module_adapter.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#endif
3131
#include <rtos/interrupt.h>
3232
#include <rtos/kernel.h>
33-
#include <rtos/symbol.h>
3433
#include <limits.h>
3534
#include <stdint.h>
3635

@@ -339,7 +338,6 @@ struct comp_dev *module_adapter_new_ext(const struct comp_driver *drv,
339338

340339
return NULL;
341340
}
342-
EXPORT_SYMBOL(module_adapter_new);
343341

344342
#if CONFIG_ZEPHYR_DP_SCHEDULER
345343
static void module_adapter_calculate_dp_period(struct comp_dev *dev)
@@ -685,7 +683,6 @@ int module_adapter_prepare(struct comp_dev *dev)
685683
mod->input_buffers = NULL;
686684
return ret;
687685
}
688-
EXPORT_SYMBOL(module_adapter_prepare);
689686

690687
int module_adapter_params(struct comp_dev *dev, struct sof_ipc_stream_params *params)
691688
{
@@ -725,7 +722,6 @@ int module_adapter_params(struct comp_dev *dev, struct sof_ipc_stream_params *pa
725722

726723
return 0;
727724
}
728-
EXPORT_SYMBOL(module_adapter_params);
729725

730726
/*
731727
* Function to copy from source buffer to the module buffer
@@ -1340,7 +1336,6 @@ int module_adapter_copy(struct comp_dev *dev)
13401336
comp_err(dev, "unknown processing_data_type");
13411337
return -EINVAL;
13421338
}
1343-
EXPORT_SYMBOL(module_adapter_copy);
13441339

13451340
int module_adapter_trigger(struct comp_dev *dev, int cmd)
13461341
{
@@ -1378,7 +1373,6 @@ int module_adapter_trigger(struct comp_dev *dev, int cmd)
13781373

13791374
return module_adapter_set_state(mod, dev, cmd);
13801375
}
1381-
EXPORT_SYMBOL(module_adapter_trigger);
13821376

13831377
int module_adapter_reset(struct comp_dev *dev)
13841378
{
@@ -1426,7 +1420,6 @@ int module_adapter_reset(struct comp_dev *dev)
14261420

14271421
return comp_set_state(dev, COMP_TRIGGER_RESET);
14281422
}
1429-
EXPORT_SYMBOL(module_adapter_reset);
14301423

14311424
void module_adapter_free(struct comp_dev *dev)
14321425
{
@@ -1469,7 +1462,6 @@ void module_adapter_free(struct comp_dev *dev)
14691462

14701463
module_adapter_mem_free(mod);
14711464
}
1472-
EXPORT_SYMBOL(module_adapter_free);
14731465

14741466
size_t module_adapter_heap_usage(struct processing_module *mod, size_t *hwm)
14751467
{
@@ -1480,7 +1472,6 @@ size_t module_adapter_heap_usage(struct processing_module *mod, size_t *hwm)
14801472

14811473
return res->heap_usage;
14821474
}
1483-
EXPORT_SYMBOL(module_adapter_heap_usage);
14841475

14851476
/*
14861477
* \brief Get DAI hw params
@@ -1503,7 +1494,6 @@ int module_adapter_get_hw_params(struct comp_dev *dev, struct sof_ipc_stream_par
15031494

15041495
return -EOPNOTSUPP;
15051496
}
1506-
EXPORT_SYMBOL(module_adapter_get_hw_params);
15071497

15081498
/*
15091499
* \brief Get stream position
@@ -1524,7 +1514,6 @@ int module_adapter_position(struct comp_dev *dev, struct sof_ipc_stream_posn *po
15241514

15251515
return -EOPNOTSUPP;
15261516
}
1527-
EXPORT_SYMBOL(module_adapter_position);
15281517

15291518
/*
15301519
* \brief DAI timestamp configure
@@ -1544,7 +1533,6 @@ int module_adapter_ts_config_op(struct comp_dev *dev)
15441533

15451534
return -EOPNOTSUPP;
15461535
}
1547-
EXPORT_SYMBOL(module_adapter_ts_config_op);
15481536

15491537
/*
15501538
* \brief DAI timestamp start
@@ -1564,7 +1552,6 @@ int module_adapter_ts_start_op(struct comp_dev *dev)
15641552

15651553
return -EOPNOTSUPP;
15661554
}
1567-
EXPORT_SYMBOL(module_adapter_ts_start_op);
15681555

15691556
/*
15701557
* \brief DAI timestamp stop
@@ -1584,7 +1571,6 @@ int module_adapter_ts_stop_op(struct comp_dev *dev)
15841571

15851572
return -EOPNOTSUPP;
15861573
}
1587-
EXPORT_SYMBOL(module_adapter_ts_stop_op);
15881574

15891575
/*
15901576
* \brief Get DAI timestamp
@@ -1609,4 +1595,3 @@ int module_adapter_ts_get_op(struct comp_dev *dev, struct timestamp_data *tsd)
16091595

16101596
return -EOPNOTSUPP;
16111597
}
1612-
EXPORT_SYMBOL(module_adapter_ts_get_op);

src/audio/module_adapter/module_adapter_ipc4.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ int module_set_large_config(struct comp_dev *dev, uint32_t param_id, bool first_
211211
NULL, 0);
212212
return 0;
213213
}
214-
EXPORT_SYMBOL(module_set_large_config);
215214

216215
int module_get_large_config(struct comp_dev *dev, uint32_t param_id, bool first_block,
217216
bool last_block, uint32_t *data_offset_size, char *data)
@@ -243,7 +242,6 @@ int module_get_large_config(struct comp_dev *dev, uint32_t param_id, bool first_
243242
*/
244243
return -EIO;
245244
}
246-
EXPORT_SYMBOL(module_get_large_config);
247245

248246
int module_adapter_get_attribute(struct comp_dev *dev, uint32_t type, void *value)
249247
{
@@ -265,7 +263,6 @@ int module_adapter_get_attribute(struct comp_dev *dev, uint32_t type, void *valu
265263

266264
return 0;
267265
}
268-
EXPORT_SYMBOL(module_adapter_get_attribute);
269266

270267
int module_adapter_set_attribute(struct comp_dev *dev, uint32_t type, void *value)
271268
{
@@ -283,7 +280,6 @@ int module_adapter_set_attribute(struct comp_dev *dev, uint32_t type, void *valu
283280

284281
return 0;
285282
}
286-
EXPORT_SYMBOL(module_adapter_set_attribute);
287283

288284
static bool module_adapter_multi_sink_source_prepare(struct comp_dev *dev)
289285
{
@@ -368,7 +364,6 @@ int module_adapter_bind(struct comp_dev *dev, struct bind_info *bind_data)
368364

369365
return 0;
370366
}
371-
EXPORT_SYMBOL(module_adapter_bind);
372367

373368
int module_adapter_unbind(struct comp_dev *dev, struct bind_info *unbind_data)
374369
{
@@ -383,7 +378,6 @@ int module_adapter_unbind(struct comp_dev *dev, struct bind_info *unbind_data)
383378

384379
return 0;
385380
}
386-
EXPORT_SYMBOL(module_adapter_unbind);
387381

388382
uint64_t module_adapter_get_total_data_processed(struct comp_dev *dev,
389383
uint32_t stream_no, bool input)
@@ -399,7 +393,6 @@ uint64_t module_adapter_get_total_data_processed(struct comp_dev *dev,
399393
else
400394
return mod->total_data_consumed;
401395
}
402-
EXPORT_SYMBOL(module_adapter_get_total_data_processed);
403396

404397
int module_adapter_sink_src_prepare(struct comp_dev *dev)
405398
{

src/debug/debug_stream/debug_stream_text_msg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,3 @@ void ds_msg(const char *format, ...)
3333
sizeof(buf.msg.hdr.data[0]));
3434
debug_stream_slot_send_record(&buf.msg.hdr);
3535
}
36-
EXPORT_SYMBOL(ds_msg);
37-

src/ipc/ipc4/helper.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,6 @@ void ipc4_audio_format_to_stream_params(const struct ipc4_audio_format *audio_fm
13341334
for (i = 0; i < SOF_IPC_MAX_CHANNELS; i++)
13351335
params->chmap[i] = (audio_fmt->ch_map >> i * 4) & 0xf;
13361336
}
1337-
EXPORT_SYMBOL(ipc4_audio_format_to_stream_params);
13381337

13391338
void ipc4_base_module_cfg_to_stream_params(const struct ipc4_base_module_cfg *base_cfg,
13401339
struct sof_ipc_stream_params *params)

src/lib/dma.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <sof/lib/memory.h>
1818
#include <sof/lib/uuid.h>
1919
#include <rtos/spinlock.h>
20-
#include <rtos/symbol.h>
2120
#include <sof/trace/trace.h>
2221
#include <ipc/topology.h>
2322
#include <user/trace.h>
@@ -168,8 +167,6 @@ static int dma_init(struct sof_dma *dma)
168167

169168
return 0;
170169
}
171-
EXPORT_SYMBOL(z_impl_sof_dma_get);
172-
EXPORT_SYMBOL(z_impl_sof_dma_put);
173170
#else
174171
struct dma *dma_get(uint32_t dir, uint32_t cap, uint32_t dev, uint32_t flags)
175172
{
@@ -286,8 +283,6 @@ void dma_put(struct dma *dma)
286283
dma, dma->sref);
287284
k_spin_unlock(&dma->lock, key);
288285
}
289-
EXPORT_SYMBOL(dma_get);
290-
EXPORT_SYMBOL(dma_put);
291286
#endif
292287

293288
int dma_sg_alloc(struct dma_sg_elem_array *elem_array,
@@ -329,7 +324,6 @@ void dma_sg_free(struct dma_sg_elem_array *elem_array)
329324
rfree(elem_array->elems);
330325
dma_sg_init(elem_array);
331326
}
332-
EXPORT_SYMBOL(dma_sg_free);
333327

334328
int dma_buffer_copy_from(struct comp_buffer *source,
335329
struct comp_buffer *sink,

0 commit comments

Comments
 (0)