)]}'
{
  "commit": "2f9c82b6c49d6fdde7495d704ad7e2ff9865033e",
  "tree": "caec20cad37cca548223e9af3d792185770a045c",
  "parents": [
    "e46ba96c728478542499fd05b228987e272774f7"
  ],
  "author": {
    "name": "Aditya Gupta",
    "email": "adityag@linux.ibm.com",
    "time": "Fri Mar 28 22:43:54 2025 +0530"
  },
  "committer": {
    "name": "Reza Arbab",
    "email": "arbab@linux.ibm.com",
    "time": "Fri Apr 04 09:02:39 2025 -0500"
  },
  "message": "Fix -Werror\u003dunterminated-string-initialization errors\n\nGCC 15 has introduced errors for \"unterminated-string-initialization\"\nWhich treat any character array initialised with a string with a larger\nsize such that the null-character is not getting included in the\ncharacter array, GCC 15 gives a warning (and warnings are treated as\nerrors in skiboot compile).\n\nThis causes following errors on compiling skiboot with GCC 15:\n\n    core/init.c:79:27: error: initializer-string for array of ‘unsigned char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (9 chars into 8 available) [-Werror\u003dunterminated-string-initialization]\n       79 |         .eye_catcher    \u003d \"OPALdbug\",\n          |                           ^~~~~~~~~~\n    cc1: all warnings being treated as errors\n    ...\n\n    In file included from hdata/hdata.h:8,\n                     from hdata/spira.c:17:\n    hdata/spira.c:35:32: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (7 chars into 6 available) [-Werror\u003dunterminated-string-initialization]\n       35 |         .hdr \u003d HDIF_SIMPLE_HDR(\"PROCIN\", 1, struct proc_init_data),\n          |                                ^~~~~~~~\n    hdata/hdif.h:45:68: note: in definition of macro ‘HDIF_ID’\n       45 | #define HDIF_ID(_id)            .d1f0 \u003d CPU_TO_BE16(0xd1f0), .id \u003d _id\n          |                                                                    ^~~\n    hdata/spira.c:35:16: note: in expansion of macro ‘HDIF_SIMPLE_HDR’\n       35 |         .hdr \u003d HDIF_SIMPLE_HDR(\"PROCIN\", 1, struct proc_init_data),\n          |                ^~~~~~~~~~~~~~~\n    ...\n     (similar errors few more times with hdata)\n    ...\n    cc1: all warnings being treated as errors```\n\nFix the errors by marking character arrays which are not supposed to be\n\"null-terminated strings\" with \"nonstring\" attribute, such as\neye-catchers in skiboot debug descriptor and hdif header\n\nSigned-off-by: Aditya Gupta \u003cadityag@linux.ibm.com\u003e\nSigned-off-by: Reza Arbab \u003carbab@linux.ibm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "38df6c271b55b743e8d0b01caae67275ce5c8543",
      "old_mode": 33188,
      "old_path": "hdata/hdif.h",
      "new_id": "f31d91428274c8cb89a516e9fb8a1cc3df9c8cec",
      "new_mode": 33188,
      "new_path": "hdata/hdif.h"
    },
    {
      "type": "modify",
      "old_id": "77821ec098e60645820829aacb13cbb2213a8d1a",
      "old_mode": 33188,
      "old_path": "include/compiler.h",
      "new_id": "74ca80993cd9f78ea80f195876bf64ea9922cfb3",
      "new_mode": 33188,
      "new_path": "include/compiler.h"
    },
    {
      "type": "modify",
      "old_id": "3ac487b001871b719a90702aa24a545509175df4",
      "old_mode": 33188,
      "old_path": "include/debug_descriptor.h",
      "new_id": "99c7b0b5c47bff820db7416374b253b9a2af04e2",
      "new_mode": 33188,
      "new_path": "include/debug_descriptor.h"
    }
  ]
}
