)]}'
{
  "commit": "68a74490629eb606ad77a88dd84515f35525e267",
  "tree": "c41de5ba3944fdfe13a5d1e9dee200af1889ebb4",
  "parents": [
    "76eeb9b8de9880ca38696b2fb56ac45ac0a25c6c"
  ],
  "author": {
    "name": "Gustavo A. R. Silva",
    "email": "gustavoars@kernel.org",
    "time": "Mon Aug 11 22:00:12 2025 +0900"
  },
  "committer": {
    "name": "Mikulas Patocka",
    "email": "mpatocka@redhat.com",
    "time": "Mon Sep 08 16:28:38 2025 +0200"
  },
  "message": "fs: hpfs: Avoid multiple -Wflex-array-member-not-at-end warnings\n\n-Wflex-array-member-not-at-end was introduced in GCC-14, and we are\ngetting ready to enable it, globally.\n\nSo, in order to avoid ending up with a flexible-array member in the\nmiddle of other structs, we use the `struct_group_tagged()` helper\nto create a new tagged `struct bplus_header_fixed`. This structure\ngroups together all the members of the flexible `struct bplus_header`\nexcept the flexible array.\n\nAs a result, the array is effectively separated from the rest of the\nmembers without modifying the memory layout of the flexible structure.\nWe then change the type of the middle struct member currently causing\ntrouble from `struct bplus_header` to `struct bplus_header_fixed`.\n\nWe also want to ensure that when new members need to be added to the\nflexible structure, they are always included within the newly created\ntagged struct. For this, we use `static_assert()`. This ensures that the\nmemory layout for both the flexible structure and the new tagged struct\nis the same after any changes.\n\nThis approach avoids having to implement `struct bplus_header_fixed`\nas a completely separate structure, thus preventing having to maintain\ntwo independent but basically identical structures, closing the door\nto potential bugs in the future.\n\nWe also use `container_of()` (via a wrapper) whenever we need to retrieve\na pointer to the flexible structure, through which we can access the\nflexible-array member, if necessary.\n\nSo, with these changes, fix 26 of the following type of warnings:\nfs/hpfs/hpfs.h:456:23: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]\nfs/hpfs/hpfs.h:498:23: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]\n\nSigned-off-by: Gustavo A. R. Silva \u003cgustavoars@kernel.org\u003e\nSigned-off-by: Mikulas Patocka \u003cmpatocka@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c14c9a035ee0c0bea94d8b441a4fb0e6934d19d6",
      "old_mode": 33188,
      "old_path": "fs/hpfs/anode.c",
      "new_id": "a4f5321eafaee9f57e13261a225acb8cfa29b076",
      "new_mode": 33188,
      "new_path": "fs/hpfs/anode.c"
    },
    {
      "type": "modify",
      "old_id": "102ba18e561f6fbce6bcbeda94acd62a1300e211",
      "old_mode": 33188,
      "old_path": "fs/hpfs/ea.c",
      "new_id": "2149d3ca530b6f635ff884988383bdde21be5e7a",
      "new_mode": 33188,
      "new_path": "fs/hpfs/ea.c"
    },
    {
      "type": "modify",
      "old_id": "263b5bbe1849555263143894214c5388e2ca7539",
      "old_mode": 33188,
      "old_path": "fs/hpfs/file.c",
      "new_id": "29e876705369ba7e9c8dd61b6490f74877d9f30d",
      "new_mode": 33188,
      "new_path": "fs/hpfs/file.c"
    },
    {
      "type": "modify",
      "old_id": "281dec8f636b326796edda49857cd33c82dd24fb",
      "old_mode": 33188,
      "old_path": "fs/hpfs/hpfs.h",
      "new_id": "353f73c914d9d52be85a5166382505f5add96e75",
      "new_mode": 33188,
      "new_path": "fs/hpfs/hpfs.h"
    },
    {
      "type": "modify",
      "old_id": "ecd9fccd166316b10f54f2919cee01762b0cfbfd",
      "old_mode": 33188,
      "old_path": "fs/hpfs/map.c",
      "new_id": "be73233502f8151ab40315a3475eee1d672952af",
      "new_mode": 33188,
      "new_path": "fs/hpfs/map.c"
    }
  ]
}
