linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:775:30: warning: Same value in both branches of ternary operator. [duplicateValueTernary]
       [not found] <202201281431.O4oatgJN-lkp@intel.com>
@ 2022-01-28  7:28 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-28  7:28 UTC (permalink / raw)
  To: Zack Rusin
  Cc: kbuild-all, Linux Kernel Mailing List, Roland Scheidegger,
	Martin Krastev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-28  7:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <202201281431.O4oatgJN-lkp@intel.com>
2022-01-28  7:28 ` drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:775:30: warning: Same value in both branches of ternary operator. [duplicateValueTernary] kernel test robot

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).