mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Joseph Lo <josephl@nvidia.com>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-kernel@vger.kernel.org, Thierry Reding <treding@nvidia.com>
Subject: drivers/clk/tegra/clk-tegra210-emc.c:264:13: warning: no previous prototype for function 'tegra210_clk_register_emc'
Date: Sun, 21 Jun 2020 02:38:03 +0800	[thread overview]
Message-ID: <202006210200.N41RCI2G%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2533 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4333a9b0b67bb4e8bcd91bdd80da80b0ec151162
commit: 0ac65fc946d3a15ff30cea28b38a00b9ba98217b clk: tegra: Implement Tegra210 EMC clock
date:   6 weeks ago
config: arm64-randconfig-r002-20200619 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project f5bbe390d23d7da0ffb110cdb24b583c2dc87eba)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        git checkout 0ac65fc946d3a15ff30cea28b38a00b9ba98217b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/clk/tegra/clk-tegra210-emc.c:264:13: warning: no previous prototype for function 'tegra210_clk_register_emc' [-Wmissing-prototypes]
struct clk *tegra210_clk_register_emc(struct device_node *np,
^
drivers/clk/tegra/clk-tegra210-emc.c:264:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct clk *tegra210_clk_register_emc(struct device_node *np,
^
static
1 warning generated.

vim +/tegra210_clk_register_emc +264 drivers/clk/tegra/clk-tegra210-emc.c

   263	
 > 264	struct clk *tegra210_clk_register_emc(struct device_node *np,
   265					      void __iomem *regs)
   266	{
   267		struct tegra210_clk_emc *emc;
   268		struct clk_init_data init;
   269		struct clk *clk;
   270	
   271		emc = kzalloc(sizeof(*emc), GFP_KERNEL);
   272		if (!emc)
   273			return ERR_PTR(-ENOMEM);
   274	
   275		emc->regs = regs;
   276	
   277		init.name = "emc";
   278		init.ops = &tegra210_clk_emc_ops;
   279		init.flags = CLK_IS_CRITICAL | CLK_GET_RATE_NOCACHE;
   280		init.parent_names = tegra210_clk_emc_parents;
   281		init.num_parents = ARRAY_SIZE(tegra210_clk_emc_parents);
   282		emc->hw.init = &init;
   283	
   284		clk = clk_register(NULL, &emc->hw);
   285		if (IS_ERR(clk)) {
   286			kfree(emc);
   287			return clk;
   288		}
   289	
   290		return clk;
   291	}
   292	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36719 bytes --]

                 reply	other threads:[~2020-06-20 18:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202006210200.N41RCI2G%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=josephl@nvidia.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=treding@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®