diff options
author | Geert Uytterhoeven <[email protected]> | 2018-07-06 10:49:35 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2018-07-09 09:07:54 -0600 |
commit | e9a83853302b339e63dea4072f6210e5a88ab4bb (patch) | |
tree | b7994b3b7bbbe34f2d76ec4f055db9ebf0fd85f7 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | b88aef36b87c9787a4db724923ec4f57dfd513f3 (diff) |
block: Add default switch case to blk_pm_allow_request() to kill warning
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.
Fixes: e4f36b249b4d4e75 ("block: fix peeking requests during PM")
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions