RE: [PATCHv2 01/10] xshm: Shared Memory layout for ST-E M7400driver.

From: Sjur BRENDELAND
Date: Mon Dec 12 2011 - 04:09:42 EST


Hi Arnd,

> > include/linux/xshm/xshm_ipctoc.h | 160
> ++++++++++++++++++++++++++++++++++++++
> > 1 files changed, 160 insertions(+), 0 deletions(-)
> > create mode 100644 include/linux/xshm/xshm_ipctoc.h
>
> Generally, the include/linux path is for interfaces between modules, while
> hardware data structures should be in the same directory as the driver using
> them to provide an abstract interface.

Sure, I'll move this file to drivers/xshm.

> > +#pragma pack(1)
>
> Better remove the #pragma. Marking data structures as packed when they
> are already packed to start with only leads to worse optimizations in the
> compiler, but does not have a functional impact.

Ok, I'll remove the #pragma in the next patch-set.

Regards,
Sjur
N‹§²æìr¸›yúèšØb²X¬¶ÇvØ^–)Þ{.nÇ+‰·¥Š{±‘êçzX§¶›¡Ü}©ž²ÆzÚ&j:+v‰¨¾«‘êçzZ+€Ê+zf£¢·hšˆ§~†­†Ûiÿûàz¹®w¥¢¸?™¨è­Ú&¢)ßf”ù^jÇy§m…á@A«a¶Úÿ 0¶ìh®å’i