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