From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE9E6C4167B for ; Sun, 3 Dec 2023 06:33:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233268AbjLCGdt (ORCPT ); Sun, 3 Dec 2023 01:33:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233195AbjLCGdk (ORCPT ); Sun, 3 Dec 2023 01:33:40 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CADCF9 for ; Sat, 2 Dec 2023 22:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701585202; x=1733121202; h=date:from:to:cc:subject:message-id:mime-version; bh=xexea+NOib+YLeZ4jRSKxa2/C3yLt0Dp4roi4TxCuxY=; b=AsP2edhmEzBYrsImEjhlhLwZokLPgcyHDMUupTQH1gKuM8EQn/DE30MJ lPua4K+15JO+JLadehMHVW8DxNg6HvQ81IwdKD8kY16ZGh34WUK1rw2pR lp+Ei21QlMsj2X/FMB353NRaWtN9FVwQVEbxsDKZEIDInwS0815zAb+EC F7RdJQkeA+1hxleXoziULDmQUADPaZWwsYZV40u5LCKi3du/F99k3eC9Q XBWZHYMzA64fDxeGI6Ih33VZcHeh5IuqCzudPtCRN0OlxnwAYhVkUysWw 30tdfiM6szz5CU+l/n/KTmQdyRk5M+oceN2HU8RudYT0KMksZPLYL/Esm w==; X-IronPort-AV: E=McAfee;i="6600,9927,10912"; a="6906514" X-IronPort-AV: E=Sophos;i="6.04,246,1695711600"; d="scan'208";a="6906514" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2023 22:32:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10912"; a="770191180" X-IronPort-AV: E=Sophos;i="6.04,246,1695711600"; d="scan'208";a="770191180" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 02 Dec 2023 22:32:46 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1r9g20-0006L8-0X; Sun, 03 Dec 2023 06:32:44 +0000 Date: Sun, 3 Dec 2023 14:31:58 +0800 From: kernel test robot To: Teodora Baluta Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Jonathan Cameron Subject: drivers/iio/accel/mxc4005.c:328:36: warning: 'mxc4005_acpi_match' defined but not used Message-ID: <202312031104.P7iaDETK-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Teodora, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 968f35f4ab1c0966ceb39af3c89f2e24afedf878 commit: 077377fc4f74899c58e946e47352216412d0bb3a iio: accel: add support for mxc4005 accelerometer date: 8 years ago config: x86_64-buildonly-randconfig-004-20230906 (https://download.01.org/0day-ci/archive/20231203/202312031104.P7iaDETK-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231203/202312031104.P7iaDETK-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202312031104.P7iaDETK-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/include/asm/paravirt_types.h:545:33: note: in expansion of macro 'BUG_ON' 545 | #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) | ^~~~~~ arch/x86/include/asm/paravirt_types.h:555:17: note: in expansion of macro 'PVOP_TEST_NULL' 555 | PVOP_TEST_NULL(op); \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:587:9: note: in expansion of macro '____PVOP_CALL' 587 | ____PVOP_CALL(rettype, op.func, CLBR_RET_REG, \ | ^~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:624:9: note: in expansion of macro '__PVOP_CALLEESAVE' 624 | __PVOP_CALLEESAVE(rettype, op, "", "") | ^~~~~~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h:831:16: note: in expansion of macro 'PVOP_CALLEE0' 831 | return PVOP_CALLEE0(unsigned long, pv_irq_ops.save_fl); | ^~~~~~~~~~~~ arch/x86/include/asm/paravirt.h: In function 'arch_local_irq_restore': include/asm-generic/bug.h:145:47: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 145 | #define BUG_ON(condition) do { if (condition) ; } while (0) | ^ arch/x86/include/asm/paravirt_types.h:545:33: note: in expansion of macro 'BUG_ON' 545 | #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) | ^~~~~~ arch/x86/include/asm/paravirt_types.h:595:17: note: in expansion of macro 'PVOP_TEST_NULL' 595 | PVOP_TEST_NULL(op); \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:612:9: note: in expansion of macro '____PVOP_VCALL' 612 | ____PVOP_VCALL(op.func, CLBR_RET_REG, \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:637:9: note: in expansion of macro '__PVOP_VCALLEESAVE' 637 | __PVOP_VCALLEESAVE(op, "", "", PVOP_CALL_ARG1(arg1)) | ^~~~~~~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h:836:9: note: in expansion of macro 'PVOP_VCALLEE1' 836 | PVOP_VCALLEE1(pv_irq_ops.restore_fl, f); | ^~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h: In function 'arch_local_irq_disable': include/asm-generic/bug.h:145:47: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 145 | #define BUG_ON(condition) do { if (condition) ; } while (0) | ^ arch/x86/include/asm/paravirt_types.h:545:33: note: in expansion of macro 'BUG_ON' 545 | #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) | ^~~~~~ arch/x86/include/asm/paravirt_types.h:595:17: note: in expansion of macro 'PVOP_TEST_NULL' 595 | PVOP_TEST_NULL(op); \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:612:9: note: in expansion of macro '____PVOP_VCALL' 612 | ____PVOP_VCALL(op.func, CLBR_RET_REG, \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:626:9: note: in expansion of macro '__PVOP_VCALLEESAVE' 626 | __PVOP_VCALLEESAVE(op, "", "") | ^~~~~~~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h:841:9: note: in expansion of macro 'PVOP_VCALLEE0' 841 | PVOP_VCALLEE0(pv_irq_ops.irq_disable); | ^~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h: In function 'arch_local_irq_enable': include/asm-generic/bug.h:145:47: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 145 | #define BUG_ON(condition) do { if (condition) ; } while (0) | ^ arch/x86/include/asm/paravirt_types.h:545:33: note: in expansion of macro 'BUG_ON' 545 | #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) | ^~~~~~ arch/x86/include/asm/paravirt_types.h:595:17: note: in expansion of macro 'PVOP_TEST_NULL' 595 | PVOP_TEST_NULL(op); \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:612:9: note: in expansion of macro '____PVOP_VCALL' 612 | ____PVOP_VCALL(op.func, CLBR_RET_REG, \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:626:9: note: in expansion of macro '__PVOP_VCALLEESAVE' 626 | __PVOP_VCALLEESAVE(op, "", "") | ^~~~~~~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h:846:9: note: in expansion of macro 'PVOP_VCALLEE0' 846 | PVOP_VCALLEE0(pv_irq_ops.irq_enable); | ^~~~~~~~~~~~~ include/asm-generic/fixmap.h: In function 'virt_to_fix': include/asm-generic/bug.h:145:47: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 145 | #define BUG_ON(condition) do { if (condition) ; } while (0) | ^ include/asm-generic/fixmap.h:37:9: note: in expansion of macro 'BUG_ON' 37 | BUG_ON(vaddr >= FIXADDR_TOP || vaddr < FIXADDR_START); | ^~~~~~ In file included from include/linux/kobject.h:21, from include/linux/module.h:17: include/linux/sysfs.h: In function 'sysfs_get_dirent': include/linux/sysfs.h:496:44: warning: pointer targets in passing argument 2 of 'kernfs_find_and_get' differ in signedness [-Wpointer-sign] 496 | return kernfs_find_and_get(parent, name); | ^~~~ | | | const unsigned char * In file included from include/linux/sysfs.h:15: include/linux/kernfs.h:424:57: note: expected 'const char *' but argument is of type 'const unsigned char *' 424 | kernfs_find_and_get(struct kernfs_node *kn, const char *name) | ~~~~~~~~~~~~^~~~ drivers/iio/accel/mxc4005.c: At top level: drivers/iio/accel/mxc4005.c:329:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 329 | {"MXC4005", 0}, | ^ In file included from include/linux/i2c.h:29, from drivers/iio/accel/mxc4005.c:17: include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ >> drivers/iio/accel/mxc4005.c:328:36: warning: 'mxc4005_acpi_match' defined but not used [-Wunused-const-variable=] 328 | static const struct acpi_device_id mxc4005_acpi_match[] = { | ^~~~~~~~~~~~~~~~~~ vim +/mxc4005_acpi_match +328 drivers/iio/accel/mxc4005.c 327 > 328 static const struct acpi_device_id mxc4005_acpi_match[] = { 329 {"MXC4005", 0}, 330 { }, 331 }; 332 MODULE_DEVICE_TABLE(acpi, mxc4005_acpi_match); 333 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki