Skip to content

Commit f247f08

Browse files
Siddharth Guptaandersson
authored andcommitted
remoteproc: core: Export the rproc coredump APIs
The remoteproc coredump APIs are currently only part of the internal remoteproc header. This prevents the remoteproc platform drivers from using these APIs when needed. This change moves the rproc_coredump() and rproc_coredump_cleanup() APIs to the linux header and marks them as exported symbols. Signed-off-by: Siddharth Gupta <[email protected]> Signed-off-by: Gokul krishna Krishnakumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 0ee55c1 commit f247f08

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

drivers/remoteproc/remoteproc_coredump.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ void rproc_coredump_cleanup(struct rproc *rproc)
3232
kfree(entry);
3333
}
3434
}
35+
EXPORT_SYMBOL_GPL(rproc_coredump_cleanup);
3536

3637
/**
3738
* rproc_coredump_add_segment() - add segment of device memory to coredump
@@ -327,6 +328,7 @@ void rproc_coredump(struct rproc *rproc)
327328
*/
328329
wait_for_completion(&dump_state.dump_done);
329330
}
331+
EXPORT_SYMBOL_GPL(rproc_coredump);
330332

331333
/**
332334
* rproc_coredump_using_sections() - perform coredump using section headers

drivers/remoteproc/remoteproc_internal.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ extern struct class rproc_class;
7676
int rproc_init_sysfs(void);
7777
void rproc_exit_sysfs(void);
7878

79-
/* from remoteproc_coredump.c */
80-
void rproc_coredump_cleanup(struct rproc *rproc);
81-
void rproc_coredump(struct rproc *rproc);
82-
8379
#ifdef CONFIG_REMOTEPROC_CDEV
8480
void rproc_init_cdev(void);
8581
void rproc_exit_cdev(void);

include/linux/remoteproc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,10 @@ int rproc_detach(struct rproc *rproc);
690690
int rproc_set_firmware(struct rproc *rproc, const char *fw_name);
691691
void rproc_report_crash(struct rproc *rproc, enum rproc_crash_type type);
692692
void *rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *is_iomem);
693+
694+
/* from remoteproc_coredump.c */
695+
void rproc_coredump_cleanup(struct rproc *rproc);
696+
void rproc_coredump(struct rproc *rproc);
693697
void rproc_coredump_using_sections(struct rproc *rproc);
694698
int rproc_coredump_add_segment(struct rproc *rproc, dma_addr_t da, size_t size);
695699
int rproc_coredump_add_custom_segment(struct rproc *rproc,

0 commit comments

Comments
 (0)