mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/clk/tegra/clk-tegra210-emc.c:264:13: warning: no previous prototype for function 'tegra210_clk_register_emc'
@ 2020-06-20 18:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-20 18:38 UTC (permalink / raw)
  To: Joseph Lo; +Cc: kbuild-all, clang-built-linux, linux-kernel, Thierry Reding

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-20 18:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-20 18:38 drivers/clk/tegra/clk-tegra210-emc.c:264:13: warning: no previous prototype for function 'tegra210_clk_register_emc' kernel test robot

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®