[hid:for-next 11/27] drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c:48:9: error: implicit declaration of function 'writeq'; did you mean 'writeb'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
head:   9c9914cc509bccd7b134d33594e19b9411c12d4b
commit: 93ce5e0231d79189be4d9e5f9295807b18941419 [11/27] HID: amd_sfh: Implement SFH1.1 functionality
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220725/202207250836.cwfTgngV-lkp@xxxxxxxxx/config)
compiler: arceb-elf-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://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?id=93ce5e0231d79189be4d9e5f9295807b18941419
        git remote add hid https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git
        git fetch --no-tags hid for-next
        git checkout 93ce5e0231d79189be4d9e5f9295807b18941419
        # 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=arc SHELL=/bin/bash

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

Note: the hid/for-next HEAD 9c9914cc509bccd7b134d33594e19b9411c12d4b builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c: In function 'amd_stop_sensor':
>> drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c:48:9: error: implicit declaration of function 'writeq'; did you mean 'writeb'? [-Werror=implicit-function-declaration]
      48 |         writeq(0x0, privdata->mmio + AMD_C2P_MSG(1));
         |         ^~~~~~
         |         writeb
   cc1: some warnings being treated as errors


vim +48 drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c

    38	
    39	static void amd_stop_sensor(struct amd_mp2_dev *privdata, u16 sensor_idx)
    40	{
    41		struct sfh_cmd_base cmd_base;
    42	
    43		cmd_base.ul = 0;
    44		cmd_base.cmd.cmd_id = DISABLE_SENSOR;
    45		cmd_base.cmd.intr_disable = 0;
    46		cmd_base.cmd.sensor_id = sensor_idx;
    47	
  > 48		writeq(0x0, privdata->mmio + AMD_C2P_MSG(1));
    49		writel(cmd_base.ul, privdata->mmio + AMD_C2P_MSG(0));
    50	}
    51	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux