All of lore.kernel.org
 help / color / mirror / Atom feed
* [thierryreding:for-6.3/work 176/176] drivers/soc/tegra/dce.c:149:23: error: implicit declaration of function 'FIELD_PREP'
@ 2023-01-21  8:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-21  8:49 UTC (permalink / raw)
  To: Thierry Reding; +Cc: oe-kbuild-all

tree:   https://github.com/thierryreding/linux for-6.3/work
head:   d2f9c8570d9db78d8edc29d02721fa315b564b4f
commit: d2f9c8570d9db78d8edc29d02721fa315b564b4f [176/176] WIP
config: arm-defconfig (https://download.01.org/0day-ci/archive/20230121/202301211622.MvVmacsc-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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/thierryreding/linux/commit/d2f9c8570d9db78d8edc29d02721fa315b564b4f
        git remote add thierryreding https://github.com/thierryreding/linux
        git fetch --no-tags thierryreding for-6.3/work
        git checkout d2f9c8570d9db78d8edc29d02721fa315b564b4f
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/soc/

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

All errors (new ones prefixed by >>):

   drivers/soc/tegra/dce.c: In function 'tegra_dce_boot_get_version':
>> drivers/soc/tegra/dce.c:149:23: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
     149 |         u32 command = FIELD_PREP(DCE_BOOT_CMD_COMMAND, DCE_BOOT_CMD_VERSION);
         |                       ^~~~~~~~~~
   drivers/soc/tegra/dce.c: In function 'tegra_dce_irq_callback':
>> drivers/soc/tegra/dce.c:429:16: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'? [-Werror=implicit-function-declaration]
     429 |         type = FIELD_GET(DCE_IRQ_STATUS_TYPE, value);
         |                ^~~~~~~~~
         |                FOLL_GET
   cc1: some warnings being treated as errors


vim +/FIELD_PREP +149 drivers/soc/tegra/dce.c

   146	
   147	static int tegra_dce_boot_get_version(struct tegra_dce *dce, u32 *version)
   148	{
 > 149		u32 command = FIELD_PREP(DCE_BOOT_CMD_COMMAND, DCE_BOOT_CMD_VERSION);
   150		void *msg = (void *)(unsigned long)command;
   151		unsigned long status;
   152		int err;
   153	
   154		err = mbox_send_message(dce->boot.channel, msg);
   155		if (err < 0)
   156			return err;
   157	
   158		status = wait_for_completion_timeout(&dce->irq.done, 1000);
   159		if (status == 0)
   160			return -ETIMEDOUT;
   161	
   162		if (dce->boot.status < 0)
   163			return dce->boot.status;
   164	
   165		*version = dce->boot.status;
   166	
   167		return 0;
   168	}
   169	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

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

only message in thread, other threads:[~2023-01-21  8:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-21  8:49 [thierryreding:for-6.3/work 176/176] drivers/soc/tegra/dce.c:149:23: error: implicit declaration of function 'FIELD_PREP' 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.