tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: bdcc9f6a568275aed4cc32fd2312432d2ff1b704 commit: 2af16c1f846bd60240745bbd3afa13d5f040c61a [11502/12841] HID: nintendo: add nintendo switch controller driver config: arm-allyesconfig (attached as .config) compiler: arm-linux-gnueabi-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2af16c1f846bd60240745bbd3afa13d5f040c61a git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 2af16c1f846bd60240745bbd3afa13d5f040c61a # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): drivers/hid/hid-nintendo.c:92:17: error: 'JC_USB_SEND_UART' defined but not used [-Werror=unused-const-variable=] 92 | static const u8 JC_USB_SEND_UART = 0x92; | ^~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:91:17: error: 'JC_USB_PRE_HANDSHAKE' defined but not used [-Werror=unused-const-variable=] 91 | static const u8 JC_USB_PRE_HANDSHAKE = 0x91; | ^~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:90:17: error: 'JC_USB_RESET' defined but not used [-Werror=unused-const-variable=] 90 | static const u8 JC_USB_RESET = 0x06; | ^~~~~~~~~~~~ drivers/hid/hid-nintendo.c:89:17: error: 'JC_USB_CMD_EN_TIMEOUT' defined but not used [-Werror=unused-const-variable=] 89 | static const u8 JC_USB_CMD_EN_TIMEOUT = 0x05; | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:85:17: error: 'JC_USB_CMD_CONN_STATUS' defined but not used [-Werror=unused-const-variable=] 85 | static const u8 JC_USB_CMD_CONN_STATUS = 0x01; | ^~~~~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:82:17: error: 'JC_FEATURE_LAUNCH' defined but not used [-Werror=unused-const-variable=] 82 | static const u8 JC_FEATURE_LAUNCH = 0x75; | ^~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:81:17: error: 'JC_FEATURE_MEM_WRITE' defined but not used [-Werror=unused-const-variable=] 81 | static const u8 JC_FEATURE_MEM_WRITE = 0x74; | ^~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:80:17: error: 'JC_FEATURE_ERASE_MEM_SECTOR' defined but not used [-Werror=unused-const-variable=] 80 | static const u8 JC_FEATURE_ERASE_MEM_SECTOR = 0x73; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:79:17: error: 'JC_FEATURE_MEM_READ' defined but not used [-Werror=unused-const-variable=] 79 | static const u8 JC_FEATURE_MEM_READ = 0x72; | ^~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:78:17: error: 'JC_FEATURE_SETUP_MEM_READ' defined but not used [-Werror=unused-const-variable=] 78 | static const u8 JC_FEATURE_SETUP_MEM_READ = 0x71; | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:77:17: error: 'JC_FEATURE_OTA_FW_UPGRADE' defined but not used [-Werror=unused-const-variable=] 77 | static const u8 JC_FEATURE_OTA_FW_UPGRADE = 0x70; | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:76:17: error: 'JC_FEATURE_LAST_SUBCMD' defined but not used [-Werror=unused-const-variable=] 76 | static const u8 JC_FEATURE_LAST_SUBCMD = 0x02; | ^~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:69:17: error: 'JC_INPUT_BUTTON_EVENT' defined but not used [-Werror=unused-const-variable=] 69 | static const u8 JC_INPUT_BUTTON_EVENT = 0x3F; | ^~~~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:66:17: error: 'JC_SUBCMD_GET_REGULATED_VOLTAGE' defined but not used [-Werror=unused-const-variable=] 66 | static const u8 JC_SUBCMD_GET_REGULATED_VOLTAGE = 0x50; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:65:17: error: 'JC_SUBCMD_ENABLE_VIBRATION' defined but not used [-Werror=unused-const-variable=] 65 | static const u8 JC_SUBCMD_ENABLE_VIBRATION = 0x48; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:64:17: error: 'JC_SUBCMD_READ_IMU_REG' defined but not used [-Werror=unused-const-variable=] 64 | static const u8 JC_SUBCMD_READ_IMU_REG = 0x43; | ^~~~~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:63:17: error: 'JC_SUBCMD_WRITE_IMU_REG' defined but not used [-Werror=unused-const-variable=] 63 | static const u8 JC_SUBCMD_WRITE_IMU_REG = 0x42; | ^~~~~~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:62:17: error: 'JC_SUBCMD_SET_IMU_SENSITIVITY' defined but not used [-Werror=unused-const-variable=] 62 | static const u8 JC_SUBCMD_SET_IMU_SENSITIVITY = 0x41; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:61:17: error: 'JC_SUBCMD_ENABLE_IMU' defined but not used [-Werror=unused-const-variable=] 61 | static const u8 JC_SUBCMD_ENABLE_IMU = 0x40; | ^~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:60:17: error: 'JC_SUBCMD_SET_HOME_LIGHT' defined but not used [-Werror=unused-const-variable=] 60 | static const u8 JC_SUBCMD_SET_HOME_LIGHT = 0x38; | ^~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:59:17: error: 'JC_SUBCMD_GET_PLAYER_LIGHTS' defined but not used [-Werror=unused-const-variable=] 59 | static const u8 JC_SUBCMD_GET_PLAYER_LIGHTS = 0x31; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:57:17: error: 'JC_SUBCMD_SET_MCU_STATE' defined but not used [-Werror=unused-const-variable=] 57 | static const u8 JC_SUBCMD_SET_MCU_STATE = 0x22; | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:56:17: error: 'JC_SUBCMD_SET_MCU_CONFIG' defined but not used [-Werror=unused-const-variable=] 56 | static const u8 JC_SUBCMD_SET_MCU_CONFIG = 0x21; | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:55:17: error: 'JC_SUBCMD_RESET_MCU' defined but not used [-Werror=unused-const-variable=] 55 | static const u8 JC_SUBCMD_RESET_MCU = 0x20; | ^~~~~~~~~~~~~~~~~~~ >> drivers/hid/hid-nintendo.c:54:17: error: 'JC_SUBCMD_SPI_FLASH_WRITE' defined but not used [-Werror=unused-const-variable=] 54 | static const u8 JC_SUBCMD_SPI_FLASH_WRITE = 0x11; | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:52:17: error: 'JC_SUBCMD_LOW_POWER_MODE' defined but not used [-Werror=unused-const-variable=] 52 | static const u8 JC_SUBCMD_LOW_POWER_MODE = 0x08; | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:51:17: error: 'JC_SUBCMD_RESET_PAIRING_INFO' defined but not used [-Werror=unused-const-variable=] 51 | static const u8 JC_SUBCMD_RESET_PAIRING_INFO = 0x07; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:50:17: error: 'JC_SUBCMD_SET_HCI_STATE' defined but not used [-Werror=unused-const-variable=] 50 | static const u8 JC_SUBCMD_SET_HCI_STATE = 0x06; | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:49:17: error: 'JC_SUBCMD_GET_PAGE_LIST_STATE' defined but not used [-Werror=unused-const-variable=] 49 | static const u8 JC_SUBCMD_GET_PAGE_LIST_STATE = 0x05; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:48:17: error: 'JC_SUBCMD_TRIGGERS_ELAPSED' defined but not used [-Werror=unused-const-variable=] 48 | static const u8 JC_SUBCMD_TRIGGERS_ELAPSED = 0x04; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:46:17: error: 'JC_SUBCMD_REQ_DEV_INFO' defined but not used [-Werror=unused-const-variable=] 46 | static const u8 JC_SUBCMD_REQ_DEV_INFO = 0x02; | ^~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:45:17: error: 'JC_SUBCMD_MANUAL_BT_PAIRING' defined but not used [-Werror=unused-const-variable=] 45 | static const u8 JC_SUBCMD_MANUAL_BT_PAIRING = 0x01; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:44:17: error: 'JC_SUBCMD_STATE' defined but not used [-Werror=unused-const-variable=] 44 | static const u8 JC_SUBCMD_STATE /*= 0x00*/; | ^~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:40:17: error: 'JC_OUTPUT_MCU_DATA' defined but not used [-Werror=unused-const-variable=] 40 | static const u8 JC_OUTPUT_MCU_DATA = 0x11; | ^~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:39:17: error: 'JC_OUTPUT_RUMBLE_ONLY' defined but not used [-Werror=unused-const-variable=] 39 | static const u8 JC_OUTPUT_RUMBLE_ONLY = 0x10; | ^~~~~~~~~~~~~~~~~~~~~ drivers/hid/hid-nintendo.c:38:17: error: 'JC_OUTPUT_FW_UPDATE_PKT' defined but not used [-Werror=unused-const-variable=] 38 | static const u8 JC_OUTPUT_FW_UPDATE_PKT = 0x03; | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/JC_USB_CMD_CONN_STATUS +85 drivers/hid/hid-nintendo.c 42 43 /* Subcommand IDs */ 44 static const u8 JC_SUBCMD_STATE /*= 0x00*/; 45 static const u8 JC_SUBCMD_MANUAL_BT_PAIRING = 0x01; 46 static const u8 JC_SUBCMD_REQ_DEV_INFO = 0x02; 47 static const u8 JC_SUBCMD_SET_REPORT_MODE = 0x03; 48 static const u8 JC_SUBCMD_TRIGGERS_ELAPSED = 0x04; 49 static const u8 JC_SUBCMD_GET_PAGE_LIST_STATE = 0x05; 50 static const u8 JC_SUBCMD_SET_HCI_STATE = 0x06; 51 static const u8 JC_SUBCMD_RESET_PAIRING_INFO = 0x07; 52 static const u8 JC_SUBCMD_LOW_POWER_MODE = 0x08; 53 static const u8 JC_SUBCMD_SPI_FLASH_READ = 0x10; > 54 static const u8 JC_SUBCMD_SPI_FLASH_WRITE = 0x11; 55 static const u8 JC_SUBCMD_RESET_MCU = 0x20; 56 static const u8 JC_SUBCMD_SET_MCU_CONFIG = 0x21; 57 static const u8 JC_SUBCMD_SET_MCU_STATE = 0x22; 58 static const u8 JC_SUBCMD_SET_PLAYER_LIGHTS = 0x30; > 59 static const u8 JC_SUBCMD_GET_PLAYER_LIGHTS = 0x31; 60 static const u8 JC_SUBCMD_SET_HOME_LIGHT = 0x38; 61 static const u8 JC_SUBCMD_ENABLE_IMU = 0x40; > 62 static const u8 JC_SUBCMD_SET_IMU_SENSITIVITY = 0x41; > 63 static const u8 JC_SUBCMD_WRITE_IMU_REG = 0x42; > 64 static const u8 JC_SUBCMD_READ_IMU_REG = 0x43; 65 static const u8 JC_SUBCMD_ENABLE_VIBRATION = 0x48; > 66 static const u8 JC_SUBCMD_GET_REGULATED_VOLTAGE = 0x50; 67 68 /* Input Reports */ 69 static const u8 JC_INPUT_BUTTON_EVENT = 0x3F; 70 static const u8 JC_INPUT_SUBCMD_REPLY = 0x21; 71 static const u8 JC_INPUT_IMU_DATA = 0x30; 72 static const u8 JC_INPUT_MCU_DATA = 0x31; 73 static const u8 JC_INPUT_USB_RESPONSE = 0x81; 74 75 /* Feature Reports */ 76 static const u8 JC_FEATURE_LAST_SUBCMD = 0x02; 77 static const u8 JC_FEATURE_OTA_FW_UPGRADE = 0x70; 78 static const u8 JC_FEATURE_SETUP_MEM_READ = 0x71; 79 static const u8 JC_FEATURE_MEM_READ = 0x72; 80 static const u8 JC_FEATURE_ERASE_MEM_SECTOR = 0x73; > 81 static const u8 JC_FEATURE_MEM_WRITE = 0x74; > 82 static const u8 JC_FEATURE_LAUNCH = 0x75; 83 84 /* USB Commands */ > 85 static const u8 JC_USB_CMD_CONN_STATUS = 0x01; 86 static const u8 JC_USB_CMD_HANDSHAKE = 0x02; 87 static const u8 JC_USB_CMD_BAUDRATE_3M = 0x03; 88 static const u8 JC_USB_CMD_NO_TIMEOUT = 0x04; 89 static const u8 JC_USB_CMD_EN_TIMEOUT = 0x05; 90 static const u8 JC_USB_RESET = 0x06; 91 static const u8 JC_USB_PRE_HANDSHAKE = 0x91; 92 static const u8 JC_USB_SEND_UART = 0x92; 93 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip