Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3243542pxx; Mon, 2 Nov 2020 04:04:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJznjCH3gGQtsXmMAhGbw4TeOzNfa7NHyGmwphR8rReh9YRii8U6rxrJ+xgbLYiMPgaBrub1 X-Received: by 2002:aa7:de89:: with SMTP id j9mr16359503edv.363.1604318667813; Mon, 02 Nov 2020 04:04:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604318667; cv=none; d=google.com; s=arc-20160816; b=LNcJwoa8UBgTgiUjr/kq2GJBA6Qqo241CBAC/lvlPXqU3oQZQ7XaRc7O6Erbp/hQmL VkbQUBvEgExFiWGZX10rLBhRoV0Kxxrse03E4SsGZKOFQPItovbxKlwf/on1r8JrECaK jzjqOSCXnsXqN0AzuA1okqqu8FT3yzzLL0KhJi74Qupu64G6U+aQXsTasiPnB2Ls1IQx bBmh4P0HyIxAWeeRRFetCKMIPnPbJtYhN/1DU2O//Jz4CusLvYslVvGXGbD++lG+GFQ/ oyuYw/xEqBqXQsFOglt9lN3lUvLASM10szC1QvQAc686WNw5bxuHg5kN6eSOZmI8MBh9 DxVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:from:sender:dkim-signature; bh=4lUtMbemKtwULeWB/GtzN61KZP8PLo1ylcMvc2DrBNE=; b=PBzFdp3iPyHa8/bucPY4b1/IdQw5EPHetS8i+pyJXsK7O5zHxmoKQPt09ygvVSpmNX ABaYPilofB2nfZ3siLr5qLbbdlTOC2kCKQeNcfvTIcLhJsjpqPA0oWuOpmWmgv9B8DCx C3pmIMD7hPgUCcnuUL5wSQRsRPYHpF/nwEEIGWxGS0fsBiCH315NZTIXaQ9KrUrEy9mL jKdFq9wToVTzoc+wlz70Drep0h/6THK9fe9N39TI52GEROcM7aAWdssVB+Xft8RshW6F MRsB1a2ZSwMfJuVIURZ+8bD3BiToRJnG6mZYkjp2Dg/pKsiIEBwm4drCF62171ol5KpR eb6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vt-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZCCUSnwZ; 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=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si11360151ejx.254.2020.11.02.04.04.05; Mon, 02 Nov 2020 04:04:27 -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; dkim=pass header.i=@vt-edu.20150623.gappssmtp.com header.s=20150623 header.b=ZCCUSnwZ; 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=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728744AbgKBMCM (ORCPT + 99 others); Mon, 2 Nov 2020 07:02:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728700AbgKBMCM (ORCPT ); Mon, 2 Nov 2020 07:02:12 -0500 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64079C061A04 for ; Mon, 2 Nov 2020 04:02:10 -0800 (PST) Received: by mail-il1-x141.google.com with SMTP id k1so12670841ilc.10 for ; Mon, 02 Nov 2020 04:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:mime-version:content-transfer-encoding :date:message-id; bh=4lUtMbemKtwULeWB/GtzN61KZP8PLo1ylcMvc2DrBNE=; b=ZCCUSnwZrwi0KVDyv5VwDc84EmLHx5WwqlwF9WWaUWvMCVM/ngqnFIOG2D/5Y+qAgr XDX5mBhr828bKSJMlhawIGKOhA3cG1gtj6pGsyUMfS459qxW5xgBKxA3gUGjEDZt0NXL +W0Iarc3kuaCKRlq5h+NkbPD03yhhAm4hqGp+6AcTYi+98Gb5kcCKP6pN6ua4NSAi4S1 R3pIh1L0CG1j8QwsYCK6ubZJDttbdLkIniasV9Gkb5dwBcd6vd6TIRGIiUpszKqh7B31 nH2zE9iM9PCPaQyAu57y2o0tETBek9PlroR3tpoYZIDAu8WAbwagV8tJ3UUALtd2q3AL Cu+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:mime-version :content-transfer-encoding:date:message-id; bh=4lUtMbemKtwULeWB/GtzN61KZP8PLo1ylcMvc2DrBNE=; b=PC1GSVMtoRv4MSB5objIdBvpPIZ036G+P9xCbqnKmMc1+ulVTrJ7lqhbrizVlVzDjw YWMSYWr2jTcbA4wv71nk5EBOLhKVTHIQ/2AOJOC0CwmPxjteUO1OnU41B2GSk0Sfw3+C ummPqGzECwCzj1juBjb4byJjZonJ2P74ya38xA2cxtwWiQNAsO9oL4/n3ErrOxfT/y4C Q91X9MS/7kl50Ep7AYTp7DA1CVG3n+akNyRZOePc/KfOH+Ky7+CRwR6OGU0nkylDYlS7 /uqS7paL6D2usUWwr6OUi5JunJn8t+EnoH1h24zprp4talwbU8dx1wAg7vLqy8sJV8lh N2fw== X-Gm-Message-State: AOAM530Qj/Tk+miVR7os7HMI1ax7OnzLXbOpQrm2EHkFM9U8J6eJ4B74 ZalYiG2sF4zVxMHI+A2k3gv5RA== X-Received: by 2002:a92:844b:: with SMTP id l72mr9784093ild.244.1604318529367; Mon, 02 Nov 2020 04:02:09 -0800 (PST) Received: from turing-police ([2601:5c0:c380:d61::359]) by smtp.gmail.com with ESMTPSA id q16sm10359649ilj.22.2020.11.02.04.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 04:02:06 -0800 (PST) Sender: Valdis Kletnieks From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Google-Original-From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Dong Aisheng , Michael Turquette , Shawn Guo , Stephen Boyd , Sascha Hauer Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: imx: scu: Fix compile error with module build of clk-scu.o Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1604318525_168427P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Mon, 02 Nov 2020 07:02:05 -0500 Message-ID: <208469.1604318525@turing-police> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --==_Exmh_1604318525_168427P Content-Type: text/plain; charset=us-ascii commit 77d8f3068c63ee0983f0b5ba3207d3f7cce11be4 (HEAD) Author: Dong Aisheng Date: Wed Jul 29 16:00:10 2020 +0800 clk: imx: scu: add two cells binding support This missed a #include, which results in some nasty errors when built as a module CC [M] drivers/clk/imx/clk-scu.o In file included from ./include/linux/device.h:32, from ./include/linux/of_platform.h:9, from drivers/clk/imx/clk-scu.c:11: ./include/linux/device/driver.h:290:1: warning: data definition has no type or storage class device_initcall(__driver##_init); ^~~~~~~~~~~~~~~ ./include/linux/platform_device.h:258:2: note: in expansion of macro 'builtin_driver' builtin_driver(__platform_driver, platform_driver_register) ^~~~~~~~~~~~~~ drivers/clk/imx/clk-scu.c:545:1: note: in expansion of macro 'builtin_platform_driver' builtin_platform_driver(imx_clk_scu_driver); ^~~~~~~~~~~~~~~~~~~~~~~ ./include/linux/device/driver.h:290:1: error: type defaults to 'int' in declaration of 'device_initcall' [-Werror=implicit-int] device_initcall(__driver##_init); ^~~~~~~~~~~~~~~ ./include/linux/platform_device.h:258:2: note: in expansion of macro 'builtin_driver' builtin_driver(__platform_driver, platform_driver_register) ^~~~~~~~~~~~~~ drivers/clk/imx/clk-scu.c:545:1: note: in expansion of macro 'builtin_platform_driver' builtin_platform_driver(imx_clk_scu_driver); ^~~~~~~~~~~~~~~~~~~~~~~ drivers/clk/imx/clk-scu.c:545:1: warning: parameter names (without types) in function declaration In file included from ./include/linux/device.h:32, from ./include/linux/of_platform.h:9, from drivers/clk/imx/clk-scu.c:11: drivers/clk/imx/clk-scu.c:545:25: warning: 'imx_clk_scu_driver_init' defined but not used [-Wunused-function] builtin_platform_driver(imx_clk_scu_driver); ^~~~~~~~~~~~~~~~~~ ./include/linux/device/driver.h:286:19: note: in definition of macro 'builtin_driver' static int __init __driver##_init(void) \ ^~~~~~~~ drivers/clk/imx/clk-scu.c:545:1: note: in expansion of macro 'builtin_platform_driver' builtin_platform_driver(imx_clk_scu_driver); ^~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:283: drivers/clk/imx/clk-scu.o] Error 1 Fix by providing the include. Signed-off-by: Valdis Kletnieks diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c index 229a290ca5b6..15d382f6f9f8 100644 --- a/drivers/clk/imx/clk-scu.c +++ b/drivers/clk/imx/clk-scu.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include --==_Exmh_1604318525_168427P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBX5/1PAdmEQWDXROgAQIOzQ/9Fh7u7CjJVVvYfQl56BjwcIOwsPn57c65 vQ6RAXnr84O89rd4vWtCP2WVmiWXp7kvsYOrB5LJtGCdhTMoeh80pcJmpJUo2y0G 6MLBdcPoXIUbbPt57pjA77EzV/KydYT1FUeZuiyZrdFCuG1yBpSz6J8tZ9nokFzY Nv9QHT7H6HVS+y4FtCOmL3ivdsQrSHBBQ7MX9A7AsMrNymfOTvkmeIDK9NJk2E87 uAtIpuSM3WwEl1/ImYlAscXnEBeHuN3Eo+C0iqDp4fVCcb+qFXgdUEr32cTlROmh HhzENBi1AAIyZnudkPcpbViJyUmEXtklvJYjckQKVHhcI5ewj7whG/x1H+hDkZ+r hJRxFHp0iLvaIwDqhDDhqz6Yzonk898l+RyhXd0XLpu+9XytrpUnbH+GkslvY8yo qmeQXvYcDK+B07CvIavfwr92woS+0w7c8JUT66Z9g7obDLlsxkUOw4NsBmple/Nq WziGk8FcWJA9QwHC0NFyMGIMQ2DmXyN1gZ001R3F4GoJF4SzhcV9FmF1lI5qiCkd FEQu3//fbNeSVMJQCEjTaXGciglNVSv4SzIChCjPZ6GFhC69ILAqc5TeGWVq8K9G JhxrvUmz79K6NYh6fp1ijsjN4JnHmYZsbl0Sw+IcYMfzywFbU0tQ7BmOS4eI/kd1 I/f+VaDSDO8= =LaUB -----END PGP SIGNATURE----- --==_Exmh_1604318525_168427P--