From patchwork Sun Nov 6 08:00:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 16085 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1381502wru; Sun, 6 Nov 2022 01:03:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6bP5QSKcXtaucMcfNlWttn5JwIbNS7wuo4j1KwFXXqTEuIr5fo/JmSmvOohfPXCFygJlNo X-Received: by 2002:a62:1641:0:b0:56b:aa17:bcba with SMTP id 62-20020a621641000000b0056baa17bcbamr43616562pfw.26.1667721813968; Sun, 06 Nov 2022 01:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667721813; cv=none; d=google.com; s=arc-20160816; b=TadlB19HjX6kiFXdkEXiYwYDf9VIJZIHb5Ll5JRcanFORhw/bL9l7uPmiNZqQSSaB0 uC9hwi0U+MQRT3HtCKjd1fJgy9d7RPwAMyjqOSHAP7ULcLRVa89Ozf17arcUBinMtwDE b9MRbayarqN0tXJV+3ubLG8xxGAQrDyIT+VAiQLrmOTwNynB9QJrBEeXTH+gcfqko1tw qQMmY70/7/A79OCZOKMn6US7Eu0YMdeWkQE/0aqSLqDsCNQzov+NdwMy6VknJ12cnrAm C2ilmmR2jD8AUbaSCtWXG8xNIDJJ2lds0cvG7c0TfYFh8iC16psQSlfJGlQSTRNmJc2k pa9w== 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=v5Kshq8EOZ8R2Ego87LhSzIWXli5SBLe0+/P/8eocZc=; b=M4hn+X6XITknoJajXkF5094jFBvVIWhFXyNgbAyjLcSs9pPKeUPWcmZqh/JDUPneQg s2lj7wdKRY7j8eEY+2jqWpjqCfTOzmKL4UbaB2s8cIM6i5TUd/0KuS5wJt6vtu5m/kOl rni9hib3xGG1fda4Qr2X78IqcDI9PSSoypPQiIOmzjnOCr7arEJW4cU0kZChDRm5pp4k ebpuDEXJhRgurMH+Qd54AWzBvejroRqhIEEHbARHUv7tyEglC/TKXtR4fyYn5DQfmzE/ kyIky2It/kQK+d5GVYmNCbxbs3jqZUT4nSXzC2O2RO8xuGnndz23DGuiOVVfB62oQDS9 9CaQ== 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 j20-20020aa78014000000b00563a93471c5si4559111pfi.101.2022.11.06.01.03.21; Sun, 06 Nov 2022 01:03:33 -0700 (PDT) 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 S229665AbiKFIBB (ORCPT + 99 others); Sun, 6 Nov 2022 03:01:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229647AbiKFIA7 (ORCPT ); Sun, 6 Nov 2022 03:00:59 -0500 Received: from smtp.smtpout.orange.fr (smtp-11.smtpout.orange.fr [80.12.242.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B08E2633D for ; Sun, 6 Nov 2022 01:00:56 -0700 (PDT) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id raaLoCxK7vbzbraaMoTkHw; Sun, 06 Nov 2022 09:00:54 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 06 Nov 2022 09:00:54 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: Alessandro Zummo , Alexandre Belloni Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-rtc@vger.kernel.org Subject: [PATCH] rtc: Include when appropriate Date: Sun, 6 Nov 2022 09:00:51 +0100 Message-Id: <786421fd0435a32206288904a1f879436a717529.1667721637.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=ham 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?1748733068508134046?= X-GMAIL-MSGID: =?utf-8?q?1748733068508134046?= 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 rtc-abx80x.c and rtc-ds1307.c. I've done my best to keep alphabetical order of the included files, to that is not always easy to achieve! --- drivers/rtc/rtc-abx80x.c | 1 + drivers/rtc/rtc-bq32k.c | 1 + drivers/rtc/rtc-ds1307.c | 1 + drivers/rtc/rtc-rv3029c2.c | 1 + drivers/rtc/rtc-rx8025.c | 1 + drivers/rtc/sysfs.c | 1 + 6 files changed, 6 insertions(+) diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c index 9b0138d07232..973649d95e13 100644 --- a/drivers/rtc/rtc-abx80x.c +++ b/drivers/rtc/rtc-abx80x.c @@ -12,6 +12,7 @@ #include #include +#include #include #include #include diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c index 6d6a55efb9cc..967ddc6bf76d 100644 --- a/drivers/rtc/rtc-bq32k.c +++ b/drivers/rtc/rtc-bq32k.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index d51565bcc189..7c2276cf5514 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/rtc/rtc-rv3029c2.c b/drivers/rtc/rtc-rv3029c2.c index eb483a30bd92..e4fdd47ae066 100644 --- a/drivers/rtc/rtc-rv3029c2.c +++ b/drivers/rtc/rtc-rv3029c2.c @@ -17,6 +17,7 @@ #include #include #include +#include #include /* Register map */ diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index dde86f3e2a4b..078b4406acad 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include diff --git a/drivers/rtc/sysfs.c b/drivers/rtc/sysfs.c index 00f1945bcb7e..e3062c4d3f2c 100644 --- a/drivers/rtc/sysfs.c +++ b/drivers/rtc/sysfs.c @@ -6,6 +6,7 @@ * Author: Alessandro Zummo */ +#include #include #include