Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4408658pxb; Mon, 21 Feb 2022 20:37:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBLXTijEmXwwY/c8aWewdhMoQHOyd0ZlcH9tbUrPSWPjIoxM8tE6sh4wdIHR4pG2kQcZfH X-Received: by 2002:a17:902:7b81:b0:14f:1b7e:c83c with SMTP id w1-20020a1709027b8100b0014f1b7ec83cmr21803963pll.119.1645504679187; Mon, 21 Feb 2022 20:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645504679; cv=none; d=google.com; s=arc-20160816; b=ve2BeppXIDRaWzpljVMIJjf0x3f0WYRN+I7j8J3OiPr0TQbie014df9UWDBZ1Wl4jy L8gv4RzklyauZr7PGyWzURu8/5LwWMXWR4P64g3V/2C3ntskNtScdKug6kFOLy27jkm8 CXb6Cad9ofBYdK+R/t/w62RVzovfFqb6nBL+QA7jzFkR+Wctn4VDVKJCbUuW/YWlHeMQ i65mP8/mm31ShfbV2VaIgV7W7i0NcpeVYACZlvbNdtJ0ZZ4qiaLLJCmLK7CX7YmV1udw iDzt0NEnYDkdtqKuEW41u0FISAQ1QGFgDhrZ4hLfo5LAj4a7k5WUhjxc5bX26PMMoRis 1Q/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QNP2sYWpBQToZ9IEm/PtW3O9hgxYpjUIayLmTPRFU+k=; b=GSV/1a+r55e+Lr3huIoNOY0brbOQ19b6kj6Le3fpt5LN15AaGPalCTdFWwOMkeOhUW c/1fxmhVdu0U8ItqMuztwOgOyB4+MSJ9fX9QWOlUMU+BW2HwKhIjHH50i2iYruVUTfXr JmGQLXO/P3oqfN1pMT5Vxo3pNYQzhMLnjdLbLULpTpZRC2OKhiDps4smer75bEU23kCH H61qAuWS4mz0by2K00BvCeFFEZt5aCB0IppoyXxiYJVSpGU6gO5j8+B8z1cgPEGW8Je4 rjT/kobxycZ2I+M7QuzDENhb/FtHZB0vrdjU4JnGnLsAPPIIkfYY0SHi75bZ3zWdHKVF Kklw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CuSW0yR1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mp24-20020a17090b191800b001bc46e4179dsi993568pjb.23.2022.02.21.20.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 20:37:59 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CuSW0yR1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C6E29AD90; Mon, 21 Feb 2022 20:25:57 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234115AbiBUU7K (ORCPT + 99 others); Mon, 21 Feb 2022 15:59:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234099AbiBUU7J (ORCPT ); Mon, 21 Feb 2022 15:59:09 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81FEF237F4; Mon, 21 Feb 2022 12:58:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645477125; x=1677013125; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Q8VbVq+l2O93VD3PU9iLNfpkN2dA3vfhrpThY/iQv7k=; b=CuSW0yR16nYDmv8KQCiFubbtrGT6I8N3Nxt/QWSg9FmW3Rs1NafrOEnU /tOkJgomlM6ErdLdFHoYL/TshgcVLX4JU5GZKakl70q2dFA9fy4dBLddE DuKSKM5Yg0lFoYWgtFnPy5LJjGSaclI84CDN3hPwIWJLpeSfmhc7Dm3/f pDW6glRrcIbHatrxanc6TCf1A5g/p0nssFTl6v87KK4v6kkCv/X7NAtFx eEUGmBEjShdSYcZ86YpECfm0OZyLlX44mBd6Au4PYw6WbDNEq369gVOg0 IQnQuii7TT7j25gTfPwpyRpv6B0JgT0aBcjht6K/CthihvzCNZ0nmmPwZ w==; X-IronPort-AV: E=McAfee;i="6200,9189,10265"; a="238984546" X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="238984546" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2022 12:58:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,386,1635231600"; d="scan'208";a="591075000" Received: from lkp-server01.sh.intel.com (HELO da3212ac2f54) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 21 Feb 2022 12:58:41 -0800 Received: from kbuild by da3212ac2f54 with local (Exim 4.92) (envelope-from ) id 1nMFlZ-0001ya-5Z; Mon, 21 Feb 2022 20:58:41 +0000 Date: Tue, 22 Feb 2022 04:57:51 +0800 From: kernel test robot To: Like Xu , Paolo Bonzini , Jim Mattson Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Like Xu Subject: Re: [PATCH 09/11] KVM: x86/pmu: Replace pmc_perf_hw_id() with perf_get_hw_event_config() Message-ID: <202202220414.dzxjtMiF-lkp@intel.com> References: <20220221115201.22208-10-likexu@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220221115201.22208-10-likexu@tencent.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Like, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on kvm/master] [also build test WARNING on linus/master v5.17-rc5 next-20220217] [cannot apply to tip/perf/core mst-vhost/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Like-Xu/KVM-x86-pmu-Get-rid-of-PERF_TYPE_HARDWAR-and-other-minor-fixes/20220221-195359 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git master config: x86_64-randconfig-c007-20220221 (https://download.01.org/0day-ci/archive/20220222/202202220414.dzxjtMiF-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 # https://github.com/0day-ci/linux/commit/29bdfb8b85a85f36e3fca739146845d7050a372d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Like-Xu/KVM-x86-pmu-Get-rid-of-PERF_TYPE_HARDWAR-and-other-minor-fixes/20220221-195359 git checkout 29bdfb8b85a85f36e3fca739146845d7050a372d # 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=x86_64 SHELL=/bin/bash arch/x86/kvm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/x86/kvm/pmu.c:471:66: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] return !((pmc->eventsel ^ perf_get_hw_event_config(perf_hw_id)) && ^ arch/x86/kvm/pmu.c:471:66: note: use '&' for a bitwise operation return !((pmc->eventsel ^ perf_get_hw_event_config(perf_hw_id)) && ^~ & arch/x86/kvm/pmu.c:471:66: note: remove constant to silence this warning return !((pmc->eventsel ^ perf_get_hw_event_config(perf_hw_id)) && ~^~ 1 warning generated. vim +471 arch/x86/kvm/pmu.c 467 468 static inline bool eventsel_match_perf_hw_id(struct kvm_pmc *pmc, 469 unsigned int perf_hw_id) 470 { > 471 return !((pmc->eventsel ^ perf_get_hw_event_config(perf_hw_id)) && 472 AMD64_RAW_EVENT_MASK_NB); 473 } 474 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org