Message ID | 20180706084935.30359-1-geert+renesas@glider.be (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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.
diff --git a/block/blk-core.c b/block/blk-core.c index f84a9b7b6f5aa167..40e495073bdeec32 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -2750,9 +2750,9 @@ static bool blk_pm_allow_request(struct request *rq) return rq->rq_flags & RQF_PM; case RPM_SUSPENDED: return false; + default: + return true; } - - return true; } #else static bool blk_pm_allow_request(struct request *rq)