From patchwork Tue Feb 8 12:40:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 12738613 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9DBE9C433F5 for ; Tue, 8 Feb 2022 12:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+jXhqOBdD6c7VrKJJ2qLvrNHHDDluZf54Nj6cXL8lyY=; b=S19Z9d2sC68Pyq PngJRcg5KIbp9g4V2doHhevTt8hOj6YjJFAYsWVVcyBD4es1Xv/vfKa1PqcqmvUEcJnlfTJ/z7X+e 9QWKKUVRUwRr4kZvxOSxmvyCDbK2NiFvAnhJ+Mq2nYR0xV0auHbo7KLbJixQSbGYTUxDERNZTBcoz Xm7ViLSql9U6KYZkcpLvLlVWIflAZOfTooEDZJtoTmQHrsEQXqYGIpa/Ot98NXXWNT77mT/xt+6WC FfxZ07xeh62hBQpD1aj6xYaUiLrfUHfzyMIcWDTOnP6xEQ/ALTcsxzEExuU7l7Vcs6PRf3Sw8W6R6 m75AJP6i3TXGIdoxXGAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHPr8-00Dp4T-AB; Tue, 08 Feb 2022 12:44:26 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHPnv-00DnNQ-Bg for linux-arm-kernel@lists.infradead.org; Tue, 08 Feb 2022 12:41:08 +0000 Received: by mail-pf1-x430.google.com with SMTP id i17so18616053pfq.13 for ; Tue, 08 Feb 2022 04:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3RinXQyHKb00TzypPmHwtAZLN3N95NjRwsCDNBAlwr4=; b=YZFeequlV6N1Zm6zx7AjhJ88s7J6s6lm6hq4eZItcgFo8pOMuTMvZ3hzVnj93mM/dX wFnDMu6mWWqvp29XUfzBr/4uMQmuOz5VTOtSzqPo+a2U6tTImCdnPb+fMYPH/Zv/Jw9S 1JOy9pLaEPyxVRAAQJ5IQs+EJiibHDKam75NU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3RinXQyHKb00TzypPmHwtAZLN3N95NjRwsCDNBAlwr4=; b=v2Or2gsW1Tvn5N/Cy1zgm2t9dpiv+nkjB/pnIlxGQC+X9EHyOULNqOZ1xPYXs64nZF Q8ZP5+SnedIASzi2eMsjqpj3X+yo6LkYO5ubag+PGu0yk/4ALnX22JL/x/XfOjxiusnw E+8RAupT+VG9I3NPCvLzImWqjsSWcG6hapjpbMueMWHRfg5Ss6svQIAABocNWfoN863+ DknLe0Tm9Aa/mlTr02mYg08tYnaVZRThZOehFot2D3H47xZBs2btGC9o3kmHr8YypAd3 nBgUPMzFS1mcylxvZIPAu+WL/QR9u3iHoRzOjny02DoiPNw0i4baR5vLwPlMFkKrrlUF ppGA== X-Gm-Message-State: AOAM532yXsrWQGMHM32RC5zbUYF8PtPyy6yrIhwn2mDjTXEPj1UWDzRq NHxZgFVq/Xo7ELepkpkAcuKzMA== X-Google-Smtp-Source: ABdhPJyVR6nI8dkkBw1DN8QU+KXFRS3jfBjQoqHIXzT0wpt+HFO/COZLgDxQ8jisVm0UKOLWRVS5qA== X-Received: by 2002:a05:6a00:d72:: with SMTP id n50mr4229384pfv.51.1644324066273; Tue, 08 Feb 2022 04:41:06 -0800 (PST) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:41b6:813e:c823:609c]) by smtp.gmail.com with ESMTPSA id h11sm15056939pfe.214.2022.02.08.04.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Feb 2022 04:41:06 -0800 (PST) From: Chen-Yu Tsai To: Stephen Boyd , Michael Turquette , Matthias Brugger Cc: Chen-Yu Tsai , Chun-Jie Chen , AngeloGioacchino Del Regno , Miles Chen , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 08/31] clk: mediatek: cpumux: Clean up included headers Date: Tue, 8 Feb 2022 20:40:11 +0800 Message-Id: <20220208124034.414635-9-wenst@chromium.org> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog In-Reply-To: <20220208124034.414635-1-wenst@chromium.org> References: <20220208124034.414635-1-wenst@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220208_044107_421523_E4741456 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some headers with the declaration of functions and structures aren't directly included. Explicitly include them so that future changes to other headers would not result in an unexpected build break. On the header side, add forward declarations for any data structures whose pointers are used in function signatures. No headers are required. Signed-off-by: Chen-Yu Tsai Reviewed-by: Miles Chen Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Chun-Jie Chen --- drivers/clk/mediatek/clk-cpumux.c | 3 +++ drivers/clk/mediatek/clk-cpumux.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c index 344c6399b22f..658aee789f44 100644 --- a/drivers/clk/mediatek/clk-cpumux.c +++ b/drivers/clk/mediatek/clk-cpumux.c @@ -5,8 +5,11 @@ */ #include +#include +#include #include #include +#include #include #include "clk-mtk.h" diff --git a/drivers/clk/mediatek/clk-cpumux.h b/drivers/clk/mediatek/clk-cpumux.h index a538f2bbef0d..b07e89f7c283 100644 --- a/drivers/clk/mediatek/clk-cpumux.h +++ b/drivers/clk/mediatek/clk-cpumux.h @@ -7,6 +7,10 @@ #ifndef __DRV_CLK_CPUMUX_H #define __DRV_CLK_CPUMUX_H +struct clk_onecell_data; +struct device_node; +struct mtk_composite; + int mtk_clk_register_cpumuxes(struct device_node *node, const struct mtk_composite *clks, int num, struct clk_onecell_data *clk_data);