mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
cuda/pmu: Make find_via_cuda/pmu init functions
Make `find_via_cuda` and `find_via_pmu` initialization functions. Previously, their definitions in `drivers/macintosh/via-cuda.h` include the `__init` attribute but their alternative definitions in `arch/powerpc/powermac/sectup./c` and prototypes in `include/linux/ cuda.h` and `include/linux/pmu.h` do not use the `__init` macro. Since, only initialization functions call `find_via_cuda` and `find_via_pmu` it is safe to label these functions with `__init`. Signed-off-by: Nick Child <nick.child@ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211216220035.605465-21-nick.child@ibm.com
This commit is contained in:
parent
2493a24271
commit
7da1d1ddd1
3 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@
|
|||
#include <uapi/linux/cuda.h>
|
||||
|
||||
|
||||
extern int find_via_cuda(void);
|
||||
extern int __init find_via_cuda(void);
|
||||
extern int cuda_request(struct adb_request *req,
|
||||
void (*done)(struct adb_request *), int nbytes, ...);
|
||||
extern void cuda_poll(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue