lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 21 Jun 2020 02:38:03 +0800
From:   kernel test robot <lkp@...el.com>
To:     Joseph Lo <josephl@...dia.com>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Thierry Reding <treding@...dia.com>
Subject: drivers/clk/tegra/clk-tegra210-emc.c:264:13: warning: no previous
 prototype for function 'tegra210_clk_register_emc'

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (36719 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ