Received: by 2002:a05:622a:4ca:b0:41c:c224:f26f with SMTP id q10csp524077qtx; Thu, 16 Nov 2023 10:23:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/pWepPeT9QjSobj9uppDt0tnzUHYqWEIix1Szc/JVCzJwxSJBU/u1DJW1qFUUj5MfIeJL X-Received: by 2002:a17:902:dac1:b0:1cc:6dd4:594d with SMTP id q1-20020a170902dac100b001cc6dd4594dmr10320909plx.42.1700159038555; Thu, 16 Nov 2023 10:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700159038; cv=none; d=google.com; s=arc-20160816; b=RqmNCJmj2uFgr0oY5te+rYWSpNAYk46vFQu83MWOR3NaiaLeW1SsTZ3RnkJUQ4PYA4 PyT/81hQYGjOZuvdG6x4VoovefQJq+bzcyRnry/YlfA8owK75TlCBpnG00SEy2biSIM2 Q6tCgWiGEDUchkOi9jBdORMiKQf6L/wFYta1Ze9laR5SwD2MkWlSVksaWRZwJBFmYjz+ 3IcuDOZr7D/3JC4KfEf1bjuf2u1OwIoAhF7DplFexkF5yxdwiIkG9LdyNck5es2Gjdyv VrHHO/w+paawHsfUZTqA5chj+jW+6l7hSbqWlflhBTXXSjGDV1HYeFne+f1NuM3K0ZWF V9yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aJyiBMaOOmw6qw1MMSeuNLliX6F8Tgsl/mSZOXC1KnU=; fh=doPz6msTVD/vnWhhU2Faf7NDMsqZYyEbvyZTh6JRE7M=; b=w+VKkc/u7yraxqcbeK7jpZn7tRJJtc6B0iKlfo9OnK8VlVDraZDgBOiJ/HbAPmjui2 xm+SeAUYqP9h2whbELeUKyoarRpOlEuxzTHc8ZPyqXJNucsXQhVAtzJDo/x7q8kEPQrz IdkgYrO94He5eYlsTtloiuxXUgDvqTvqZVyJWC3ELWivEorh+OpDt9jKNLKgjSzrQJQK KB7Fk57283X+Y6Jg3bXDhEzkSHUuCqaLwTwT0gWeybDs17Om4WvZMMNrfgp1cmrRmLjJ J61RMEtKSg200qzPR7UnKFIfQi4FHuGSm930g9Bjb1F518uCrFShVXCx7Y89cMCHAhku lD8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="h/rxVsYA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id m14-20020a170902f64e00b001c62161b18esi13882329plg.580.2023.11.16.10.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 10:23:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="h/rxVsYA"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A101281CEB2B; Thu, 16 Nov 2023 10:23:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345479AbjKPSXc (ORCPT + 99 others); Thu, 16 Nov 2023 13:23:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345441AbjKPSXa (ORCPT ); Thu, 16 Nov 2023 13:23:30 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2A0FD4F; Thu, 16 Nov 2023 10:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700159007; x=1731695007; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8NGGQ/mtiHg+Lgu3IflKUbsA+rp/7C3d0ZkVHyY0Wvk=; b=h/rxVsYAQH9MdyF0ca4pqWTMLYsQ0dSBn6kgsNZAijrANNs8ix+Rfs82 M3oFikz+b820Ii632QbiwS6FWi3fzTWKqpa4YnABzdnd/bljbtLb7QRwL +j8H5EC1eQ+Xcii/SskxRYzE26yqzkazBLRZz03Ieht+i+MRo8gGDE5ly tVP/NJKgjy9KBT2loKW/k2+OSSG4GIcsM1fepcBugQ7pvfl7F/7tB8UXi nKru8bqgfaSA6T0Cgw9+W41eftlmcWjxz1A2djvX7b+/oE+CiDLWB3P0k O3fMeCEzcY2CYwnGedjG6mIG9Y9af643jafi56ePKsuV9h1nZZmaafiV6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="4227232" X-IronPort-AV: E=Sophos;i="6.04,204,1695711600"; d="scan'208";a="4227232" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 10:23:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="758918252" X-IronPort-AV: E=Sophos;i="6.04,204,1695711600"; d="scan'208";a="758918252" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 16 Nov 2023 10:23:24 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r3h1M-0001zb-13; Thu, 16 Nov 2023 18:23:20 +0000 Date: Fri, 17 Nov 2023 02:23:16 +0800 From: kernel test robot To: Hiten Chauhan , jmaneyrol@invensense.com, jic23@kernel.org, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Hiten Chauhan Subject: Re: [PATCH v2 1/1] Added tilt interrupt support in inv_icm42600 Message-ID: <202311170235.HaVJnmWa-lkp@intel.com> References: <20231116134528.21467-1-hiten.chauhan@siliconsignals.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116134528.21467-1-hiten.chauhan@siliconsignals.io> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 10:23:55 -0800 (PST) Hi Hiten, kernel test robot noticed the following build errors: [auto build test ERROR on jic23-iio/togreg] [also build test ERROR on linus/master v6.7-rc1 next-20231116] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Hiten-Chauhan/Added-tilt-interrupt-support-in-inv_icm42600/20231116-214808 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg patch link: https://lore.kernel.org/r/20231116134528.21467-1-hiten.chauhan%40siliconsignals.io patch subject: [PATCH v2 1/1] Added tilt interrupt support in inv_icm42600 config: arm-randconfig-001-20231117 (https://download.01.org/0day-ci/archive/20231117/202311170235.HaVJnmWa-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231117/202311170235.HaVJnmWa-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/202311170235.HaVJnmWa-lkp@intel.com/ All error/warnings (new ones prefixed by >>): >> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:117:61: error: macro "DEVICE_ATTR_RW" passed 4 arguments, but takes just 1 117 | tilt_interrupt_show, tilt_interrupt_store); | ^ In file included from drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:7: include/linux/device.h:179: note: macro "DEVICE_ATTR_RW" defined here 179 | #define DEVICE_ATTR_RW(_name) \ | >> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:116:8: error: type defaults to 'int' in declaration of 'DEVICE_ATTR_RW' [-Werror=implicit-int] 116 | static DEVICE_ATTR_RW(tilt_interrupt, 0644, | ^~~~~~~~~~~~~~ >> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:120:10: error: 'dev_attr_tilt_interrupt' undeclared here (not in a function) 120 | &dev_attr_tilt_interrupt.attr, | ^~~~~~~~~~~~~~~~~~~~~~~ >> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:116:8: warning: 'DEVICE_ATTR_RW' defined but not used [-Wunused-variable] 116 | static DEVICE_ATTR_RW(tilt_interrupt, 0644, | ^~~~~~~~~~~~~~ >> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:82:16: warning: 'tilt_interrupt_store' defined but not used [-Wunused-function] 82 | static ssize_t tilt_interrupt_store(struct device *dev, | ^~~~~~~~~~~~~~~~~~~~ >> drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c:65:16: warning: 'tilt_interrupt_show' defined but not used [-Wunused-function] 65 | static ssize_t tilt_interrupt_show(struct device *dev, | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/DEVICE_ATTR_RW +117 drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c > 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 14 #include 15 #include 16 #include 17 #include 18 19 #include "inv_icm42600.h" 20 #include "inv_icm42600_temp.h" 21 #include "inv_icm42600_buffer.h" 22 23 #define INV_ICM42600_ACCEL_CHAN(_modifier, _index, _ext_info) \ 24 { \ 25 .type = IIO_ACCEL, \ 26 .modified = 1, \ 27 .channel2 = _modifier, \ 28 .info_mask_separate = \ 29 BIT(IIO_CHAN_INFO_RAW) | \ 30 BIT(IIO_CHAN_INFO_CALIBBIAS), \ 31 .info_mask_shared_by_type = \ 32 BIT(IIO_CHAN_INFO_SCALE), \ 33 .info_mask_shared_by_type_available = \ 34 BIT(IIO_CHAN_INFO_SCALE) | \ 35 BIT(IIO_CHAN_INFO_CALIBBIAS), \ 36 .info_mask_shared_by_all = \ 37 BIT(IIO_CHAN_INFO_SAMP_FREQ), \ 38 .info_mask_shared_by_all_available = \ 39 BIT(IIO_CHAN_INFO_SAMP_FREQ), \ 40 .scan_index = _index, \ 41 .scan_type = { \ 42 .sign = 's', \ 43 .realbits = 16, \ 44 .storagebits = 16, \ 45 .endianness = IIO_BE, \ 46 }, \ 47 .ext_info = _ext_info, \ 48 } 49 50 uint8_t inv_icm42605_int_reg; 51 52 enum inv_icm42600_accel_scan { 53 INV_ICM42600_ACCEL_SCAN_X, 54 INV_ICM42600_ACCEL_SCAN_Y, 55 INV_ICM42600_ACCEL_SCAN_Z, 56 INV_ICM42600_ACCEL_SCAN_TEMP, 57 INV_ICM42600_ACCEL_SCAN_TIMESTAMP, 58 }; 59 60 static const struct iio_chan_spec_ext_info inv_icm42600_accel_ext_infos[] = { 61 IIO_MOUNT_MATRIX(IIO_SHARED_BY_ALL, inv_icm42600_get_mount_matrix), 62 {}, 63 }; 64 > 65 static ssize_t tilt_interrupt_show(struct device *dev, 66 struct device_attribute *attr, char *buf) 67 { 68 struct inv_icm42600_state *st = dev_get_drvdata(dev); 69 unsigned int val; 70 int ret; 71 72 ret = regmap_read(st->map, inv_icm42605_int_reg, &val); 73 74 if (ret != 0) 75 return ret; 76 77 snprintf(buf, PAGE_SIZE, "Read reg %x value %x\n", inv_icm42605_int_reg, val); 78 79 return strlen(buf); 80 } 81 > 82 static ssize_t tilt_interrupt_store(struct device *dev, 83 struct device_attribute *attr, const char *buf, 84 size_t count) 85 { 86 struct inv_icm42600_state *st = dev_get_drvdata(dev); 87 int ret; 88 int value; 89 90 if (!st) 91 return -EINVAL; 92 93 if (kstrtoint(buf, 10, &value)) 94 return -EINVAL; 95 96 inv_icm42605_int_reg = INV_ICM42605_REG_INT_STATUS3; 97 98 switch (value) { 99 case 1: 100 ret = inv_icm42605_generate_tilt_interrupt(st); 101 if (ret != 0) 102 return -EIO; 103 break; 104 case 0: 105 ret = inv_icm42605_disable_tilt_interrupt(st); 106 if (ret != 0) 107 return -EIO; 108 break; 109 default: 110 return -EINVAL; 111 } 112 113 return count; 114 } 115 > 116 static DEVICE_ATTR_RW(tilt_interrupt, 0644, > 117 tilt_interrupt_show, tilt_interrupt_store); 118 119 static struct attribute *icm42605_attrs[] = { > 120 &dev_attr_tilt_interrupt.attr, 121 NULL, 122 }; 123 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki