aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorNick Child <[email protected]>2021-12-16 22:00:35 +0000
committerMichael Ellerman <[email protected]>2021-12-23 11:35:00 +0000
commit7da1d1ddd1f02e5de7497a0c849256912652fb6c (patch)
tree6ceaf8d9d8b4d8aec69cf7e5886e3efacb056753 /arch/powerpc/lib/code-patching.c
parentpowerpc/512x: Add __init attribute to eligible functions (diff)
downloadkernel-7da1d1ddd1f02e5de7497a0c849256912652fb6c.tar.gz
kernel-7da1d1ddd1f02e5de7497a0c849256912652fb6c.zip
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions