lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <f4d8a648-11c6-aec5-41db-e10c4282f2c0@intel.com>
Date:   Fri, 28 Jan 2022 15:28:26 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Zack Rusin <zackr@...are.com>
CC:     <kbuild-all@...ts.01.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Roland Scheidegger <sroland@...are.com>,
        Martin Krastev <krastevm@...are.com>
Subject: drivers/gpu/drm/vmwgfx/vmwgfx_drv.h:775:30: warning: Same value in
 both branches of ternary operator. [duplicateValueTernary]

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ