From patchwork Fri Dec 6 13:23:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 11276129 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 9DF2E1593 for ; Fri, 6 Dec 2019 13:23:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8463624659 for ; Fri, 6 Dec 2019 13:23:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbfLFNX4 (ORCPT ); Fri, 6 Dec 2019 08:23:56 -0500 Received: from baptiste.telenet-ops.be ([195.130.132.51]:60314 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfLFNX4 (ORCPT ); Fri, 6 Dec 2019 08:23:56 -0500 Received: from ramsan ([84.195.182.253]) by baptiste.telenet-ops.be with bizsmtp id adPu2100G5USYZQ01dPuM7; Fri, 06 Dec 2019 14:23:54 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1idDaM-0006C6-7a; Fri, 06 Dec 2019 14:23:54 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1idDaM-0007Z7-5s; Fri, 06 Dec 2019 14:23:54 +0100 From: Geert Uytterhoeven To: Jens Axboe , Ming Lei , "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] block: Make request_queue.rpm_status an enum Date: Fri, 6 Dec 2019 14:23:50 +0100 Message-Id: <20191206132350.29040-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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... --- 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 397bb9bc230b6349..6419cd9523c370f8 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -466,7 +466,7 @@ struct request_queue { #ifdef CONFIG_PM struct device *dev; - int rpm_status; + enum rpm_status rpm_status; unsigned int nr_pending; #endif