Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp510912rdb; Thu, 30 Nov 2023 10:23:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/QEEX6c8K9vA75c5/qojAg7XJMB6vC+g1AnGeiStk8qf2lWF4bXa4WJhGmNB3UzPrKpVg X-Received: by 2002:a05:6a20:6a2a:b0:18c:b464:ec5b with SMTP id p42-20020a056a206a2a00b0018cb464ec5bmr15467622pzk.61.1701368596492; Thu, 30 Nov 2023 10:23:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701368596; cv=none; d=google.com; s=arc-20160816; b=tozHq6qSffYyGFMhI7Ln5hmc909oheg4qQ1ACyjMJ8yMsytOKtPd0lf74YYHpVtPG2 NE0tH0K3fSBP0Dw+7uAqnOE7kDu7Gq8oqR4yb42S0PXrZI+jDlxwtG+moRtlvlVE9WFt MMfFWb0JnfRHkdj0tsxL8C+zS/MVT61pXL9ZL60rdRjKwH/ws8FSfCBNcrKTxW1M6YS/ iM7vfbHpunc6WsdkgKrOzEaWz/+THqpTF3ulf6IXd3+cjBI+sv0GLxqtFiaXQ+mKUSU8 H6Su2z/4hNrOs+Tdv9UhJGI+dTso2r3lnRFT1kTkcPE4diMY9RWsC2k+WH8UL+n7kc3k 4zYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=wI81TszQ+HavXeXDYPqPnC9zC5eJQkah0vJVVXbWL9Q=; fh=/u6L2i3EvT1d/6fOI1gPk33fjR9sYOupyNZNp8PFKDk=; b=Dxgo3TnYJHOHtOznOJEt7awu0mjc/ix4vkgjkAAEAI85hNL55yZ2yQvG7Z805lbMYB fmOtbHm0PnRJ0TSApGmO3pojh+fH8QEZNLuQyGqzjx2O3pnc5O4N5Jp+ksT/oaJMCiyh PUbPaHw9I4u1U1XduX7moWIt4PqdNS/n7pB4/TnNfeIsUZgkeZZzzvfcQmgd2z9W1HFV ChZM36KegoQZ91jy13ymD9v84oEZBLMVmP8lWnDUJzSlH8YduNwqYv++5xdTtD0ejCwW EoTZ+T4r/sfCdpC2uJrqrAntCKXqm5lQq2mX5xzHUM7nhcr51OyaDsRrfDrMsaQ5tGpq j04w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bn+g4EAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a13-20020a65604d000000b005c1faa82c06si1917301pgp.470.2023.11.30.10.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 10:23:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bn+g4EAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B3E668027167; Thu, 30 Nov 2023 10:23:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbjK3SWz (ORCPT + 99 others); Thu, 30 Nov 2023 13:22:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbjK3SWy (ORCPT ); Thu, 30 Nov 2023 13:22:54 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DA51D6C for ; Thu, 30 Nov 2023 10:23:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701368579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wI81TszQ+HavXeXDYPqPnC9zC5eJQkah0vJVVXbWL9Q=; b=bn+g4EAx7hmH3RceJnv2Xbdaa6z6UVKwodSxCG09Xxie6ukP4dNLX0CkvAxgvkmH+llC8I DohLtueI8YRscEN7UKPDBFtorxOfBqC5b/kUjozDYOismAHdvXynNFkfIoKhqpCHKRWV4U hk7imtBTd8AIHOY7RLFd/cP+gH0Y+N8= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-qoBo23_oN2SYZDkGdXi8GA-1; Thu, 30 Nov 2023 13:22:58 -0500 X-MC-Unique: qoBo23_oN2SYZDkGdXi8GA-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2c9b97a391bso14824441fa.0 for ; Thu, 30 Nov 2023 10:22:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701368576; x=1701973376; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wI81TszQ+HavXeXDYPqPnC9zC5eJQkah0vJVVXbWL9Q=; b=eM5lVLZcgF0w0TCCW4TyuvXev0xRHGQWZM+i6oh5Pb6ePUTo2h8E9YLqXPj55raUc9 BZXWTo1JR64gwJj/xv50ZjIs36842gSmICv+8swlM3uipf3+l2E97KV13Qpma63+z3ld IWD6VhbVBtjlwJQRix5rbQu+jmzN4eKxOb3HykoFOA2HIjeh7rCspi1MTMkhREIeqqG1 0oRBqLFwjOJ1dpz2Yu+AAtZRcJhvj36CEijZt+qKlWwgAnc8odBzYdRmKlt4BAz1JXTy eu2Rgg/hV30jLGDWnK7MVYtP8iKWuemAzDquokAVbYSpDzpR2tj86r5X6ZUwdAJoFryO +3dA== X-Gm-Message-State: AOJu0YzKxzb1CIBVDv5+THssrWPT80f0S9O+VRbUW4KAkbg8VwbDJ5oL yrU9+y2r0IJCG71Rug8XJLXV8gYcEQn9znLTWNCbYsJUuPNYh2M5gq18N299Cd4dmZ6BFllWnXa oz4mSC9UHiHuZ+Y9G5y+01KJpQHoxy3Xw X-Received: by 2002:adf:fc4a:0:b0:333:145b:dbe4 with SMTP id e10-20020adffc4a000000b00333145bdbe4mr5824wrs.42.1701364094859; Thu, 30 Nov 2023 09:08:14 -0800 (PST) X-Received: by 2002:a2e:9784:0:b0:2c9:c192:43a9 with SMTP id y4-20020a2e9784000000b002c9c19243a9mr3511lji.28.1701362235390; Thu, 30 Nov 2023 08:37:15 -0800 (PST) Received: from fedora (g2.ign.cz. [91.219.240.8]) by smtp.gmail.com with ESMTPSA id j11-20020a05600c190b00b0040b4c26d2dasm2536292wmq.32.2023.11.30.08.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 08:37:14 -0800 (PST) From: Vitaly Kuznetsov To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Paolo Bonzini , Sean Christopherson , kvm@vger.kernel.org Subject: Re: arch/x86/kvm/vmx/hyperv.h:79:30: sparse: sparse: cast truncates bits from constant value (1b009b becomes 9b) In-Reply-To: <202311302231.sinLrAig-lkp@intel.com> References: <202311302231.sinLrAig-lkp@intel.com> Date: Thu, 30 Nov 2023 17:37:13 +0100 Message-ID: <87v89jmc3q.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 30 Nov 2023 10:23:13 -0800 (PST) kernel test robot writes: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 3b47bc037bd44f142ac09848e8d3ecccc726be99 > commit: a789aeba419647c44d7e7320de20fea037c211d0 KVM: VMX: Rename "vmx/evmcs.{ch}" to "vmx/hyperv.{ch}" > date: 1 year ago > config: x86_64-randconfig-123-20231130 (https://download.01.org/0day-ci/archive/20231130/202311302231.sinLrAig-lkp@intel.com/config) > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231130/202311302231.sinLrAig-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202311302231.sinLrAig-lkp@intel.com/ > > sparse warnings: (new ones prefixed by >>) > arch/x86/kvm/vmx/hyperv.h:79:30: sparse: sparse: cast truncates bits from constant value (a000a becomes a) This is what ROL16() macro does but the thing is: we actually want to truncate bits by doing an explicit (u16) cast. We can probably replace this with '& 0xffff': #define ROL16(val, n) ((((u16)(val) << (n)) | ((u16)(val) >> (16 - (n)))) & 0xffff) but honestly I don't see much point... -- Vitaly