All of lore.kernel.org
 help / color / mirror / Atom feed
* [asahilinux:bits/070-audio 3/10] drivers/clk/clk-apple-nco.c:95:16: error: implicit declaration of function 'FIELD_PREP'
@ 2022-01-18 20:23 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-18 20:23 UTC (permalink / raw)
  To: Martin Povišer; +Cc: kbuild-all, linux-kernel, Hector Martin

tree:   https://github.com/AsahiLinux/linux bits/070-audio
head:   63a99f1a44208593f5a423b5378824abc2246988
commit: 4fdd8dbf78d3dd153e610d43e69488468317b7ba [3/10] clk: clk-apple-nco: Add driver for Apple NCO
config: csky-allyesconfig (https://download.01.org/0day-ci/archive/20220119/202201190413.nZlHy8tT-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.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/4fdd8dbf78d3dd153e610d43e69488468317b7ba
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/070-audio
        git checkout 4fdd8dbf78d3dd153e610d43e69488468317b7ba
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/clk/clk-apple-nco.c: In function 'nco_div_translate':
>> drivers/clk/clk-apple-nco.c:95:16: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
      95 |         return FIELD_PREP(DIV_COARSE, tbl->fwd[coarse - COARSE_DIV_OFFSET]) |
         |                ^~~~~~~~~~
   drivers/clk/clk-apple-nco.c: In function 'nco_div_translate_inv':
>> drivers/clk/clk-apple-nco.c:103:27: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
     103 |         coarse = tbl->inv[FIELD_GET(DIV_COARSE, regval)] + COARSE_DIV_OFFSET;
         |                           ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +95 drivers/clk/clk-apple-nco.c

    87	
    88	static u32 nco_div_translate(struct nco_tables *tbl, int div)
    89	{
    90		int coarse = div / 4;
    91	
    92		if (WARN_ON(!nco_div_check(div)))
    93			return 0;
    94	
  > 95		return FIELD_PREP(DIV_COARSE, tbl->fwd[coarse - COARSE_DIV_OFFSET]) |
    96				FIELD_PREP(DIV_FINE, div % 4);
    97	}
    98	
    99	static int nco_div_translate_inv(struct nco_tables *tbl, int regval)
   100	{
   101		int coarse, fine;
   102	
 > 103		coarse = tbl->inv[FIELD_GET(DIV_COARSE, regval)] + COARSE_DIV_OFFSET;
   104		fine = FIELD_GET(DIV_FINE, regval);
   105	
   106		return coarse * 4 + fine;
   107	}
   108	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [asahilinux:bits/070-audio 3/10] drivers/clk/clk-apple-nco.c:95:16: error: implicit declaration of function 'FIELD_PREP'
@ 2022-01-18 20:23 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-18 20:23 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/AsahiLinux/linux bits/070-audio
head:   63a99f1a44208593f5a423b5378824abc2246988
commit: 4fdd8dbf78d3dd153e610d43e69488468317b7ba [3/10] clk: clk-apple-nco: Add driver for Apple NCO
config: csky-allyesconfig (https://download.01.org/0day-ci/archive/20220119/202201190413.nZlHy8tT-lkp(a)intel.com/config)
compiler: csky-linux-gcc (GCC) 11.2.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/4fdd8dbf78d3dd153e610d43e69488468317b7ba
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/070-audio
        git checkout 4fdd8dbf78d3dd153e610d43e69488468317b7ba
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=csky SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   drivers/clk/clk-apple-nco.c: In function 'nco_div_translate':
>> drivers/clk/clk-apple-nco.c:95:16: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
      95 |         return FIELD_PREP(DIV_COARSE, tbl->fwd[coarse - COARSE_DIV_OFFSET]) |
         |                ^~~~~~~~~~
   drivers/clk/clk-apple-nco.c: In function 'nco_div_translate_inv':
>> drivers/clk/clk-apple-nco.c:103:27: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
     103 |         coarse = tbl->inv[FIELD_GET(DIV_COARSE, regval)] + COARSE_DIV_OFFSET;
         |                           ^~~~~~~~~
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +95 drivers/clk/clk-apple-nco.c

    87	
    88	static u32 nco_div_translate(struct nco_tables *tbl, int div)
    89	{
    90		int coarse = div / 4;
    91	
    92		if (WARN_ON(!nco_div_check(div)))
    93			return 0;
    94	
  > 95		return FIELD_PREP(DIV_COARSE, tbl->fwd[coarse - COARSE_DIV_OFFSET]) |
    96				FIELD_PREP(DIV_FINE, div % 4);
    97	}
    98	
    99	static int nco_div_translate_inv(struct nco_tables *tbl, int regval)
   100	{
   101		int coarse, fine;
   102	
 > 103		coarse = tbl->inv[FIELD_GET(DIV_COARSE, regval)] + COARSE_DIV_OFFSET;
   104		fine = FIELD_GET(DIV_FINE, regval);
   105	
   106		return coarse * 4 + fine;
   107	}
   108	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-18 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 20:23 [asahilinux:bits/070-audio 3/10] drivers/clk/clk-apple-nco.c:95:16: error: implicit declaration of function 'FIELD_PREP' kernel test robot
2022-01-18 20:23 ` 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.