)]}'
{
  "commit": "80c7c2b00d607221bb43815d2c1951d54229b3ee",
  "tree": "7d9f3932b246f2b17d6ba6d7dbd4f9966c8071b1",
  "parents": [
    "dafd95053611aa14dda40266857608d12ddce658"
  ],
  "author": {
    "name": "Peter Maydell",
    "email": "peter.maydell@linaro.org",
    "time": "Thu Sep 27 17:42:00 2018 +0100"
  },
  "committer": {
    "name": "Eric Blake",
    "email": "eblake@redhat.com",
    "time": "Wed Oct 03 09:58:43 2018 -0500"
  },
  "message": "nbd: Don\u0027t take address of fields in packed structs\n\nTaking the address of a field in a packed struct is a bad idea, because\nit might not be actually aligned enough for that pointer type (and\nthus cause a crash on dereference on some host architectures). Newer\nversions of clang warn about this. Avoid the bug by not using the\n\"modify in place\" byte swapping functions.\n\nThis patch was produced with the following spatch script:\n@@\nexpression E;\n@@\n-be16_to_cpus(\u0026E);\n+E \u003d be16_to_cpu(E);\n@@\nexpression E;\n@@\n-be32_to_cpus(\u0026E);\n+E \u003d be32_to_cpu(E);\n@@\nexpression E;\n@@\n-be64_to_cpus(\u0026E);\n+E \u003d be64_to_cpu(E);\n@@\nexpression E;\n@@\n-cpu_to_be16s(\u0026E);\n+E \u003d cpu_to_be16(E);\n@@\nexpression E;\n@@\n-cpu_to_be32s(\u0026E);\n+E \u003d cpu_to_be32(E);\n@@\nexpression E;\n@@\n-cpu_to_be64s(\u0026E);\n+E \u003d cpu_to_be64(E);\n\nSigned-off-by: Peter Maydell \u003cpeter.maydell@linaro.org\u003e\nMessage-Id: \u003c20180927164200.15097-1-peter.maydell@linaro.org\u003e\nReviewed-by: Eric Blake \u003ceblake@redhat.com\u003e\n[eblake: rebase, and squash in missed changes]\nSigned-off-by: Eric Blake \u003ceblake@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "40b74d9761f804238bacfa7155185fa71e7137f8",
      "old_mode": 33188,
      "old_path": "nbd/client.c",
      "new_id": "b4d457a19adb868f0fc94dff7b7aa4fd389a470f",
      "new_mode": 33188,
      "new_path": "nbd/client.c"
    },
    {
      "type": "modify",
      "old_id": "c3dd402b45ef0b303add71f948bb45f64fb686bb",
      "old_mode": 33188,
      "old_path": "nbd/server.c",
      "new_id": "98d0fa25158366aa3c3699cfad75e3a9ab3c30bf",
      "new_mode": 33188,
      "new_path": "nbd/server.c"
    }
  ]
}
