Re: [PATCH net 4/5] net/smc: atomic SMCD cursor handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ursula Braun <ubraun@xxxxxxxxxxxxx>
Date: Mon, 12 Nov 2018 17:01:32 +0100

> +/* SMC-D cursor format */
> +union smcd_cdc_cursor {
 ...
> +} __aligned(8);

>  struct smcd_cdc_msg {
 ...
> +	union smcd_cdc_cursor	prod;
> +	union smcd_cdc_cursor	cons;
>  	u8 res3[8];
>  } __packed;

You're asking for 8-byte alignment of an object you only embed in a
__packed structure, which therefore has arbitary alignment.

It's not going to work.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux