All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] IPU3 ImgU driver parameter struct fixes
@ 2020-04-16  9:18 Sakari Ailus
  2020-04-16  9:18 ` [PATCH 1/3] Revert "staging: imgu: Address a compiler warning on alignment" Sakari Ailus
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Sakari Ailus @ 2020-04-16  9:18 UTC (permalink / raw)
  To: linux-media; +Cc: rajmohan.mani, bingbu.cao, tfiga

Hi all,

This set addresses parameter struct memory layout changes introduced by
seemingly innocent patches, and adds a sanity check for the struct size to
avoid this from happening again. This only touches the uAPI, not the
ipu3-abi.h that deals with ABI not visible in the driver uAPI. That should
be addressed as well going forward.

The first patch does not probably entirely fix the issues, but with the
second patch added, pahole agrees the struct memory layout is unchanged
from the previous state.

Sakari Ailus (3):
  Revert "staging: imgu: Address a compiler warning on alignment"
  staging: ipu3-imgu: Move alignment attribute to field
  staging: ipu3-imgu: Add a sanity check for the parameter struct size

 drivers/staging/media/ipu3/include/intel-ipu3.h | 7 ++++---
 drivers/staging/media/ipu3/ipu3-css.c           | 7 +++++++
 2 files changed, 11 insertions(+), 3 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-27 15:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-16  9:18 [PATCH 0/3] IPU3 ImgU driver parameter struct fixes Sakari Ailus
2020-04-16  9:18 ` [PATCH 1/3] Revert "staging: imgu: Address a compiler warning on alignment" Sakari Ailus
2020-04-27 15:39   ` [PATCH v1.1 " Sakari Ailus
2020-04-16  9:18 ` [PATCH 2/3] staging: ipu3-imgu: Move alignment attribute to field Sakari Ailus
2020-04-16  9:18 ` [PATCH 3/3] staging: ipu3-imgu: Add a sanity check for the parameter struct size Sakari Ailus
2020-04-26  2:42 ` [PATCH 0/3] IPU3 ImgU driver parameter struct fixes Bingbu Cao
2020-04-27 15:43   ` Sakari Ailus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.