Home
last modified time | relevance | path

Searched hist:"24 bb30c8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/v4l2-core/
H A Dv4l2-ioctl.c24bb30c8 Mon Jan 10 08:53:12 CST 2022 Sakari Ailus <sakari.ailus@linux.intel.com> media: v4l: Avoid unaligned access warnings when printing 4cc modifiers

Pointers V4L2 pixelformat and dataformat fields in a few packed structs
are directly passed to printk family of functions. This could result in an
unaligned access albeit no such possibility appears to exist at the
moment i.e. this clang warning appears to be a false positive.

Address the warning by copying the pixelformat or dataformat value to a
local variable first.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: e927e1e0f0dd ("v4l: ioctl: Use %p4cc printk modifier to print FourCC codes")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>