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 93C0DC433EF for ; Thu, 10 Feb 2022 18:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245513AbiBJSEb (ORCPT ); Thu, 10 Feb 2022 13:04:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245472AbiBJSE3 (ORCPT ); Thu, 10 Feb 2022 13:04:29 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2401A21B7 for ; Thu, 10 Feb 2022 10:04:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644516270; x=1676052270; h=date:from:to:cc:subject:message-id:mime-version; bh=jBMcBJC30i8kQ711MDeOXRz44FrwKyTzdCBbYbqpJcg=; b=CaN2bvPpA/7RmTq5kuz8zMDeX+c9I5nc22rgesDqdfr8oyIB+z8+8f7i 5DPskua9pCF/WrxvadLfqoFp8TprmVs+GbopNLK7qEwjVA1w2SnnxP/Je 0lkifSDsURZX16zO1afCiaOf2QYbWcAk6xRTIV4wtqzEL1eKEQeWGhxnC Sxa7jo4nmN3KLor0XLnwNXUO66eODODsYOGQKUbghQzIxiiIA5uSeaJS4 4P+xSnnBczSlnHo6zox7NWyXfeYFrU9Iq2ungAU+chFxzbBldzKGvfGJ4 pV3/xtO1DWX6bI6KK2kSikz6fxi0rTaehB6vJwaWDWGq8CiDY6VnaLtgT w==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="310292420" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="310292420" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 10:04:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="586037739" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 10 Feb 2022 10:04:02 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nIDnV-0003Yl-Or; Thu, 10 Feb 2022 18:04:01 +0000 Date: Fri, 11 Feb 2022 02:03:34 +0800 From: kernel test robot To: Heiko Stuebner Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Guo Ren Subject: [csky-linux:riscv_compat_v6_svpbmt-v6 10/35] arch/riscv/kernel/cpufeature.c:185:6: warning: variable 'cpu_apply_feature' set but not used Message-ID: <202202110127.FocCEukg-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/c-sky/csky-linux riscv_compat_v6_svpbmt-v6 head: 54acb36c958fc990cc59889f79c8ddca7386c295 commit: 9a8cf89570e893738c501551591b03bd868c825c [10/35] riscv: add cpufeature handling via alternatives config: riscv-randconfig-c006-20220209 (https://download.01.org/0day-ci/archive/20220211/202202110127.FocCEukg-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project aa845d7a245d85c441d0bd44fc7b6c3be8f3de8d) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/c-sky/csky-linux/commit/9a8cf89570e893738c501551591b03bd868c825c git remote add csky-linux https://github.com/c-sky/csky-linux git fetch --no-tags csky-linux riscv_compat_v6_svpbmt-v6 git checkout 9a8cf89570e893738c501551591b03bd868c825c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/riscv/kernel/cpufeature.c:185:6: warning: variable 'cpu_apply_feature' set but not used [-Wunused-but-set-variable] u32 cpu_apply_feature = 0; ^ 1 warning generated. vim +/cpu_apply_feature +185 arch/riscv/kernel/cpufeature.c 180 181 void riscv_cpufeature_patch_func(struct alt_entry *begin, struct alt_entry *end, 182 unsigned int stage) 183 { 184 u32 cpu_req_feature = cpufeature_probe(stage); > 185 u32 cpu_apply_feature = 0; --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org