Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3836231pxb; Mon, 27 Sep 2021 03:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQqF+qZoG7BAMOxITn+rZfsXQwlUoG8MSQrUzfCBCtEhuHddRDBv6YQAbbuMzrO2bCex1z X-Received: by 2002:a17:902:8b8b:b0:13d:e91c:a1b9 with SMTP id ay11-20020a1709028b8b00b0013de91ca1b9mr15517492plb.60.1632739880151; Mon, 27 Sep 2021 03:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632739880; cv=none; d=google.com; s=arc-20160816; b=FZcjkURV9ieIvZpmqdxYUSCqwqxKmefvRaxf/X5ShAKd7kGJ5kVmLvkuCgnyirczfy LcR/SkvY+aMWwKJqUxprSthbf9xmc2xK6A+ZgxpeMDaemZ+lBBBUAkjV13ogGMA1dzWB a23/IpYGOIkyKxRvQytRovtwoqsmtEiDw+GXDy9OHNvWkeNJBRJT108P6o5YYL7Rz3dC QgfXxaWsxrWZfjn6ac2bHMzVaeHYTCvLv7SMtZxxnJF4tupAqlnDchDi+o3G6vH7f6Az gbUMmilesHejweE2n7aMz7psM3y+O0YX0OQ04fmNhRbGmwYuapfMnrAqDaAH8AUybVm4 c78Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=VZvw/wIlq/UcIn6rQL0WGXaz3mDbsqOb4IhjmRl4FHY=; b=moqF5Kb31uVEln6WEEK7VEOWXNuZU+Xb6+sQ8ll6+xA/EdTXp83woA2w3wbsm254xx q0ZeaV7V7kgZRno/5kwW0GtXrTudbucFQQwN/u/6M6t2KITj8LmPqu6gwXffJQkia/rA 0Mfx7ogZjxaeZpRUUO6YONpQh0MSaYDHk953k9Q6/+Z6b8PwvQwxi2a4+VupvuV3Yj7K Lncpy+0iTcTqtlnPNBJItHoDctg6I0B8yaEfhZ14tzQIAyVxlnMqrpgD/U1Rw45oK0es etUdUBnBF/D7++XaleTXwYE/uRT+sslrXlvFceRXN/PyaTu2UTvq0IgCEi3uqd0qQ5Rk /vgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Pw7JHDXW; 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=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si21678098pgy.99.2021.09.27.03.51.07; Mon, 27 Sep 2021 03:51:20 -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=@linux.microsoft.com header.s=default header.b=Pw7JHDXW; 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=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233912AbhI0KvQ (ORCPT + 99 others); Mon, 27 Sep 2021 06:51:16 -0400 Received: from linux.microsoft.com ([13.77.154.182]:40456 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233917AbhI0KvO (ORCPT ); Mon, 27 Sep 2021 06:51:14 -0400 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by linux.microsoft.com (Postfix) with ESMTPSA id C91B920B4846; Mon, 27 Sep 2021 03:49:32 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C91B920B4846 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1632739772; bh=VZvw/wIlq/UcIn6rQL0WGXaz3mDbsqOb4IhjmRl4FHY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Pw7JHDXW5hAtNU1o+qCli2Bl5b7+zDkuD+JHUDwagxb7XcKsBrCOm4nWD7s3RqNNx T5R3SD7qZVctJCrTpSZ9BBTH0fIRnR1iZdfUEmgC6yDdg6NqqhIHApsgcHo9kTS4Ns BJ0NKbmav13sVT5kQEe5hvU0jwYc7kJXpxCT1wjk= Received: by mail-pj1-f47.google.com with SMTP id h12so1799595pjj.1; Mon, 27 Sep 2021 03:49:32 -0700 (PDT) X-Gm-Message-State: AOAM533x5OWQGq63CW5Ay3yS8HXhRe79lJcWSPisZMXOBwIqr2bfO/nU 9H6FNB3RiOZopd6b6RvZ9zHIC0eJD0NcB5/jhuA= X-Received: by 2002:a17:902:7e8a:b0:13d:95e2:d9c2 with SMTP id z10-20020a1709027e8a00b0013d95e2d9c2mr21933306pla.8.1632739772259; Mon, 27 Sep 2021 03:49:32 -0700 (PDT) MIME-Version: 1.0 References: <20210919192104.98592-3-mcroce@linux.microsoft.com> <202109200526.YYwdkOeI-lkp@intel.com> In-Reply-To: <202109200526.YYwdkOeI-lkp@intel.com> From: Matteo Croce Date: Mon, 27 Sep 2021 12:48:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/3] riscv: optimized memmove To: kernel test robot Cc: linux-riscv , kbuild-all@lists.01.org, Linux Kernel Mailing List , linux-arch , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Emil Renner Berthing , Akira Tsukamoto , Drew Fustini Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 20, 2021 at 12:06 AM kernel test robot wrote: > > Hi Matteo, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on linux/master] > [also build test ERROR on linus/master v5.15-rc1 next-20210917] > [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] > > url: https://github.com/0day-ci/linux/commits/Matteo-Croce/riscv-optimized-mem-functions/20210920-032303 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git bdb575f872175ed0ecf2638369da1cb7a6e86a14 > config: riscv-randconfig-r004-20210919 (attached as .config) > compiler: riscv64-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=1 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/9a948fd7d78a58890608e9dd0f77e5ff84f36e3e > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Matteo-Croce/riscv-optimized-mem-functions/20210920-032303 > git checkout 9a948fd7d78a58890608e9dd0f77e5ff84f36e3e > # save the attached .config to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > arch/riscv/lib/string.c: In function '__memmove': > >> arch/riscv/lib/string.c:89:7: error: inlining failed in call to 'always_inline' 'memcpy': function body can be overwritten at link time > 89 | void *memcpy(void *dest, const void *src, size_t count) __weak __alias(__memcpy); > | ^~~~~~ > arch/riscv/lib/string.c:99:24: note: called from here > 99 | return memcpy(dest, src, count); > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > > vim +89 arch/riscv/lib/string.c > > 86c5866e9b7fdd Matteo Croce 2021-09-19 88 > 86c5866e9b7fdd Matteo Croce 2021-09-19 @89 void *memcpy(void *dest, const void *src, size_t count) __weak __alias(__memcpy); > 86c5866e9b7fdd Matteo Croce 2021-09-19 90 EXPORT_SYMBOL(memcpy); > 9a948fd7d78a58 Matteo Croce 2021-09-19 91 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org How can we fix this? Maybe calling __memcpy() instead? -- per aspera ad upstream