[PATCH 1/3] cfq-iosched: Mark cfq_clear_cfqq_*() as __maybe_unused

2017-05-26 Thread Matthias Kaehlcke
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

[PATCH 0/3] cfq-iosched: Fix warnings about unused functions

2017-05-26 Thread Matthias Kaehlcke
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

[PATCH 2/3] cfq-iosched: Fix warning about unused dummy functions

2017-05-26 Thread Matthias Kaehlcke
' [-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

[PATCH 3/3] cfq-iosched: Delete unused function min_vdisktime()

2017-05-26 Thread Matthias Kaehlcke
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(-)

[PATCH] block: partitions: mac: Put mac_fix_string() inside #ifdef section

2017-05-19 Thread Matthias Kaehlcke
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

[PATCH] block: partitions: mac: Mark mac_fix_string() as __maybe_unused

2017-05-18 Thread Matthias Kaehlcke
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> ---