Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3678307rwr; Sat, 22 Apr 2023 09:27:21 -0700 (PDT) X-Google-Smtp-Source: AKy350bZ5aLHIcK+L/OksAJfZNwaedPwEGY+iB4GQoa+wjNVOHYlc3aETsRaqPI6BXE+vmYDtIhM X-Received: by 2002:a05:6a20:548c:b0:f2:fe5a:d471 with SMTP id i12-20020a056a20548c00b000f2fe5ad471mr3338812pzk.5.1682180840999; Sat, 22 Apr 2023 09:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682180840; cv=none; d=google.com; s=arc-20160816; b=hlnU8XZTUTys3RPoqXSr4OWTr/tUzoczgEMrQujGROQdh7vfJw9MCTZ9R671kh83zI F993XNljom7IcSn/VIfyjP7+QsO3BgjzdXcJ0C8+jNzN9Rz5OZiXRHLW1Mw/J27x6nH2 CEIIilQXMRBih5B7soAxmk9g7Ph5fWQMxlt59aon2Ct6JTgM8Zhn9stRuLS8mm0pHLGa 6XUQFW84YBjxzZgE5LNRVkx4vSmbg510Z94s4p/UagUzfdNPU47P8Jit27eBwgdstzdN JrtsxmVTem+0Nr0GgM9VeFK3JNJQrcRbu90CpACj5nr8oT+qGnNX3rzwgheCcv+z7l9Y XJjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2cV6XwxzXMOnvJXMa6MLs8SoeBtwnPs9AMJOUTLktAc=; b=H4cXPWa+jDzTUGfpkL5d7GGIl/TCjmyHY9wScwWHsZOAwZw5yla6LEasR/dVqZCzhs vLMS89AlZFOD2BBAUn5ogd6A+ni+mZmNPlHSTvSxpqc94LCo7N7ahDOzEonyv09avYMv ULlpX32SMtXS3qAlxTs48LaBda5NXDlljaFysjjRwYwvKrR6n+zD7MQY0RfjVJn6VDIq MF14M9yccom7QC8x5mkKVzd1YMFVBvnHY3RUfGqHPKX8+sjpURTAL+e/V4wY9Y9SReG6 vgrKM4YQpUDbdRNYXCD1EwVlguoXE+D2rS5uBob5IVVaFzKSzt0qHM345HnbQDzwsKX8 Ozhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RgXpeKe7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e127-20020a636985000000b00524ecf898a2si2896396pgc.359.2023.04.22.09.27.07; Sat, 22 Apr 2023 09:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RgXpeKe7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229769AbjDVQJW (ORCPT + 99 others); Sat, 22 Apr 2023 12:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbjDVQJV (ORCPT ); Sat, 22 Apr 2023 12:09:21 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9A17211E; Sat, 22 Apr 2023 09:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682179758; x=1713715758; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=UxZNNg2iR21QuxXZOviYjeKG5ki4ex9gVhzKOBg6N/A=; b=RgXpeKe73eWRpqI/xu8WbUY5J5zvkrn+/cFX+14ijyD0SEw28TBi7CTU m3aQVpQimiAWBQxR/s/R6/8EDQaIYQbkYL5ztJAS1kTvIpaeBcnZBQW3/ w5IP5MPz3jIA+Wh6GBpAyoiOkuHZrLgEFDF2dNM92TVVhoglSuUI+Wb9e CB/oxAmwaHjXxj/MMhFEt4Dmvo35BKMKzZxRvI924O7t9cr8i0KfgGGGi /8bgtAT2qCDFFLBTyRR9L74XrzseRbbJHFrEqzCwdyl5PRIdWxrcjxIWa JNAAu98NCDzEufBgYYls6OCgm95GeJ79cNg0cY7cOogF964EeddTI2e7q g==; X-IronPort-AV: E=McAfee;i="6600,9927,10688"; a="325771755" X-IronPort-AV: E=Sophos;i="5.99,218,1677571200"; d="scan'208";a="325771755" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2023 09:09:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10688"; a="692580814" X-IronPort-AV: E=Sophos;i="5.99,218,1677571200"; d="scan'208";a="692580814" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 22 Apr 2023 09:09:14 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pqFnU-003fcv-2G; Sat, 22 Apr 2023 19:09:12 +0300 Date: Sat, 22 Apr 2023 19:09:12 +0300 From: Andy Shevchenko To: kernel test robot Cc: Mehdi Djait , jic23@kernel.org, mazziesaccount@gmail.com, oe-kbuild-all@lists.linux.dev, krzysztof.kozlowski+dt@linaro.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 5/5] iio: accel: Add support for Kionix/ROHM KX132-1211 accelerometer Message-ID: References: <202304220729.FCofPRvH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202304220729.FCofPRvH-lkp@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 22, 2023 at 07:19:44AM +0800, kernel test robot wrote: > Hi Mehdi, > > kernel test robot noticed the following build warnings: I believe it's not just a warning, it's a full functional error in the code. > 686 { > 687 struct device *dev = regmap_get_device(data->regmap); > 688 __le16 buf_status; > 689 int ret, fifo_bytes; > 690 > 691 ret = regmap_bulk_read(data->regmap, data->chip_info->buf_status1, > 692 &buf_status, sizeof(buf_status)); > 693 if (ret) { > 694 dev_err(dev, "Error reading buffer status\n"); > 695 return ret; > 696 } > 697 > > 698 buf_status &= data->chip_info->buf_smp_lvl_mask; > 699 fifo_bytes = le16_to_cpu(buf_status); You need to mask in the same endianess space, i.o.w. either on CPU or device side. I believe you wanted to have fifo_bytes to be masked, but I'm not sure. > 701 return fifo_bytes; > 702 } -- With Best Regards, Andy Shevchenko