Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1695300ybz; Thu, 16 Apr 2020 13:52:51 -0700 (PDT) X-Google-Smtp-Source: APiQypJwOQbQQtqxm+TA6DRa6r3Ecf5bgdGiSm3q2trSNwN+deFfLBm9x6St8cdvZsmoaBiHIRfq X-Received: by 2002:a17:906:b2c4:: with SMTP id cf4mr11793718ejb.340.1587070371639; Thu, 16 Apr 2020 13:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587070371; cv=none; d=google.com; s=arc-20160816; b=I2N3mBdyJaeE+1tzLCJCJ5mTiaikBBbprWx7y9DUG6/PjUtU+Rv5MH06tWwgKkf8TZ G5jJdL1x9fBF4cT6PiKqf5CsNkansl2UAg+ncZkhpQL8U5AogWuC0mz9LtujwBhMKWiJ 42t4uwplXEuHek4ft5Rr/UlkNI4LV0+Cr4JdS9LYmKqbhmjBmkZE2ItPJJB487kR4/FJ oVywLLKtqBHAEDXCuEs6prM+KTxFWy3mqPORRSklo6nOotrU3w0/QiX5E7fO5AHEy7yk wvfG2Mzqnhirg/PHtkBcAq1cqZ/7QzqQ54l+5FkSIYZCRfvXoPpm9kOb9SWz/ep55DQE cKVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6Mu43u8SALUoufqSi/icTJ0l90z3YuCvjntFSZw8yFo=; b=lIQIsxQvrI/5H7sNPbPA9NQKm81LFTYW+BP9v/q3ibbwJAtCSIVJMdQZVWM/jGB+G0 v9jIPBwAl7Qt5EBNysYmnbGMufwCCFo2lMKlDFLhYZXHeRlAgS//Uhx1DjtqNI9qN0jI 0vAVdBwKCMS06bJPbnOjvcVZ7GUd/AiljvFuS4lHb0cW6r4aTDBEogG0GFupaK0b6KRv OFXf1/Wn24azAZdLVcV2i01Zf6kQR2W8fQl1ouaGpkWZGq4MRDjLyibzwG/98reaS+zC z0RJol9or5IJiNiOJCWSwYJClKaV3WgFUqT+XBPzBlegnwsgT15kZIOCIyVfVaJHo7tq 1gvA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si12723914ejd.76.2020.04.16.13.52.28; Thu, 16 Apr 2020 13:52:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728167AbgDPUu2 (ORCPT + 99 others); Thu, 16 Apr 2020 16:50:28 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:34979 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgDPUu1 (ORCPT ); Thu, 16 Apr 2020 16:50:27 -0400 X-Originating-IP: 86.202.105.35 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 866F0C0007; Thu, 16 Apr 2020 20:50:23 +0000 (UTC) Date: Thu, 16 Apr 2020 22:50:23 +0200 From: Alexandre Belloni To: kbuild test robot Cc: 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: <20200416205023.GA437042@piout.net> References: <20200415212257.161238-2-alexandre.belloni@bootlin.com> <202004161449.NY5hL54S%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202004161449.NY5hL54S%lkp@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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