Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp58574pxb; Fri, 20 Aug 2021 18:37:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMXtfvCzPagdhvEALEEPp84h10R9FAUcoQ6cuAfpiO3LbDJRjJEYAKh3FQtI4QmUXDsqWv X-Received: by 2002:a17:906:fa06:: with SMTP id lo6mr24521827ejb.7.1629509876642; Fri, 20 Aug 2021 18:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629509876; cv=none; d=google.com; s=arc-20160816; b=EUpaJDnvvh33pV6JRRKXn9ZNznO8OTjzsymHK0LApafYMV8n6XOOiEfax6uWHarg9j 7bziPJmsTsfn78GiEvMIGp8UNOZHjn8kqj7YbRMR0yhzlcca52rmrEN18ICvY8rXY4m1 HzWuyp2KIX3BV6TMoFY5mpLTSd7GKPQsOgviLrsf16clu6WsFAzhiml2BTdo2q0XvMl2 myrlvHOkbc8rkQBNf5DaxZhkb86UPsa0Tze3KkzMbqw0lSwxrKw8RnugG1eK7878cYOS KnokbvZCfjgscOBpoqTFJdWzfhNSijCDyTyAv3I93789vx3+3hZfNVgSy5lB88YoKTIQ 4lhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=B4298Vbahy2JXlz0xdPNcw6YwLJivhPPsoL7ofiBcYE=; b=Al5ETMifIOm5S4nPXR3VdPgJAv16SVez7hQcKeX970bL1z41TCn3RFSqDTDK5SgPlv Cd4uiZtbX+cv/JKuZYgugGSQVi0g0ddy2JpdbszcNxJsnhxSfy5va5zz5NGdLk/kbbWC 0gys5P60Z09yGSU7muJf6afE6IIV5913mVnxnJVYVFZ4y9MOrAwqXWok4i+YNyIOOZOr bcw4dY0bYecd8Xx74XBsoeTxPHIknblwrj2yrlm4yuczO1X/VtynU8H+NBcE7+loAvqL 4DATS63iW1787zBoS1NYlqqLElwL8aDxIa8dlrFeh2vm65Mj3L1aHSm3uykrLsCHj6YV xR2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DzqAnbvJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq14si681698edb.57.2021.08.20.18.37.16; Fri, 20 Aug 2021 18:37:56 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DzqAnbvJ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232582AbhHUBd4 (ORCPT + 99 others); Fri, 20 Aug 2021 21:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbhHUBdz (ORCPT ); Fri, 20 Aug 2021 21:33:55 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A54C061575; Fri, 20 Aug 2021 18:33:17 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id t190so12792566qke.7; Fri, 20 Aug 2021 18:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:date:message-id:cc:subject :from:to:references:in-reply-to; bh=B4298Vbahy2JXlz0xdPNcw6YwLJivhPPsoL7ofiBcYE=; b=DzqAnbvJBrxk/6qkkGeTdcLFMYfuyvYXzoNoNzNnNyVcXa60gRE6YdGYNfkZWRtelQ LReB+W7R6Pu1ZUrIBO2jEnvqRqwonHenD7eIeRaCRQ7LAVAxZ+QWVO3TgpFTR2J/FGSt 9eK9X8MYs09Fft35vIo8/tRi+ZuoUT7jM7oTZ/q2+Q0xMANsw7m7HcxyV7cbiF6PdE1V uOXslJrMgr11az3OS368w6vLBcjpDWaiuPgJ4tWNDZ7PqV21vuZRSjcFfpH1fnht6FJp JFlF1ZhaQzMOjXAic+qLcasQWUG47lgCqQXeJxX9WtmEvxLQElh18zJnmaqOox794jkJ 57WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:date :message-id:cc:subject:from:to:references:in-reply-to; bh=B4298Vbahy2JXlz0xdPNcw6YwLJivhPPsoL7ofiBcYE=; b=USMyQwK45sqb9y+WyQ293W6H3pN0z1dq70hez2SOusY1smdZA+QymTcOsXiSjH4m56 1BXDELa8yGX2kjP/RqVXUoZOrDO54KZuQ+995SYhU6VGeGMWNTTjH2fOojeV8YXwNHC3 juO5H9Ith/xLRel8fB/hEtKXcsDeRw6o3fuJ5BPkdALcrtXwpnJ2gLmhyZcT1hVhsw90 S0qym/OP4UT3k3gYS267wr6B6qFMgPKXPv0r7URGNITB8GsTlygnq6geUU7P73RzDHjw 5wkhCPZWFaQg7oikJ7VZ1GLIEoOuafmQRKAg1dNQjeSqgOOwwd7YqXg4QasBI4/WWJ0d bZDQ== X-Gm-Message-State: AOAM530v9POxejy6sljJ0sguVo8UXqSh7+RqIzcOOQ6FitaiurFfdjtV 1hl4qL5IZrdf6OciKfJOa7s= X-Received: by 2002:a05:620a:228a:: with SMTP id o10mr11723057qkh.342.1629509594983; Fri, 20 Aug 2021 18:33:14 -0700 (PDT) Received: from localhost (198-48-202-89.cpe.pppoe.ca. [198.48.202.89]) by smtp.gmail.com with ESMTPSA id d7sm3389019qth.70.2021.08.20.18.33.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Aug 2021 18:33:14 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 20 Aug 2021 21:33:13 -0400 Message-Id: Cc: , , , , Subject: Re: [PATCH v8 09/14] iio: afe: rescale: fix accuracy for small fractional scales From: "Liam Beguin" To: "kernel test robot" , , , References: <20210820191714.69898-10-liambeguin@gmail.com> <202108210716.pxy9O6XW-lkp@intel.com> In-Reply-To: <202108210716.pxy9O6XW-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri Aug 20, 2021 at 7:37 PM EDT, kernel test robot wrote: > Hi Liam, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on 6cbb3aa0f9d5d23221df787cf36f74d3866fdb78] > > url: > https://github.com/0day-ci/linux/commits/Liam-Beguin/iio-afe-add-temperat= ure-rescaling-support/20210821-032112 > base: 6cbb3aa0f9d5d23221df787cf36f74d3866fdb78 > config: nds32-buildonly-randconfig-r005-20210821 (attached as .config) > compiler: nds32le-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=3D1 build): > wget > https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross > -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # > https://github.com/0day-ci/linux/commit/e5c2e1505fa3f8cf9fe6d3a21f3a5c585= efc6dce > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review > Liam-Beguin/iio-afe-add-temperature-rescaling-support/20210821-032112 > git checkout e5c2e1505fa3f8cf9fe6d3a21f3a5c585efc6dce > # save the attached .config to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross > O=3Dbuild_dir ARCH=3Dnds32 SHELL=3D/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > nds32le-linux-ld: drivers/iio/afe/iio-rescale.o: in function > `rescale_process_scale': > >> iio-rescale.c:(.text+0x5f4): undefined reference to `__divdi3' > >> nds32le-linux-ld: iio-rescale.c:(.text+0x5f8): undefined reference to = `__divdi3' My mistake, I'll replace the division by a div64_s64(). --- a/drivers/iio/afe/iio-rescale.c +++ b/drivers/iio/afe/iio-rescale.c @@ -53,7 +53,7 @@ int rescale_process_scale(struct rescale *rescale, int sc= ale_type, else tmp =3D 1 << *val2; =20 - if (abs(rem) > 10000000 && abs(*val / tmp) < 100) { + if (abs(rem) > 10000000 && abs(div64_s64(*val, tmp)) < 100) { *val =3D div_s64_rem(*val, tmp, &rem2); =20 *val2 =3D div_s64(rem, tmp); The if statement is also misaligned here. I'll fix that too. Thanks, Liam > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org