coresight: remove broken __exit annotations
Functions that are annotated __exit are discarded for built-in drivers, but the .remove callback in a device driver must still be kept around to allow bind/unbind operations. There is now a linker warning for the discarded symbol references: `tmc_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-tmc-core.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-tmc-core.o `tpiu_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-tpiu.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-tpiu.o `etb_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-etb10.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-etb10.o `static_funnel_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-funnel.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-funnel.o `dynamic_funnel_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-funnel.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-funnel.o `static_replicator_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-replicator.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-replicator.o `dynamic_replicator_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-replicator.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-replicator.o `catu_remove' referenced in section `.data' of drivers/hwtracing/coresight/coresight-catu.o: defined in discarded section `.exit.text' of drivers/hwtracing/coresight/coresight-catu.o Remove all those annotations. Fixes: 8b0cf826 ("coresight: stm: Allow to build coresight-stm as a module") Reviewed-by:Stephen Boyd <swboyd@chromium.org> Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Mathieu Poirier <mathieu.poirier@linaro.org> Link: https://lore.kernel.org/r/20201208182651.1597945-3-mathieu.poirier@linaro.org Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/hwtracing/coresight/coresight-catu.c 1 addition, 1 deletiondrivers/hwtracing/coresight/coresight-catu.c
- drivers/hwtracing/coresight/coresight-cti-core.c 1 addition, 1 deletiondrivers/hwtracing/coresight/coresight-cti-core.c
- drivers/hwtracing/coresight/coresight-etb10.c 1 addition, 1 deletiondrivers/hwtracing/coresight/coresight-etb10.c
- drivers/hwtracing/coresight/coresight-etm3x-core.c 2 additions, 2 deletionsdrivers/hwtracing/coresight/coresight-etm3x-core.c
- drivers/hwtracing/coresight/coresight-etm4x-core.c 2 additions, 2 deletionsdrivers/hwtracing/coresight/coresight-etm4x-core.c
- drivers/hwtracing/coresight/coresight-funnel.c 3 additions, 3 deletionsdrivers/hwtracing/coresight/coresight-funnel.c
- drivers/hwtracing/coresight/coresight-replicator.c 3 additions, 3 deletionsdrivers/hwtracing/coresight/coresight-replicator.c
- drivers/hwtracing/coresight/coresight-stm.c 1 addition, 1 deletiondrivers/hwtracing/coresight/coresight-stm.c
- drivers/hwtracing/coresight/coresight-tmc-core.c 1 addition, 1 deletiondrivers/hwtracing/coresight/coresight-tmc-core.c
- drivers/hwtracing/coresight/coresight-tpiu.c 1 addition, 1 deletiondrivers/hwtracing/coresight/coresight-tpiu.c
Loading
Please register or sign in to comment