# Re: \[PATCH\] powerpc: fix the allyesconfig build

- From: Stephen Rothwell \<hidden\>
- Date: 2020-11-28 18:00:35 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2020/11/6192147
- Thread: https://ratatoskr.run/linuxppc-dev/2020/11/6192091/t.md

```text
Hi Jakub,

On Fri, 27 Nov 2020 17:56:42 -0800 Jakub Kicinski [ref] wrote:
>
> What's the offending structure in hisilicon? I'd rather have a look
> packing structs with pointers in 'em sounds questionable.
> 
> I only see these two:
> 
> $ git grep packed drivers/net/ethernet/hisilicon/
> drivers/net/ethernet/hisilicon/hns/hnae.h:struct __packed hnae_desc {
> drivers/net/ethernet/hisilicon/hns3/hns3_enet.h:struct __packed hns3_desc {

struct hclge_dbg_reg_type_info which is 28 bytes long due to the
included struct struct hclge_dbg_reg_common_msg (which is 12 bytes
long).  They are surrounded by #pragma pack(1)/pack().

This forces the 2 pointers in each second array element of
hclge_dbg_reg_info[] to be 4 byte aligned (where pointers are 8 bytes
long on PPC64).
-- 
Cheers,
Stephen Rothwell
```

## Attachments

- [(unnamed)](https://ratatoskr.run/linuxppc-dev/2020/11/6192147/attachment/0) (application/pgp-signature, 484 bytes)
