Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2612869imw; Sun, 10 Jul 2022 10:38:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tkbFmxsLvb+Uz1+L5dH0dYOT4cqtQfj+VvB9fDRcITY5HR4O9/F4chJpY29BydQKvnX35C X-Received: by 2002:a17:90a:bf03:b0:1ef:8fca:282c with SMTP id c3-20020a17090abf0300b001ef8fca282cmr12967676pjs.219.1657474736693; Sun, 10 Jul 2022 10:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657474736; cv=none; d=google.com; s=arc-20160816; b=T8jVU2bJk17gX4UNFZBRoHVYKnyiz7UN2HBYRKw8EOIDnSfPez6SrNFTbljkkjuoci c2fsyr70YJwv3Nfx8dzb+eU8R8b3siyWg/FJAkQvPIYbG6m8oLNzrbhqGat9wNz9Aqw+ cow4+FIJz/ms8nJ3BUYr55iewjSRE0srO29izoRlum//D4NxhScInSHaPKDUsQLMrAjv T/JzdgM77PkQjsThyjzLohKJdwOic5pzoapT1kUqrSSA43ue27JWR6OPsqMD6KM2phTP 7AqtHcS6QRe31WqynOTyo6ZR92abtA6inHBW+C7jBp40NJ4L6z44Z9TpajAZRd/0NsO3 Vvmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mm1gVrGN7We9ZJAfWNvTsHUsuf4qpfDIxkd/VMr3t+c=; b=LQIEfdcVkPqOTd20OWd/KvbTsLGoVmacppOXQXfif9zpUEwRSAQSKCVulrVGV6FlsG rWNBrMUBf9Fs0O+mgCy27iMlrnYQHZI2ePYHn5+BU6TXBWW7KMpl86RGZnS2xv8zgNcm ErJehbSrIWzkd6jt71+BOh/XibQzUbeFsNZ4yXHcFyR3xcBwxk3PIQWeDZ/rLcEx4WwX s8JoCIX+s9seHTmOnh1mKuDEwdSWEfv06+IFLOI3rnUjlfEf4+LBuX42pD5c5353ETuF ZKTgcTG0Mwgsxz82QfwVX36EdfnHwwSh+dUUxIj0ZwER5AZKIBTHoyubmZzlXNwjA276 uaew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VY9PTfZt; 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 ot5-20020a17090b3b4500b001f02523a239si5097081pjb.58.2022.07.10.10.38.41; Sun, 10 Jul 2022 10:38:56 -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=VY9PTfZt; 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 S229477AbiGJQ7Z (ORCPT + 99 others); Sun, 10 Jul 2022 12:59:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbiGJQ7X (ORCPT ); Sun, 10 Jul 2022 12:59:23 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B149DAE53 for ; Sun, 10 Jul 2022 09:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657472362; x=1689008362; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8SO8lk2RCb4UnItvUYFu2aqqahdE5WPxwTSY9aJEncg=; b=VY9PTfZtQ3Mn+r5NTk5D/DtQnHfIFLWbS19uPYC90R/g3faRM8KNw6MI HUZ3m7ZJzZBGSXOTthYuUm1c5uu9gv9Wz5KBpygw/WM+xIp2cUkOvb36P jWZdRBDNkxDlQUmBiqf7zJkMYLxuOTIoqMWNRj2lGwbxczML279Y5+IRX Zmzx8vWz3/rCVvlGgpNPQpulDeWOh3OyP2kW2I9JigrmTIyR6aNbAjk1A znK5qiQTMCU9A4yUfFYqaAgYg4i9zz7Ye+ljkHeqSGO/Bzs6i3XZdLcTO nAIEPXVOt30XazhY4SAQAJLiaajdlTvfA+07PO3tgJrFRP2LzouXZ2FZJ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10404"; a="264936335" X-IronPort-AV: E=Sophos;i="5.92,261,1650956400"; d="scan'208";a="264936335" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2022 09:59:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,261,1650956400"; d="scan'208";a="627237961" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 10 Jul 2022 09:59:20 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1oAaH9-000Q1c-DA; Sun, 10 Jul 2022 16:59:19 +0000 Date: Mon, 11 Jul 2022 00:58:31 +0800 From: kernel test robot To: Yu-Jen Chang , andy@kernel.org, akinobu.mita@gmail.com Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, jserv@ccns.ncku.edu.tw, linux-kernel@vger.kernel.org, Yu-Jen Chang Subject: Re: [PATCH 2/2] lib/string.c: Optimize memchr() Message-ID: <202207110028.KNZ3Yupd-lkp@intel.com> References: <20220710142822.52539-3-arthurchang09@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220710142822.52539-3-arthurchang09@gmail.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Yu-Jen, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.19-rc5 next-20220708] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yu-Jen-Chang/Optimize-memchr/20220710-223118 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b1c428b6c3684ee8ddf4137d68b3e8d51d2a700f config: hexagon-randconfig-r041-20220710 (https://download.01.org/0day-ci/archive/20220711/202207110028.KNZ3Yupd-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6ce63e267aab79ca87bf63453d34dd3909ab978d) 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/intel-lab-lkp/linux/commit/307ee542c2bd8378b2225910f3f9b982df7a7669 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Yu-Jen-Chang/Optimize-memchr/20220710-223118 git checkout 307ee542c2bd8378b2225910f3f9b982df7a7669 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> lib/string.c:902:7: error: conflicting types for 'memchr' void *memchr(const void *p, int c, unsigned long length) ^ include/linux/string.h:162:15: note: previous declaration is here extern void * memchr(const void *,int,__kernel_size_t); ^ 1 error generated. vim +/memchr +902 lib/string.c 891 892 #ifndef __HAVE_ARCH_MEMCHR 893 /** 894 * memchr - Find a character in an area of memory. 895 * @p: The memory area 896 * @c: The byte to search for 897 * @length: The size of the area. 898 * 899 * returns the address of the first occurrence of @c, or %NULL 900 * if @c is not found 901 */ > 902 void *memchr(const void *p, int c, unsigned long length) 903 { 904 u64 mask, val; 905 const void *end = p + length; 906 907 c &= 0xff; 908 if (p <= end - 8) { 909 mask = c; 910 MEMCHR_MASK_GEN(mask); 911 912 for (; p <= end - 8; p += 8) { 913 val = *(u64 *)p ^ mask; 914 if ((val + 0xfefefefefefefeffu) & 915 (~val & 0x8080808080808080u)) 916 break; 917 } 918 } 919 920 for (; p < end; p++) 921 if (*(unsigned char *)p == c) 922 return (void *)p; 923 924 return NULL; 925 } 926 EXPORT_SYMBOL(memchr); 927 #endif 928 -- 0-DAY CI Kernel Test Service https://01.org/lkp