From patchwork Tue May 5 14:03:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 11529251 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4567A1392 for ; Tue, 5 May 2020 14:08:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 378C220661 for ; Tue, 5 May 2020 14:08:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729332AbgEEOIT (ORCPT ); Tue, 5 May 2020 10:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727857AbgEEOIT (ORCPT ); Tue, 5 May 2020 10:08:19 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42134C061A0F for ; Tue, 5 May 2020 07:08:19 -0700 (PDT) Received: from ramsan ([IPv6:2a02:1810:ac12:ed60:bd97:8453:3b10:1832]) by xavier.telenet-ops.be with bizsmtp id b23G2200M3VwRR30123Gdr; Tue, 05 May 2020 16:03:16 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jVyAG-0000P2-IV; Tue, 05 May 2020 16:03:16 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jVyAG-0007VS-G4; Tue, 05 May 2020 16:03:16 +0200 From: Geert Uytterhoeven To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2] block: Make request_queue.rpm_status an enum Date: Tue, 5 May 2020 16:03:14 +0200 Message-Id: <20200505140314.28813-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org request_queue.rpm_status is assigned values of the rpm_status enum only, so reflect that in its type. Signed-off-by: Geert Uytterhoeven Acked-by: Rafael J. Wysocki --- Perhaps this was done to avoid the need to #include ? Let's see what kbuild has to report about this... v2: - Add Acked-by. --- include/linux/blkdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index f00bd4042295967d..1e2c6f7a188941f1 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -454,7 +454,7 @@ struct request_queue { #ifdef CONFIG_PM struct device *dev; - int rpm_status; + enum rpm_status rpm_status; unsigned int nr_pending; #endif