Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1651684

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

From Matthias Kaehlcke <mka@chromium.org>
Newsgroups linux.kernel
Subject [PATCH 1/3] cfq-iosched: Mark cfq_clear_cfqq_*() as __maybe_unused
Date 2017-05-27 03:30 +0200
Message-ID <tLyIn-4Vw-169@gated-at.bofh.it> (permalink)
References <tLyIi-4Vw-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <mka@chromium.org>
---
 block/cfq-iosched.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index da69b079725f..36ab3645effc 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -431,7 +431,8 @@ static inline void cfq_mark_cfqq_##name(struct cfq_queue *cfqq)		\
 {									\
 	(cfqq)->flags |= (1 << CFQ_CFQQ_FLAG_##name);			\
 }									\
-static inline void cfq_clear_cfqq_##name(struct cfq_queue *cfqq)	\
+static inline void __maybe_unused					\
+cfq_clear_cfqq_##name(struct cfq_queue *cfqq)				\
 {									\
 	(cfqq)->flags &= ~(1 << CFQ_CFQQ_FLAG_##name);			\
 }									\
-- 
2.13.0.219.gdb65acc882-goog

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] cfq-iosched: Fix warnings about unused functions Matthias Kaehlcke <mka@chromium.org> - 2017-05-27 03:30 +0200
  [PATCH 3/3] cfq-iosched: Delete unused function min_vdisktime() Matthias Kaehlcke <mka@chromium.org> - 2017-05-27 03:30 +0200
    Re: [PATCH 3/3] cfq-iosched: Delete unused function min_vdisktime() Jens Axboe <axboe@kernel.dk> - 2017-05-30 18:00 +0200
  [PATCH 1/3] cfq-iosched: Mark cfq_clear_cfqq_*() as __maybe_unused Matthias Kaehlcke <mka@chromium.org> - 2017-05-27 03:30 +0200
    Re: [PATCH 1/3] cfq-iosched: Mark cfq_clear_cfqq_*() as  __maybe_unused Christoph Hellwig <hch@infradead.org> - 2017-05-28 10:00 +0200
      Re: [PATCH 1/3] cfq-iosched: Mark cfq_clear_cfqq_*() as __maybe_unused Doug Anderson <dianders@chromium.org> - 2017-05-30 18:30 +0200

csiph-web