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 9256CC54FB9 for ; Sat, 18 Nov 2023 21:51:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbjKRVft (ORCPT ); Sat, 18 Nov 2023 16:35:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKRVfr (ORCPT ); Sat, 18 Nov 2023 16:35:47 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C92C6129 for ; Sat, 18 Nov 2023 13:35:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700343343; x=1731879343; h=date:from:to:cc:subject:message-id:mime-version; bh=VymuWaacWeaq2SD97m0ZVzFc3UXoH/u+NQk7MnUnAL0=; b=i9hQ92bTTRzN25v3LpR26YNdRvRGJ+M6+wNUfiUvKd1kcR5XnCEq+qg9 PPWagqx75vWEa5fYXhrg16zgjCHqPegPjNnVPX1z0/+DCK/kyT1kDn+Jm shkcUTH50LQYpDi+vj8XOICZklCh/zA8rgMdhUDTQP83zwmm5TE2Gbjt0 CKYUiY+q5+woate7cP64NJzBrDmbGASNqn2uiBHAsuD9Agywk+ejbXhbA gZnXyL3pLpZK2Sq4DeBwixkv7Y3WLDu0cnSZhl01BhS9DExRft+fk8NR2 sFjYsHpCGHRFi+tkrmMJMj2llLbCfUe5MCWmdibLE+XT/0ynUvvVzz5yj Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10898"; a="422548554" X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="422548554" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Nov 2023 13:35:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,209,1695711600"; d="scan'208";a="7342321" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by fmviesa002.fm.intel.com with ESMTP; 18 Nov 2023 13:35:42 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r4SyZ-0004Jl-1y; Sat, 18 Nov 2023 21:35:39 +0000 Date: Sun, 19 Nov 2023 05:34:59 +0800 From: kernel test robot To: Markus Pargmann Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Jonathan Cameron Subject: drivers/iio/accel/bmc150-accel-i2c.c:64:36: warning: 'bmc150_accel_acpi_match' defined but not used Message-ID: <202311190544.BAldQrGA-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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b8f1fa2419c19c81bc386a6b350879ba54a573e1 commit: 55637c38377a301cd0768cee73021e43d05de543 iio: bmc150: Split the driver into core and i2c date: 8 years ago config: x86_64-buildonly-randconfig-004-20230906 (https://download.01.org/0day-ci/archive/20231119/202311190544.BAldQrGA-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/20231119/202311190544.BAldQrGA-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/202311190544.BAldQrGA-lkp@intel.com/ All warnings (new ones prefixed by >>): 806 | 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:542:33: note: in expansion of macro 'BUG_ON' 542 | #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) | ^~~~~~ arch/x86/include/asm/paravirt_types.h:592:17: note: in expansion of macro 'PVOP_TEST_NULL' 592 | PVOP_TEST_NULL(op); \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:609:9: note: in expansion of macro '____PVOP_VCALL' 609 | ____PVOP_VCALL(op.func, CLBR_RET_REG, \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:623:9: note: in expansion of macro '__PVOP_VCALLEESAVE' 623 | __PVOP_VCALLEESAVE(op, "", "") | ^~~~~~~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h:811:9: note: in expansion of macro 'PVOP_VCALLEE0' 811 | 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:542:33: note: in expansion of macro 'BUG_ON' 542 | #define PVOP_TEST_NULL(op) BUG_ON(op == NULL) | ^~~~~~ arch/x86/include/asm/paravirt_types.h:592:17: note: in expansion of macro 'PVOP_TEST_NULL' 592 | PVOP_TEST_NULL(op); \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:609:9: note: in expansion of macro '____PVOP_VCALL' 609 | ____PVOP_VCALL(op.func, CLBR_RET_REG, \ | ^~~~~~~~~~~~~~ arch/x86/include/asm/paravirt_types.h:623:9: note: in expansion of macro '__PVOP_VCALLEESAVE' 623 | __PVOP_VCALLEESAVE(op, "", "") | ^~~~~~~~~~~~~~~~~~ arch/x86/include/asm/paravirt.h:816:9: note: in expansion of macro 'PVOP_VCALLEE0' 816 | PVOP_VCALLEE0(pv_irq_ops.irq_enable); | ^~~~~~~~~~~~~ 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 * include/linux/kernfs.h:428:57: note: expected 'const char *' but argument is of type 'const unsigned char *' 428 | kernfs_find_and_get(struct kernfs_node *kn, const char *name) | ~~~~~~~~~~~~^~~~ 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); | ^~~~~~ drivers/iio/accel/bmc150-accel-i2c.c: At top level: drivers/iio/accel/bmc150-accel-i2c.c:65:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 65 | {"BSBA0150", bmc150}, | ^ In file included from drivers/iio/accel/bmc150-accel-i2c.c:23: include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ drivers/iio/accel/bmc150-accel-i2c.c:66:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 66 | {"BMC150A", bmc150}, | ^ include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ drivers/iio/accel/bmc150-accel-i2c.c:67:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 67 | {"BMI055A", bmi055}, | ^ include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ drivers/iio/accel/bmc150-accel-i2c.c:68:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 68 | {"BMA0255", bma255}, | ^ include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ drivers/iio/accel/bmc150-accel-i2c.c:69:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 69 | {"BMA250E", bma250e}, | ^ include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ drivers/iio/accel/bmc150-accel-i2c.c:70:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 70 | {"BMA222E", bma222e}, | ^ include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ drivers/iio/accel/bmc150-accel-i2c.c:71:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers] 71 | {"BMA0280", bma280}, | ^ include/linux/mod_devicetable.h:192:15: note: 'cls' declared here 192 | __u32 cls; | ^~~ >> drivers/iio/accel/bmc150-accel-i2c.c:64:36: warning: 'bmc150_accel_acpi_match' defined but not used [-Wunused-const-variable=] 64 | static const struct acpi_device_id bmc150_accel_acpi_match[] = { | ^~~~~~~~~~~~~~~~~~~~~~~ vim +/bmc150_accel_acpi_match +64 drivers/iio/accel/bmc150-accel-i2c.c 63 > 64 static const struct acpi_device_id bmc150_accel_acpi_match[] = { 65 {"BSBA0150", bmc150}, 66 {"BMC150A", bmc150}, 67 {"BMI055A", bmi055}, 68 {"BMA0255", bma255}, 69 {"BMA250E", bma250e}, 70 {"BMA222E", bma222e}, 71 {"BMA0280", bma280}, 72 { }, 73 }; 74 MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match); 75 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki