From patchwork Sun Nov 6 19:34:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 16170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1644502wru; Sun, 6 Nov 2022 11:36:53 -0800 (PST) X-Google-Smtp-Source: AMsMyM5dqwXOBQGHlQ7pOikGDSH+tNvHCvySgvK2ZEeciOKV/Wj5/ZutXdoASNEJabT6Hx7Uq09m X-Received: by 2002:a17:90a:e7ce:b0:213:589b:cdaf with SMTP id kb14-20020a17090ae7ce00b00213589bcdafmr62496722pjb.186.1667763413026; Sun, 06 Nov 2022 11:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667763413; cv=none; d=google.com; s=arc-20160816; b=lijl5puKThlk1GRupaxTAo2qxefzglQVPqAeAoG1gid9IlT7uCArtpWAHaNJNh2lSb Au1GC5ddrljyZRPIM+yr5EvvK8uaISZn6poJkNlOflCnWrMo1HLobPE+pC9vJcD3SNZr VGZj8wL0iiTAtqG3YcdEa3rzxzn5T7ukS/QuIzA/lvRCRCbVRv0Hg/4Qmw8LT8zaxGOg gJzkfIPWo82RBxdv/ClRM6svTLOA92TfV+kmslUbgEO8LG+HPHJnucGTn409LpDJXVpp rjvBXWy021HNhFTPbxHXQOMEWlKP81aDjqmUlKb1YRDwmgKKFQnHATQFzObs6DP7JJlT zLrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cxp+DcIQqTvBJ/QvcPCo/H833Jvpv/7tb5j8vwnxcZs=; b=KIZf0fzwtwc1HmeZQDLlmV9mvI1nm5fg2MVkKPtK8BsZHB/5Mdtu2f/TKkaUglZFg3 cMBBxviK2w7IORKzNb0zFZbAz2Nvr8wz9tFPB9XGBAKjJrbcnCxUZ7V80JiypMuQjOrI x6avXHSxsKkHVTG8ACCMsytgOUya6f8MIcpMv/QSq8wdgrpnwMRl1FYg73+vKMsCRanh uf1IxMNrHfkdE5jEfqJY2lThy/giYQ71vy5/W8FwuQJWW1PNrJ/+1cxtv1cXzIE3XDHd W3d+4/l01vc/eoftG5Ix5m3wOKLp+/Yz36KGjGFYI4KAMYPv8Pu0VlvtqbCumDkzPk4l 5C2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a170902f54600b00186bb4a081csi9708304plf.393.2022.11.06.11.36.39; Sun, 06 Nov 2022 11:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230112AbiKFTed (ORCPT + 99 others); Sun, 6 Nov 2022 14:34:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbiKFTe0 (ORCPT ); Sun, 6 Nov 2022 14:34:26 -0500 Received: from smtp.smtpout.orange.fr (smtp-16.smtpout.orange.fr [80.12.242.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 375B9E095 for ; Sun, 6 Nov 2022 11:34:24 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id rlPRo1bQcsfCIrlPRomc2E; Sun, 06 Nov 2022 20:34:22 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 06 Nov 2022 20:34:22 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Jean Delvare , Guenter Roeck Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-hwmon@vger.kernel.org Subject: [PATCH v2] hwmon: Include when appropriate Date: Sun, 6 Nov 2022 20:34:16 +0100 Message-Id: <51688cf50bda44e2731381a31287c62319388783.1667763218.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748776688970363234?= X-GMAIL-MSGID: =?utf-8?q?1748776688970363234?= The kstrto() functions have been moved from kernel.h to kstrtox.h. So, include the latter directly in the appropriate files. Signed-off-by: Christophe JAILLET --- The goal of this patch is to eventually remove from . This patch is needed to avoid indirect inclusion, via , in fschmd.c, ftsteutates.c and w83793.c. Changes in v2: - Include in so that much less drivers need to be updated [Guenter Roeck] v1: https://lore.kernel.org/all/0e819645f8d607f7b4550c8aaf4a563b1404bf40.1667730675.git.christophe.jaillet@wanadoo.fr/ --- drivers/hwmon/atxp1.c | 1 + drivers/hwmon/gpio-fan.c | 1 + drivers/hwmon/hwmon.c | 1 + drivers/hwmon/lm90.c | 1 + drivers/hwmon/mr75203.c | 1 + drivers/hwmon/pcf8591.c | 1 + drivers/hwmon/pmbus/q54sj108a2.c | 1 + include/linux/hwmon-sysfs.h | 1 + 8 files changed, 8 insertions(+) diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c index 4fd8de8022bc..118297ea1dcf 100644 --- a/drivers/hwmon/atxp1.c +++ b/drivers/hwmon/atxp1.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c index ba408942dbe7..e75db6f64e8c 100644 --- a/drivers/hwmon/gpio-fan.c +++ b/drivers/hwmon/gpio-fan.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index 4218750d5a66..33edb5c02f7d 100644 --- a/drivers/hwmon/hwmon.c +++ b/drivers/hwmon/hwmon.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c index a3f95ba00dbf..6498d5acf705 100644 --- a/drivers/hwmon/lm90.c +++ b/drivers/hwmon/lm90.c @@ -103,6 +103,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/hwmon/mr75203.c b/drivers/hwmon/mr75203.c index 394a4c7e46ab..50a8b9c3f94d 100644 --- a/drivers/hwmon/mr75203.c +++ b/drivers/hwmon/mr75203.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/hwmon/pcf8591.c b/drivers/hwmon/pcf8591.c index af9614e918a4..1dbe209ae13f 100644 --- a/drivers/hwmon/pcf8591.c +++ b/drivers/hwmon/pcf8591.c @@ -14,6 +14,7 @@ #include #include #include +#include /* Insmod parameters */ diff --git a/drivers/hwmon/pmbus/q54sj108a2.c b/drivers/hwmon/pmbus/q54sj108a2.c index fa298b4265a1..d3ba12951324 100644 --- a/drivers/hwmon/pmbus/q54sj108a2.c +++ b/drivers/hwmon/pmbus/q54sj108a2.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include "pmbus.h" diff --git a/include/linux/hwmon-sysfs.h b/include/linux/hwmon-sysfs.h index cb26d02f52f3..d896713359cd 100644 --- a/include/linux/hwmon-sysfs.h +++ b/include/linux/hwmon-sysfs.h @@ -8,6 +8,7 @@ #define _LINUX_HWMON_SYSFS_H #include +#include struct sensor_device_attribute{ struct device_attribute dev_attr;