From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED09C1FC4 for ; Sun, 4 Sep 2022 12:45:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662295556; x=1693831556; h=date:from:to:cc:subject:message-id:mime-version; bh=zyDO9Kg2hUr/SwaRqtrMHX6s+VQDPstk18Xzu72PjI0=; b=hsIfaHP6vBidhTiUAQrM03LVZEwLMLvtXFG2fAWOJRvbX0XVaZ/eSA65 j8klA4lcf7566AfzZwAkyFpUAZK5OMATJVghyndePxb13ytg4hWt2Ox4i knwkE0uGgAbS25/ObvqyAHp5ozDOCxEl36PfJZSisSQwloI6UJwMuRtxJ sHTctTFiNWahD0OPX/8qNQVaBHjWPkhg89mWFsITO/1+XpYJ4GSQDhIXR /OZmNoXxgBjnFvV/tqfVLiIQeLNO4IYfKqxxRxl5w/tB1xRz2GUpGb9Tl KXmE6NcUaUmvJ0vy5YlUqsU9Y9mzaKW1756VgZ2yG6DKoQj2yP1r4vTyo g==; X-IronPort-AV: E=McAfee;i="6500,9779,10459"; a="360193549" X-IronPort-AV: E=Sophos;i="5.93,289,1654585200"; d="scan'208";a="360193549" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2022 05:45:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,289,1654585200"; d="scan'208";a="941803675" Received: from lkp-server02.sh.intel.com (HELO 95dfd251caa2) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 04 Sep 2022 05:45:54 -0700 Received: from kbuild by 95dfd251caa2 with local (Exim 4.96) (envelope-from ) id 1oUp0b-00033H-25; Sun, 04 Sep 2022 12:45:53 +0000 Date: Sun, 4 Sep 2022 20:45:34 +0800 From: kernel test robot To: Kees Cook Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Marco Elver , Andrew Morton , Linux Memory Management List Subject: arch/x86/include/asm/checksum_32.h:149:6: error: inline assembly requires more registers than available Message-ID: <202209042007.sjb2ZKIv-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 7726d4c3e60bfe206738894267414a5f10510f1a commit: 69d0db01e210e07fe915e5da91b54a867cda040f ubsan: remove CONFIG_UBSAN_OBJECT_SIZE date: 8 months ago config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220904/202209042007.sjb2ZKIv-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=69d0db01e210e07fe915e5da91b54a867cda040f git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 69d0db01e210e07fe915e5da91b54a867cda040f # 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=i386 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 >>): In file included from net/netfilter/nf_synproxy_core.c:7: In file included from include/linux/skbuff.h:28: In file included from include/net/checksum.h:22: In file included from arch/x86/include/asm/checksum.h:6: >> arch/x86/include/asm/checksum_32.h:149:6: error: inline assembly requires more registers than available asm("addl 0(%1), %0 ;\n" ^ 1 error generated. vim +149 arch/x86/include/asm/checksum_32.h ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 143 ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 144 #define _HAVE_ARCH_IPV6_CSUM 0883e91ae209f4 include/asm-x86/checksum_32.h Joe Perches 2008-03-23 145 static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, 72685fcd286e94 include/asm-i386/checksum.h Al Viro 2006-11-14 146 const struct in6_addr *daddr, 1e94082963747b arch/x86/include/asm/checksum_32.h Alexander Duyck 2016-03-11 147 __u32 len, __u8 proto, __wsum sum) ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 148 { 0883e91ae209f4 include/asm-x86/checksum_32.h Joe Perches 2008-03-23 @149 asm("addl 0(%1), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 150 "adcl 4(%1), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 151 "adcl 8(%1), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 152 "adcl 12(%1), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 153 "adcl 0(%2), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 154 "adcl 4(%2), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 155 "adcl 8(%2), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 156 "adcl 12(%2), %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 157 "adcl %3, %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 158 "adcl %4, %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 159 "adcl $0, %0 ;\n" ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 160 : "=&r" (sum) ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 161 : "r" (saddr), "r" (daddr), 392d814daf460a arch/x86/include/asm/checksum_32.h Samuel Thibault 2009-10-01 162 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) 392d814daf460a arch/x86/include/asm/checksum_32.h Samuel Thibault 2009-10-01 163 : "memory"); ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 164 ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 165 return csum_fold(sum); ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 166 } ^1da177e4c3f41 include/asm-i386/checksum.h Linus Torvalds 2005-04-16 167 :::::: The code at line 149 was first introduced by commit :::::: 0883e91ae209f4ada4db9b383026df77351c1320 include/asm-x86/checksum_32.h: checkpatch cleanups - formatting only :::::: TO: Joe Perches :::::: CC: Ingo Molnar -- 0-DAY CI Kernel Test Service https://01.org/lkp