linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Arnd Bergmann <arnd@arndb.de>,
	linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] block: Add default switch case to blk_pm_allow_request() to kill warning
Date: Fri, 6 Jul 2018 09:09:31 -0600	[thread overview]
Message-ID: <a02df37d-7d27-98e5-1a04-2976c9354e1b@kernel.dk> (raw)
In-Reply-To: <20180706084935.30359-1-geert+renesas@glider.be>

On 7/6/18 2:49 AM, Geert Uytterhoeven wrote:
> With gcc 4.9.0 and 7.3.0:
> 
>     block/blk-core.c: In function 'blk_pm_allow_request':
>     block/blk-core.c:2747:2: warning: enumeration value 'RPM_ACTIVE' not handled in switch [-Wswitch]
>       switch (rq->q->rpm_status) {
>       ^
> 
> Convert the return statement below the switch() block into a default
> case to fix this.

Applied, thanks.

-- 
Jens Axboe


      reply	other threads:[~2018-07-06 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06  8:49 [PATCH v3] block: Add default switch case to blk_pm_allow_request() to kill warning Geert Uytterhoeven
2018-07-06 15:09 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a02df37d-7d27-98e5-1a04-2976c9354e1b@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=arnd@arndb.de \
    --cc=geert+renesas@glider.be \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).