This fixes the following warning when building with clang:
block/cfq-iosched.c:449:1: error: unused function 'cfq_clear_cfqq_sync'
[-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <m...@chromium.org>
---
block/cfq-iosched.c | 3 ++-
1 file changed, 2 insertions
This patch series fixes a bunch of 'unused-function' warnings raised by
clang.
Matthias Kaehlcke (3):
cfq-iosched: Mark cfq_clear_cfqq_*() as __maybe_unused
cfq-iosched: Fix warning about unused dummy functions
cfq-iosched: Delete unused function min_vdisktime()
block/cfq-iosched.c | 14
' [-Werror,-Wunused-function]
block/cfq-iosched.c:590:20: error: unused function
'cfqg_stats_end_empty_time' [-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <m...@chromium.org>
---
block/cfq-iosched.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/block/cfq-iosch
This fixes the following warning when building with clang:
block/cfq-iosched.c:970:19: error: unused function 'min_vdisktime'
[-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <m...@chromium.org>
---
block/cfq-iosched.c | 9 -
1 file changed, 9 deletions(-)
The function is only used when CONFIG_PPC_PMAC=y, put it inside the
existing #ifdef section. This fixes the following warning when building
with clang:
block/partitions/mac.c:22:20: error: unused function 'mac_fix_string'
[-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke &l
The function is only used when CONFIG_PPC_PMAC=y. Adding the attribute
fixes the following warning when building with clang:
block/partitions/mac.c:22:20: error: unused function 'mac_fix_string'
[-Werror,-Wunused-function]
Signed-off-by: Matthias Kaehlcke <m...@chromium.org>
---