All of lore.kernel.org
 help / color / mirror / Atom feed
* [asahilinux:clk/dev 2/3] drivers/clk/clk-apple-gate.c:113:16: warning: no previous prototype for 'apple_clk_hw_onecell_get'
@ 2021-06-03 19:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-03 19:30 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/AsahiLinux/linux clk/dev
head:   db975d0b41911068768f0bb23998e2b7d4d59807
commit: 407d251adb55b121054031c8b3918c66e32ffd80 [2/3] clk: add support for gate clocks on Apple SoCs
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
        # https://github.com/AsahiLinux/linux/commit/407d251adb55b121054031c8b3918c66e32ffd80
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux clk/dev
        git checkout 407d251adb55b121054031c8b3918c66e32ffd80
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 >>):

>> drivers/clk/clk-apple-gate.c:113:16: warning: no previous prototype for 'apple_clk_hw_onecell_get' [-Wmissing-prototypes]
     113 | struct clk_hw *apple_clk_hw_onecell_get(struct of_phandle_args *clkspec,
         |                ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/apple_clk_hw_onecell_get +113 drivers/clk/clk-apple-gate.c

   112	
 > 113	struct clk_hw *apple_clk_hw_onecell_get(struct of_phandle_args *clkspec,
   114						void *data)
   115	{
   116		struct clk_hw *hw = NULL;
   117		struct clk_hw_onecell_data *hw_data = data;
   118		unsigned int idx = clkspec->args[0];
   119	
   120		if (idx % 8) {
   121			pr_err("%s: unaligned index: %u\n", __func__, idx);
   122			return ERR_PTR(-EINVAL);
   123		}
   124	
   125		idx /= 8;
   126		if (idx >= hw_data->num) {
   127			pr_err("%s: index out of bounds: %u\n", __func__, idx);
   128			return ERR_PTR(-EINVAL);
   129		}
   130	
   131		hw = hw_data->hws[idx];
   132		if (!hw)
   133			return ERR_PTR(-EINVAL);
   134		return hw;
   135	}
   136	

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

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

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

only message in thread, other threads:[~2021-06-03 19:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-03 19:30 [asahilinux:clk/dev 2/3] drivers/clk/clk-apple-gate.c:113:16: warning: no previous prototype for 'apple_clk_hw_onecell_get' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.