tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-5.16/nintendo head: dad74e18f72a852ae40ad7b4246841a1b7e196b5 commit: dad74e18f72a852ae40ad7b4246841a1b7e196b5 [20/20] HID: nintendo: prevent needless queueing of the rumble worker config: arm-randconfig-r013-20211027 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72) 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 arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?id=dad74e18f72a852ae40ad7b4246841a1b7e196b5 git remote add hid https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git git fetch --no-tags hid for-5.16/nintendo git checkout dad74e18f72a852ae40ad7b4246841a1b7e196b5 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): ^ drivers/hid/hid-nintendo.c:51:17: warning: unused variable 'JC_SUBCMD_STATE' [-Wunused-const-variable] static const u8 JC_SUBCMD_STATE /*= 0x00*/; ^ drivers/hid/hid-nintendo.c:52:17: warning: unused variable 'JC_SUBCMD_MANUAL_BT_PAIRING' [-Wunused-const-variable] static const u8 JC_SUBCMD_MANUAL_BT_PAIRING = 0x01; ^ drivers/hid/hid-nintendo.c:55:17: warning: unused variable 'JC_SUBCMD_TRIGGERS_ELAPSED' [-Wunused-const-variable] static const u8 JC_SUBCMD_TRIGGERS_ELAPSED = 0x04; ^ drivers/hid/hid-nintendo.c:56:17: warning: unused variable 'JC_SUBCMD_GET_PAGE_LIST_STATE' [-Wunused-const-variable] static const u8 JC_SUBCMD_GET_PAGE_LIST_STATE = 0x05; ^ drivers/hid/hid-nintendo.c:57:17: warning: unused variable 'JC_SUBCMD_SET_HCI_STATE' [-Wunused-const-variable] static const u8 JC_SUBCMD_SET_HCI_STATE = 0x06; ^ drivers/hid/hid-nintendo.c:58:17: warning: unused variable 'JC_SUBCMD_RESET_PAIRING_INFO' [-Wunused-const-variable] static const u8 JC_SUBCMD_RESET_PAIRING_INFO = 0x07; ^ drivers/hid/hid-nintendo.c:59:17: warning: unused variable 'JC_SUBCMD_LOW_POWER_MODE' [-Wunused-const-variable] static const u8 JC_SUBCMD_LOW_POWER_MODE = 0x08; ^ drivers/hid/hid-nintendo.c:61:17: warning: unused variable 'JC_SUBCMD_SPI_FLASH_WRITE' [-Wunused-const-variable] static const u8 JC_SUBCMD_SPI_FLASH_WRITE = 0x11; ^ drivers/hid/hid-nintendo.c:62:17: warning: unused variable 'JC_SUBCMD_RESET_MCU' [-Wunused-const-variable] static const u8 JC_SUBCMD_RESET_MCU = 0x20; ^ drivers/hid/hid-nintendo.c:63:17: warning: unused variable 'JC_SUBCMD_SET_MCU_CONFIG' [-Wunused-const-variable] static const u8 JC_SUBCMD_SET_MCU_CONFIG = 0x21; ^ drivers/hid/hid-nintendo.c:64:17: warning: unused variable 'JC_SUBCMD_SET_MCU_STATE' [-Wunused-const-variable] static const u8 JC_SUBCMD_SET_MCU_STATE = 0x22; ^ drivers/hid/hid-nintendo.c:66:17: warning: unused variable 'JC_SUBCMD_GET_PLAYER_LIGHTS' [-Wunused-const-variable] static const u8 JC_SUBCMD_GET_PLAYER_LIGHTS = 0x31; ^ drivers/hid/hid-nintendo.c:69:17: warning: unused variable 'JC_SUBCMD_SET_IMU_SENSITIVITY' [-Wunused-const-variable] static const u8 JC_SUBCMD_SET_IMU_SENSITIVITY = 0x41; ^ drivers/hid/hid-nintendo.c:70:17: warning: unused variable 'JC_SUBCMD_WRITE_IMU_REG' [-Wunused-const-variable] static const u8 JC_SUBCMD_WRITE_IMU_REG = 0x42; ^ drivers/hid/hid-nintendo.c:71:17: warning: unused variable 'JC_SUBCMD_READ_IMU_REG' [-Wunused-const-variable] static const u8 JC_SUBCMD_READ_IMU_REG = 0x43; ^ drivers/hid/hid-nintendo.c:73:17: warning: unused variable 'JC_SUBCMD_GET_REGULATED_VOLTAGE' [-Wunused-const-variable] static const u8 JC_SUBCMD_GET_REGULATED_VOLTAGE = 0x50; ^ drivers/hid/hid-nintendo.c:76:17: warning: unused variable 'JC_INPUT_BUTTON_EVENT' [-Wunused-const-variable] static const u8 JC_INPUT_BUTTON_EVENT = 0x3F; ^ drivers/hid/hid-nintendo.c:83:17: warning: unused variable 'JC_FEATURE_LAST_SUBCMD' [-Wunused-const-variable] static const u8 JC_FEATURE_LAST_SUBCMD = 0x02; ^ drivers/hid/hid-nintendo.c:84:17: warning: unused variable 'JC_FEATURE_OTA_FW_UPGRADE' [-Wunused-const-variable] static const u8 JC_FEATURE_OTA_FW_UPGRADE = 0x70; ^ drivers/hid/hid-nintendo.c:85:17: warning: unused variable 'JC_FEATURE_SETUP_MEM_READ' [-Wunused-const-variable] static const u8 JC_FEATURE_SETUP_MEM_READ = 0x71; ^ drivers/hid/hid-nintendo.c:86:17: warning: unused variable 'JC_FEATURE_MEM_READ' [-Wunused-const-variable] static const u8 JC_FEATURE_MEM_READ = 0x72; ^ drivers/hid/hid-nintendo.c:87:17: warning: unused variable 'JC_FEATURE_ERASE_MEM_SECTOR' [-Wunused-const-variable] static const u8 JC_FEATURE_ERASE_MEM_SECTOR = 0x73; ^ drivers/hid/hid-nintendo.c:88:17: warning: unused variable 'JC_FEATURE_MEM_WRITE' [-Wunused-const-variable] static const u8 JC_FEATURE_MEM_WRITE = 0x74; ^ drivers/hid/hid-nintendo.c:89:17: warning: unused variable 'JC_FEATURE_LAUNCH' [-Wunused-const-variable] static const u8 JC_FEATURE_LAUNCH = 0x75; ^ drivers/hid/hid-nintendo.c:92:17: warning: unused variable 'JC_USB_CMD_CONN_STATUS' [-Wunused-const-variable] static const u8 JC_USB_CMD_CONN_STATUS = 0x01; ^ drivers/hid/hid-nintendo.c:96:17: warning: unused variable 'JC_USB_CMD_EN_TIMEOUT' [-Wunused-const-variable] static const u8 JC_USB_CMD_EN_TIMEOUT = 0x05; ^ drivers/hid/hid-nintendo.c:97:17: warning: unused variable 'JC_USB_RESET' [-Wunused-const-variable] static const u8 JC_USB_RESET = 0x06; ^ drivers/hid/hid-nintendo.c:98:17: warning: unused variable 'JC_USB_PRE_HANDSHAKE' [-Wunused-const-variable] static const u8 JC_USB_PRE_HANDSHAKE = 0x91; ^ drivers/hid/hid-nintendo.c:99:17: warning: unused variable 'JC_USB_SEND_UART' [-Wunused-const-variable] static const u8 JC_USB_SEND_UART = 0x92; ^ drivers/hid/hid-nintendo.c:196:45: warning: unused variable 'joycon_rumble_frequencies' [-Wunused-const-variable] static const struct joycon_rumble_freq_data joycon_rumble_frequencies[] = { ^ drivers/hid/hid-nintendo.c:254:44: warning: unused variable 'joycon_rumble_amplitudes' [-Wunused-const-variable] static const struct joycon_rumble_amp_data joycon_rumble_amplitudes[] = { ^ drivers/hid/hid-nintendo.c:400:18: warning: unused variable 'JC_RUMBLE_DFLT_LOW_FREQ' [-Wunused-const-variable] static const u16 JC_RUMBLE_DFLT_LOW_FREQ = 160; ^ drivers/hid/hid-nintendo.c:401:18: warning: unused variable 'JC_RUMBLE_DFLT_HIGH_FREQ' [-Wunused-const-variable] static const u16 JC_RUMBLE_DFLT_HIGH_FREQ = 320; ^ >> drivers/hid/hid-nintendo.c:403:29: warning: unused variable 'JC_RUMBLE_ZERO_AMP_PKT_CNT' [-Wunused-const-variable] static const unsigned short JC_RUMBLE_ZERO_AMP_PKT_CNT = 5; ^ 36 warnings generated. vim +/JC_RUMBLE_ZERO_AMP_PKT_CNT +403 drivers/hid/hid-nintendo.c 399 400 static const u16 JC_RUMBLE_DFLT_LOW_FREQ = 160; 401 static const u16 JC_RUMBLE_DFLT_HIGH_FREQ = 320; 402 static const u16 JC_RUMBLE_PERIOD_MS = 50; > 403 static const unsigned short JC_RUMBLE_ZERO_AMP_PKT_CNT = 5; 404 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip