Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2251448ybz; Sat, 18 Apr 2020 19:53:49 -0700 (PDT) X-Google-Smtp-Source: APiQypK58huFuj4feNRS++ZHP3bNXjoJsmyoJ/mIRnBqfViEt+QYjnMEuDBJ7FqQqcl7YAaYvILk X-Received: by 2002:a17:906:3492:: with SMTP id g18mr9533480ejb.112.1587264828884; Sat, 18 Apr 2020 19:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587264828; cv=none; d=google.com; s=arc-20160816; b=Ypj53IE+XKWV6zamxo/L58OgbXtLjWQHdflAP0/fpZqRMS5o9K8YkeDTLquRhu2+98 LXs+Bdc63lLLz62qzgztfzhVUCPo++M9aPW1jDv/xZxJlOrQym8X9wBqFZjL7oODyn6y /ZVuaf9+MXOnI11Z2jsSTlAqsy9dQxAGPARJ/B/osrnk4tqOyxQvo/+PnT0VcnFr0Pbf EPLXUuc/ARfnPYAKbp7WBq6TQpCMNFCAaewPpRP4tQGrzwNcnuG45w1uL0z3k2YunGje zpUdPJljqbIqOpPoqTwsjRvuaj8cH4qfC3u6MirC43hQssFPKGcoG1GxvU60UjfumTvF XyKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=99Fxx7oBY1CqppVTXCFpydwUhRPmrId0DE75x2fliuk=; b=t4V41/f5a5aXnMJ58BHbP/st7yN7kUB6NAC1nGmjC79Bf5Hx+2g2zu+1noLk+Jl4us Sp4PRCTkL/+o1FyQUhesmPoTpg2GvXoN2v81X7KHcBxPdk9pBx9GNjyapv+hjGutGOta KY0P+Kbpduj1VBYmFE80PFsAt/PVjE42EAlOk+3hRRkcjAU/Yn6yR5ZtXSxp6tHKOj8n xN9WTPXOXbJ2iCMgBcS/cHHLJrNMB1JPvAptxyHE3dmalO9vdTmOqEfc0RXM2wBMM0Zg djK7hK3zrkjcGYCJLiMyKvqOArY/GKcpr0q50lVH7IdKENfWJOrpWvTnQcy79mPkXkl0 Y+aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u14si11223888ejz.292.2020.04.18.19.53.25; Sat, 18 Apr 2020 19:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725970AbgDSCty (ORCPT + 99 others); Sat, 18 Apr 2020 22:49:54 -0400 Received: from mga02.intel.com ([134.134.136.20]:20201 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbgDSCty (ORCPT ); Sat, 18 Apr 2020 22:49:54 -0400 IronPort-SDR: VZ6O97qvhYJOkULNrzhL/dIfDOdkmOmaBRFld1WbDH29GJyc6o7ljyyJ1DwF+kdRKcPTJZW8Kf GhQAc2l/9Fbg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2020 19:49:53 -0700 IronPort-SDR: ieWttVn/aTgl915MUJ3l1Ij0cePAR7msaTQU2DnDG7LXv7fV9bQr7cGjCCLJIRqtvSC4J55nt4 FbCwxRkCi+JQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,401,1580803200"; d="scan'208";a="455140969" Received: from pl-dbox.sh.intel.com (HELO intel.com) ([10.239.159.39]) by fmsmga005.fm.intel.com with ESMTP; 18 Apr 2020 19:49:50 -0700 Date: Sun, 19 Apr 2020 10:49:48 +0800 From: Philip Li To: Alexandre Belloni Cc: kbuild test robot , Jonathan Cameron , kbuild-all@lists.01.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Gregory CLEMENT , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] iio: adc: ti-ads8344: properly byte swap value Message-ID: <20200419024948.GK21730@intel.com> References: <20200415212257.161238-2-alexandre.belloni@bootlin.com> <202004161449.NY5hL54S%lkp@intel.com> <20200416205023.GA437042@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200416205023.GA437042@piout.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2020 at 10:50:23PM +0200, Alexandre Belloni wrote: > Hi, > > On 16/04/2020 14:22:03+0800, kbuild test robot wrote: > > Hi Alexandre, > > > > I love your patch! Yet something to improve: > > > > [auto build test ERROR on iio/togreg] > > [also build test ERROR on v5.7-rc1 next-20200415] > > [if your patch is applied to the wrong git tree, please drop us a note to help > > improve the system. BTW, we also suggest to use '--base' option to specify the > > base tree in git format-patch, please see https://stackoverflow.com/a/37406982] > > > > url: https://github.com/0day-ci/linux/commits/Alexandre-Belloni/iio-adc-ti-ads8344-improve-the-driver/20200416-073357 > > base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg > > config: c6x-allyesconfig (attached as .config) > > compiler: c6x-elf-gcc (GCC) 9.3.0 > > reproduce: > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=c6x > > > > I spent some time to reproduce and this is actually not that trivial > because your toolchains are linked with libisl22 and most distributions > still ship an older version. Maybe you can do something about that? Thanks for the feedback, we will resolve this to use old version in earliest time. > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kbuild test robot > > > > All errors (new ones prefixed by >>): > > > > > > vim +/302 +96 drivers/iio/adc/ti-ads8344.c > > > > 72 > > 73 static int ads8344_adc_conversion(struct ads8344 *adc, int channel, > > 74 bool differential) > > 75 { > > 76 struct spi_device *spi = adc->spi; > > 77 int ret; > > 78 u8 buf[3]; > > 79 > > 80 adc->tx_buf = ADS8344_START; > > 81 if (!differential) > > 82 adc->tx_buf |= ADS8344_SINGLE_END; > > 83 adc->tx_buf |= ADS8344_CHANNEL(channel); > > 84 adc->tx_buf |= ADS8344_CLOCK_INTERNAL; > > 85 > > 86 ret = spi_write(spi, &adc->tx_buf, 1); > > 87 if (ret) > > 88 return ret; > > 89 > > 90 udelay(9); > > 91 > > 92 ret = spi_read(spi, buf, sizeof(buf)); > > 93 if (ret) > > 94 return ret; > > 95 > > > 96 return buf[0] << 9 | buf[1] << 1 |?buf[2] >> 7; > > 97 } > > 98 > > > > I take it this is a false positive as I don't get any errors when > building this driver with the provided toolchain. However, I see a few > "internal compiler error: in priority, at haifa-sched.c:1599" > > -- > Alexandre Belloni, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com >