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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E674C6FA86 for ; Sun, 18 Sep 2022 05:13:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 70A1A80008; Sun, 18 Sep 2022 01:13:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6BA0880007; Sun, 18 Sep 2022 01:13:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5808780008; Sun, 18 Sep 2022 01:13:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4886D80007 for ; Sun, 18 Sep 2022 01:13:23 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 201E41C6337 for ; Sun, 18 Sep 2022 05:13:23 +0000 (UTC) X-FDA: 79924037886.26.E3D5AC3 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf16.hostedemail.com (Postfix) with ESMTP id D4B5D180006 for ; Sun, 18 Sep 2022 05:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663478001; x=1695014001; h=date:from:to:cc:subject:message-id:mime-version; bh=mToxFr5x1uRRdAs63WyzwxBvBM6oK2e2Md/COo97weo=; b=K12qSudKB8NKVw42JvllzJ0an/lpnko4xCO2iz54NZpxy2GC/WhLRPBL 1QoQvmjv2bB6rDJtyfDotK5qXM/U8jd5XvWRdfhTLVQF+xWiTGELEbTeV IOoaaWd01DMDkLWzqeIkfHL+wUpp2EfTdgbAMA3ny9ce822CijzhjFoZE XkxvQfOSinvV0oPWlZuvPTsNUVACnvFUwP09SKTreGLkC0w22BVs1NM3g QaCK0jPvs7wFT0V151eq0OzR1+OqX7JDt51Z6OUbiZ7RIk5jEokhgOxvk 19+aaNTnHSCJBJgbLZe6pZAxFe6g6lyoY1WXLixiNn61x8lxNFkFzLfRl w==; X-IronPort-AV: E=McAfee;i="6500,9779,10473"; a="286246710" X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="286246710" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2022 22:13:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,323,1654585200"; d="scan'208";a="946810456" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 17 Sep 2022 22:13:18 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oZmcH-0000uR-2F; Sun, 18 Sep 2022 05:13:17 +0000 Date: Sun, 18 Sep 2022 13:13:13 +0800 From: kernel test robot To: Christophe Leroy Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Michael Ellerman , Nathan Chancellor Subject: [linux-next:master 4356/7639] arch/powerpc/math-emu/fcmpu.c:14:2: warning: variable 'B_c' set but not used Message-ID: <202209181318.8gJoexZe-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=K12qSudK; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663478002; a=rsa-sha256; cv=none; b=qTJDnP6Hs1RP5qqRveUccP0aLQwAnAgad4ak+gKQ2XklCfgsOf3j4/Qa7Tezo7oy39++ax WBKGPKEtCSXfkYaPi9fFS2SJy+Z9ZYAEtPny2mI9gS4X3RhE/u/PMB47jPnwF8wmPb9sVr LwGh8sIUBtJk0uf+IQDrm7v7PrJnt5I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663478002; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=0vlj3/9pARbfzS5bJrc+tfyUuC4rxUXjrH/hMopPpn0=; b=Dq1lK3k9t0IAs2BfPwAelzKuRVlOWe7Oz5ZJgEYFB3bF4vhvPN12kEWnThYPyapmOPEUTw WdRg4aHg3TQFlUM9u/nLpDF4on56OLVgjes0MXXYIV0bFzWHJT7CZrwcAZEvXwNIF8zhCD AzyH2G48Ng7YO8vqwnKb5SJrP7ALljk= Authentication-Results: imf16.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=K12qSudK; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: cq6y3zcafpxhczabtsxqk7p3izqkjbkz X-Rspamd-Queue-Id: D4B5D180006 X-Rspam-User: X-Rspamd-Server: rspam05 X-HE-Tag: 1663478001-13575 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: d5538ab91d3a9a237805be6f8c6c272af2987995 commit: 7245fc5bb7a966852d5bd7779d1f5855530b461a [4356/7639] powerpc/math-emu: Remove -w build flag and fix warnings config: powerpc-randconfig-r026-20220918 (https://download.01.org/0day-ci/archive/20220918/202209181318.8gJoexZe-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7245fc5bb7a966852d5bd7779d1f5855530b461a git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 7245fc5bb7a966852d5bd7779d1f5855530b461a # 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=powerpc SHELL=/bin/bash arch/powerpc/math-emu/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/powerpc/math-emu/fcmpu.c:14:2: warning: variable 'B_c' set but not used [-Wunused-but-set-variable] FP_DECL_D(B); ^ include/math-emu/double.h:73:23: note: expanded from macro 'FP_DECL_D' #define FP_DECL_D(X) _FP_DECL(2,X) ^ include/math-emu/op-common.h:28:14: note: expanded from macro '_FP_DECL' _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \ ^ :126:1: note: expanded from here B_c ^ >> arch/powerpc/math-emu/fcmpu.c:15:2: warning: variable '_fex' set but not used [-Wunused-but-set-variable] FP_DECL_EX; ^ include/math-emu/soft-fp.h:94:24: note: expanded from macro 'FP_DECL_EX' #define FP_DECL_EX int _fex = 0 ^ >> arch/powerpc/math-emu/fcmpu.c:13:2: warning: variable 'A_c' set but not used [-Wunused-but-set-variable] FP_DECL_D(A); ^ include/math-emu/double.h:73:23: note: expanded from macro 'FP_DECL_D' #define FP_DECL_D(X) _FP_DECL(2,X) ^ include/math-emu/op-common.h:28:14: note: expanded from macro '_FP_DECL' _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \ ^ :120:1: note: expanded from here A_c ^ arch/powerpc/math-emu/fcmpu.c:11:1: warning: no previous prototype for function 'fcmpu' [-Wmissing-prototypes] fcmpu(u32 *ccr, int crfD, void *frA, void *frB) ^ arch/powerpc/math-emu/fcmpu.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ^ static 4 warnings generated. -- >> arch/powerpc/math-emu/fctiw.c:14:2: warning: variable '_fex' set but not used [-Wunused-but-set-variable] FP_DECL_EX; ^ include/math-emu/soft-fp.h:94:24: note: expanded from macro 'FP_DECL_EX' #define FP_DECL_EX int _fex = 0 ^ arch/powerpc/math-emu/fctiw.c:11:1: warning: no previous prototype for function 'fctiw' [-Wmissing-prototypes] fctiw(u32 *frD, void *frB) ^ arch/powerpc/math-emu/fctiw.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ^ static 2 warnings generated. -- >> arch/powerpc/math-emu/fctiwz.c:14:2: warning: variable '_fex' set but not used [-Wunused-but-set-variable] FP_DECL_EX; ^ include/math-emu/soft-fp.h:94:24: note: expanded from macro 'FP_DECL_EX' #define FP_DECL_EX int _fex = 0 ^ arch/powerpc/math-emu/fctiwz.c:11:1: warning: no previous prototype for function 'fctiwz' [-Wmissing-prototypes] fctiwz(u32 *frD, void *frB) ^ arch/powerpc/math-emu/fctiwz.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ^ static 2 warnings generated. -- >> arch/powerpc/math-emu/fsel.c:14:2: warning: variable '_fex' set but not used [-Wunused-but-set-variable] FP_DECL_EX; ^ include/math-emu/soft-fp.h:94:24: note: expanded from macro 'FP_DECL_EX' #define FP_DECL_EX int _fex = 0 ^ arch/powerpc/math-emu/fsel.c:11:1: warning: no previous prototype for function 'fsel' [-Wmissing-prototypes] fsel(u32 *frD, void *frA, u32 *frB, u32 *frC) ^ arch/powerpc/math-emu/fsel.c:10:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int ^ static 2 warnings generated. vim +/B_c +14 arch/powerpc/math-emu/fcmpu.c ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 9 ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 10 int ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 11 fcmpu(u32 *ccr, int crfD, void *frA, void *frB) ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 12 { ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 @13 FP_DECL_D(A); ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 @14 FP_DECL_D(B); d2b194ed820880 arch/powerpc/math-emu/fcmpu.c Kumar Gala 2008-06-04 @15 FP_DECL_EX; ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 16 int code[4] = { (1 << 3), (1 << 1), (1 << 2), (1 << 0) }; ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 17 long cmp; ^1da177e4c3f41 arch/ppc/math-emu/fcmpu.c Linus Torvalds 2005-04-16 18 :::::: The code at line 14 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://01.org/lkp