From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A5FBC636CD for ; Tue, 7 Feb 2023 05:39:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229895AbjBGFjn (ORCPT ); Tue, 7 Feb 2023 00:39:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjBGFjl (ORCPT ); Tue, 7 Feb 2023 00:39:41 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBF172A992 for ; Mon, 6 Feb 2023 21:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675748380; x=1707284380; h=date:from:to:cc:subject:message-id:mime-version; bh=vA9Mmni/6NPac6Y0H9GUnP6jaS0rdTr3cyE3IuB+Rso=; b=hPqD7mLewV+cmvDlmJRCz+g7KAgdtZh43+WiZ31+F/Dt1dwvQ1jXM+rf dFrMTlL1biu1J2UEpiILJSXr3jgf1M9XMt9c7LDNA3hxTbPR2pXbLTmzu kJtyGEpGzji6zORizYs6VjKG2JZ7lQlUCjKD+OBsf3zk7kZjQjdNnvf9N Rmq+0LU3VVv92TxAxf8ZmKiYJADKwlMPaEh5ZcJnQYg2tYasxYTwa/kR/ pJrzmQEDF5AhvpWsv29h2qvqAOvJDyVKdAq1f/a1CZyzkdbscix1+zL9T pKXxlp8dt2wUK+tIc9EQqtIXbAbsN8lMuGnP/QrI98EHUUNW9Yf74q9Ow Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="309745850" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="309745850" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2023 21:39:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="699114117" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="699114117" Received: from lkp-server01.sh.intel.com (HELO 4455601a8d94) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 06 Feb 2023 21:39:38 -0800 Received: from kbuild by 4455601a8d94 with local (Exim 4.96) (envelope-from ) id 1pPGhd-00038A-19; Tue, 07 Feb 2023 05:39:37 +0000 Date: Tue, 7 Feb 2023 13:39:30 +0800 From: kernel test robot To: Sebastian Andrzej Siewior Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner Subject: [tip:x86/vdso 3/4] arch/x86/include/asm/arch_hweight.h:49:15: error: invalid input size for constraint 'D' Message-ID: <202302071338.m7nBGR5i-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/vdso head: 5646bbd6684acf5c9b9dedb863b7d2f6f5a330fb commit: 92d33063c081a82d25dd08a9cce03947c8ed9164 [3/4] x86/vdso: Provide getcpu for x86-32. config: x86_64-randconfig-r031-20230206 (https://download.01.org/0day-ci/archive/20230207/202302071338.m7nBGR5i-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/tip/tip.git/commit/?id=92d33063c081a82d25dd08a9cce03947c8ed9164 git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git git fetch --no-tags tip x86/vdso git checkout 92d33063c081a82d25dd08a9cce03947c8ed9164 # 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=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 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 arch/x86/entry/vdso/vdso32/vgetcpu.c:2: In file included from arch/x86/entry/vdso/vdso32/../vgetcpu.c:8: In file included from include/linux/kernel.h:22: In file included from include/linux/bitops.h:68: In file included from arch/x86/include/asm/bitops.h:420: >> arch/x86/include/asm/arch_hweight.h:49:15: error: invalid input size for constraint 'D' : REG_IN (w)); ^ In file included from arch/x86/entry/vdso/vdso32/vgetcpu.c:2: In file included from arch/x86/entry/vdso/vdso32/../vgetcpu.c:8: In file included from include/linux/kernel.h:25: In file included from include/linux/math.h:6: >> arch/x86/include/asm/div64.h:85:34: error: invalid output size for constraint '=a' asm ("mulq %2; divq %3" : "=a" (q) ^ In file included from arch/x86/entry/vdso/vdso32/vgetcpu.c:2: arch/x86/entry/vdso/vdso32/../vgetcpu.c:13:1: warning: no previous prototype for function '__vdso_getcpu' [-Wmissing-prototypes] __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused) ^ arch/x86/entry/vdso/vdso32/../vgetcpu.c:12:9: note: declare 'static' if the function is not intended to be used outside of this translation unit notrace long ^ static 1 warning and 2 errors generated. vim +/D +49 arch/x86/include/asm/arch_hweight.h d61931d89be506 Borislav Petkov 2010-03-05 35 d14edb1648221e Denys Vlasenko 2015-08-04 36 #ifdef CONFIG_X86_32 d61931d89be506 Borislav Petkov 2010-03-05 37 static inline unsigned long __arch_hweight64(__u64 w) d61931d89be506 Borislav Petkov 2010-03-05 38 { d61931d89be506 Borislav Petkov 2010-03-05 39 return __arch_hweight32((u32)w) + d61931d89be506 Borislav Petkov 2010-03-05 40 __arch_hweight32((u32)(w >> 32)); d14edb1648221e Denys Vlasenko 2015-08-04 41 } d61931d89be506 Borislav Petkov 2010-03-05 42 #else d14edb1648221e Denys Vlasenko 2015-08-04 43 static __always_inline unsigned long __arch_hweight64(__u64 w) d14edb1648221e Denys Vlasenko 2015-08-04 44 { f5967101e9de12 Borislav Petkov 2016-05-30 45 unsigned long res; d14edb1648221e Denys Vlasenko 2015-08-04 46 566b62a3676cae Uros Bizjak 2018-10-14 47 asm (ALTERNATIVE("call __sw_hweight64", "popcntq %1, %0", X86_FEATURE_POPCNT) d61931d89be506 Borislav Petkov 2010-03-05 48 : "="REG_OUT (res) d61931d89be506 Borislav Petkov 2010-03-05 @49 : REG_IN (w)); d61931d89be506 Borislav Petkov 2010-03-05 50 d61931d89be506 Borislav Petkov 2010-03-05 51 return res; d61931d89be506 Borislav Petkov 2010-03-05 52 } d14edb1648221e Denys Vlasenko 2015-08-04 53 #endif /* CONFIG_X86_32 */ d61931d89be506 Borislav Petkov 2010-03-05 54 :::::: The code at line 49 was first introduced by commit :::::: d61931d89be506372d01a90d1755f6d0a9fafe2d x86: Add optimized popcnt variants :::::: TO: Borislav Petkov :::::: CC: H. Peter Anvin -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests