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 55A51C433EF for ; Tue, 8 Mar 2022 09:09:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345279AbiCHJKS (ORCPT ); Tue, 8 Mar 2022 04:10:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233872AbiCHJKQ (ORCPT ); Tue, 8 Mar 2022 04:10:16 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217311EEE1 for ; Tue, 8 Mar 2022 01:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646730560; x=1678266560; h=date:from:to:cc:subject:message-id:mime-version; bh=gAh58GZx1hR/2ylbcvnEySyFmI7RTda6XlOZnDxet6A=; b=Ux5lzRt1SH0j6W3s6oiF0F6UPT+CwBp3FmGBOD3awOA0OVPQlnp2J279 2BN/XBPVSVQz0p/odZoMx/D1xHtTIjinpYMSsXOcI0Psy+qc1tJiUsDht kl1bkoak14OBXsB0ZdFCH8RVX7j+mDHx0LbzqsX8tu11cpOc30NmfNiWC QhXhEafJD/LMn0mUcKR1u0Gq5BjnBu8qZwIKMW7y2nCt/SfZ8ClS7qDdQ bXPtSZw43p6TMu+ZYLyDm5INHJ2YCKwA7tbM8ljGSq4U+g9KRq1xzU5J0 AKMyBDL+dh5ARH7v01O/ivlGXJZlMCbz1EOSJXHkTxj6IIPdQWeyL4dj7 Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10279"; a="315350978" X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="315350978" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 01:09:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,164,1643702400"; d="scan'208";a="513035332" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 08 Mar 2022 01:09:17 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nRVqH-0001BL-16; Tue, 08 Mar 2022 09:09:17 +0000 Date: Tue, 8 Mar 2022 17:09:14 +0800 From: kernel test robot To: Heiko Stuebner Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Palmer Dabbelt Subject: [ammarfaizi2-block:palmer/linux/riscv-d1 8/12] arch/riscv/kernel/cpufeature.c:185:6: warning: variable 'cpu_apply_feature' set but not used Message-ID: <202203081742.97KWCv3h-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/ammarfaizi2/linux-block palmer/linux/riscv-d1 head: b3cda759adb0111b5b3efd3a0b986864b647a94a commit: 012cee7ecac542dd3206bee731da0868353eef21 [8/12] riscv: add cpufeature handling via alternatives config: riscv-randconfig-r005-20220308 (https://download.01.org/0day-ci/archive/20220308/202203081742.97KWCv3h-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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/ammarfaizi2/linux-block/commit/012cee7ecac542dd3206bee731da0868353eef21 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-d1 git checkout 012cee7ecac542dd3206bee731da0868353eef21 # 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