Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5452892pxb; Wed, 26 Jan 2022 12:18:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfPwjCWHY9rvkUofuqk6r2xdOMGWgWV8tZ52OR83hioypYfHnIRQ2kJ84XewH+gJqnTOzN X-Received: by 2002:aa7:918e:0:b0:4c6:8684:68e9 with SMTP id x14-20020aa7918e000000b004c6868468e9mr24323375pfa.37.1643228318903; Wed, 26 Jan 2022 12:18:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643228318; cv=none; d=google.com; s=arc-20160816; b=BGIShyIwaNOMME95uVxOKI7OMNEZieyQ0GPCeSyToL5i2qvsAKBNxFyum6IpM9FP8N yXKfCUnYzX0RJ233h5jHwEYQ06p4uZWJJqgxziygLhqCQ1KMes09NcUBrOXUwY7/SrIJ lO8qMiNdpFfKToiU0/nMARhv3pGOzrzKiLqtJ8nwb1mV44MKNbJ6FqKeiDq/9c2Lq8Yl +XEz+JUf3O0ebpADakivUUnpJjwrOSX2mAqyb8w9Qs+J+v26iOooOP3llKqAAXPOGjFW d/HLNAwBWKuULbCrSbWOQNDdAQDi1nf4HJJXEZOuM5bz8h0FLYIm3FFw3s6ZGh528EMI BUBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=TxZvZSEweJgyUbSTg/JZkSRrpZBYJisdoqt/HgXjyno=; b=oMIxpTiaVK9p7pgyLQ3eA3YFDo+BttwSrLggJgtQFAn151Dvp6V00uP8xrvfakDEKp p0FqQfuqAS++xMtBeXXe7SSxqhkKL+lz6PW/Zfx0ihb3EmIuBD4LnqBmsJJ7clBf/POl AxwS49U2cSh2IIIHz2KpwElJrc3D0m7yRHdnaPfG2KJWZMQrxBZSy/IBWfv5WWHBqDER NPl/mAO4PZzAlmyNULxQfaFLoU4JFHeyMYQqWDtnODop8n/YyXcstEKr3Qi/Ju6NGCZ1 eR8ueZ3l0qxKjdx/B6JmkbPnDIjSLdUAu7OyebGf9x2L1W2E8tvX5mYFHXoLM/zuQDc/ EXUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t69si220555pgd.56.2022.01.26.12.18.26; Wed, 26 Jan 2022 12:18:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237760AbiAZH0u (ORCPT + 99 others); Wed, 26 Jan 2022 02:26:50 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:59284 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229611AbiAZH0t (ORCPT ); Wed, 26 Jan 2022 02:26:49 -0500 X-UUID: 574cc1b3af99408e9e28e990f9345e1a-20220126 X-UUID: 574cc1b3af99408e9e28e990f9345e1a-20220126 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1880652506; Wed, 26 Jan 2022 15:26:48 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.3; Wed, 26 Jan 2022 15:26:47 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 26 Jan 2022 15:26:47 +0800 From: Miles Chen To: CC: , , , , , , , Subject: Re: [PATCH 20/31] clk: mediatek: mtk: Clean up included headers Date: Wed, 26 Jan 2022 15:26:47 +0800 Message-ID: <20220126072647.8794-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20220122091731.283592-21-wenst@chromium.org> References: <20220122091731.283592-21-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Some included headers aren't actually used anywhere, while other headers > with the declaration of functions and structures aren't directly > included. > > Get rid of the unused ones, and add the ones that should be included > directly. > > On the header side, replace headers that are included purely for data > structure definitions with forward declarations. This decreases the > amount of preprocessing and compilation effort required for each > inclusion. > > Signed-off-by: Chen-Yu Tsai Reviewed-by: Miles Chen > --- > drivers/clk/mediatek/clk-mtk.c | 13 ++++++------- > drivers/clk/mediatek/clk-mtk.h | 12 ++++++------ > 2 files changed, 12 insertions(+), 13 deletions(-) > > diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c > index cd76e1d80242..d2c50186cceb 100644 > --- a/drivers/clk/mediatek/clk-mtk.c > +++ b/drivers/clk/mediatek/clk-mtk.c > @@ -4,17 +4,16 @@ > * Author: James Liao > */ > > -#include > -#include > +#include > +#include > #include > #include > -#include > -#include > -#include > -#include > #include > -#include > +#include > +#include > #include > +#include > +#include > > #include "clk-mtk.h" > #include "clk-gate.h" > diff --git a/drivers/clk/mediatek/clk-mtk.h b/drivers/clk/mediatek/clk-mtk.h > index 4fa658f5d934..7f902581a115 100644 > --- a/drivers/clk/mediatek/clk-mtk.h > +++ b/drivers/clk/mediatek/clk-mtk.h > @@ -7,19 +7,19 @@ > #ifndef __DRV_CLK_MTK_H > #define __DRV_CLK_MTK_H > > -#include > -#include > #include > -#include > - > -struct clk; > -struct clk_onecell_data; > +#include > +#include > +#include > +#include > > #define MAX_MUX_GATE_BIT 31 > #define INVALID_MUX_GATE_BIT (MAX_MUX_GATE_BIT + 1) > > #define MHZ (1000 * 1000) > > +struct platform_device; > + > struct mtk_fixed_clk { > int id; > const char *name; > -- > 2.35.0.rc0.227.g00780c9af4-goog