]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/filter.h
serial: core: Make sure compiler barfs for 16-byte earlycon names
[mirror_ubuntu-bionic-kernel.git] / include / linux / filter.h
index 80b5b482cb4617ef0fc7f762edf93921ce562cf2..e85292a164676e1a833f6e2fd6c05136bf088f14 100644 (file)
@@ -449,7 +449,9 @@ struct sock_fprog_kern {
 
 struct bpf_binary_header {
        unsigned int pages;
-       u8 image[];
+
+       /* Some arches need word alignment for their instructions */
+       u8 image[] __aligned(4);
 };
 
 struct bpf_prog {