]> git.baikalelectronics.ru Git - kernel.git/commit
atm: idt77252: fix build broken on amd64
authorTong Zhang <ztong0001@gmail.com>
Sun, 14 Feb 2021 23:43:08 +0000 (18:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 20:36:27 +0000 (12:36 -0800)
commit95cd9fe2386020d05c8a2117509daa9329915351
treeddcbbfc6090784341324c4cb60ba618360f95208
parent66a94da963b367a1ffa13d2693d808df37daf253
atm: idt77252: fix build broken on amd64

idt77252 is broken and wont load on amd64 systems
  modprobe idt77252 shows the following

    idt77252_init: skb->cb is too small (48 < 56)

  Add packed attribute to struct idt77252_skb_prv and struct atm_skb_data
  so that the total size can be <= sizeof(skb->cb)
  Also convert runtime size check to buildtime size check in
  idt77252_init()

Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/idt77252.c
drivers/atm/idt77252.h
include/linux/atmdev.h