public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [sailus-media-tree:metadata 90/113] drivers/media/v4l2-core/v4l2-subdev.c:2675:55: warning: overlapping comparisons always evaluate to true
@ 2026-01-19 16:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-19 16:17 UTC (permalink / raw)
  To: Sakari Ailus; +Cc: oe-kbuild-all, linux-media

tree:   git://linuxtv.org/sailus/media_tree.git metadata
head:   55ba38aaeb6e07cbbbe550578fa4737b05de1d00
commit: 50fcff1c16cac7152a1b5b56a71656e97d276857 [90/113] media: v4l2-subdev: Introduce v4l2_subdev_get_frame_desc()
config: sparc64-randconfig-r071-20260119 (https://download.01.org/0day-ci/archive/20260120/202601200019.peMSxK0X-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
smatch version: v0.5.0-8985-g2614ff1a
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260120/202601200019.peMSxK0X-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601200019.peMSxK0X-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/media/v4l2-core/v4l2-subdev.c:2675:55: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
    2675 |         if (desc->type != V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL ||
         |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
    2676 |             desc->type != V4L2_MBUS_FRAME_DESC_TYPE_CSI2)
         |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +2675 drivers/media/v4l2-core/v4l2-subdev.c

  2659	
  2660	int v4l2_subdev_get_frame_desc(struct v4l2_subdev *sd, unsigned int pad,
  2661				       struct v4l2_mbus_frame_desc *desc)
  2662	{
  2663		if (v4l2_subdev_has_op(sd, pad, get_frame_desc)) {
  2664			unsigned int type = desc->type;
  2665			int ret;
  2666	
  2667			ret = v4l2_subdev_call(sd, pad, get_frame_desc, pad, desc);
  2668	
  2669			if (desc->type != type)
  2670				return -EINVAL;
  2671	
  2672			return ret;
  2673		}
  2674	
> 2675		if (desc->type != V4L2_MBUS_FRAME_DESC_TYPE_PARALLEL ||

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2026-01-19 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 16:17 [sailus-media-tree:metadata 90/113] drivers/media/v4l2-core/v4l2-subdev.c:2675:55: warning: overlapping comparisons always evaluate to true 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