Skip to content

"warning: the frame size of 1232 bytes is larger than 1024 bytes" on aarch64 compilation #51

@HinTak

Description

@HinTak

This is seen on ubuntu 20.04.1 aarch64 :

dtc -W no-unit_address_vs_reg -@ -I dts -O dtb -o matrixio.dtbo matrixio.dts
make -C /lib/modules/5.4.0-1022-raspi/build M=/home/ubuntu/matrixio-kernel-modules/src modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-1022-raspi'
  CC [M]  /home/ubuntu/matrixio-kernel-modules/src/matrixio-core.o
/home/ubuntu/matrixio-kernel-modules/src/matrixio-core.c: In function ‘matrixio_register_devices’:
/home/ubuntu/matrixio-kernel-modules/src/matrixio-core.c:221:1: warning: the frame size of 1232 bytes is larger than 1024 bytes [-Wframe-larger-than=]
  221 | }
      | ^
...

Probably harmless and easy to fix. Interestingly enough not seen on x86_64 - I assume it is because on x86_64, members of structures don't need to be aligned to 64-bit, so may be packed closer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions