From: kernel test robot <yujie.liu@intel.com>
To: Zack Rusin <zackr@vmware.com>
Cc: <kbuild-all@lists.01.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Roland Scheidegger <sroland@vmware.com>,
Martin Krastev <krastevm@vmware.com>
Subject: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:775:30: warning: Same value in both branches of ternary operator. [duplicateValueTernary]
Date: Fri, 28 Jan 2022 15:28:26 +0800 [thread overview]
Message-ID: <f4d8a648-11c6-aec5-41db-e10c4282f2c0@intel.com> (raw)
In-Reply-To: <202201281431.O4oatgJN-lkp@intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 23a46422c56144939c091c76cf389aa863ce9c18
commit: 4fb9326b96cbf9f751086969161a6c1d75bcd8f9 drm/vmwgfx: support 64 UAVs
date: 7 weeks ago
compiler: aarch64-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <yujie.liu@intel.com>
cppcheck possible warnings: (new ones prefixed by >>, may not be real problems)
>> drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:775:30: warning: Same value in both branches of ternary operator. [duplicateValueTernary]
SVGA3D_DX11_1_MAX_UAVIEWS : SVGA3D_MAX_UAVIEWS);
^
vim +775 drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
4fb9326b96cbf9 Zack Rusin 2021-12-06 770
4fb9326b96cbf9 Zack Rusin 2021-12-06 771
4fb9326b96cbf9 Zack Rusin 2021-12-06 772 static inline u32 vmw_max_num_uavs(struct vmw_private *dev_priv)
4fb9326b96cbf9 Zack Rusin 2021-12-06 773 {
4fb9326b96cbf9 Zack Rusin 2021-12-06 774 return (has_gl43_context(dev_priv) ?
4fb9326b96cbf9 Zack Rusin 2021-12-06 @775 SVGA3D_DX11_1_MAX_UAVIEWS : SVGA3D_MAX_UAVIEWS);
4fb9326b96cbf9 Zack Rusin 2021-12-06 776 }
4fb9326b96cbf9 Zack Rusin 2021-12-06 777
drivers/gpu/drm/vmwgfx/device_include/svga3d_limits.h:
#define SVGA3D_DX11_1_MAX_UAVIEWS 64
#define SVGA3D_MAX_UAVIEWS (SVGA3D_DX11_1_MAX_UAVIEWS)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
parent reply other threads:[~2022-01-28 7:28 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <202201281431.O4oatgJN-lkp@intel.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f4d8a648-11c6-aec5-41db-e10c4282f2c0@intel.com \
--to=yujie.liu@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=krastevm@vmware.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sroland@vmware.com \
--cc=zackr@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).