)]}'
{
  "commit": "3572e2edc7b611d0b564c487bafda04b5dbb5134",
  "tree": "18f158f1d892b2f0167f3eead63306f285f44ccb",
  "parents": [
    "f74cf399e02e24c544b0bd4b1fe8fa2c5ae30b18"
  ],
  "author": {
    "name": "Sebastian Andrzej Siewior",
    "email": "bigeasy@linutronix.de",
    "time": "Wed Nov 05 15:23:50 2025 +0100"
  },
  "committer": {
    "name": "Boqun Feng",
    "email": "boqun.feng@gmail.com",
    "time": "Wed Nov 12 08:56:42 2025 -0800"
  },
  "message": "locking/mutex: Redo __mutex_init()\n\nmutex_init() invokes __mutex_init() providing the name of the lock and\na pointer to a the lock class. With LOCKDEP enabled this information is\nuseful but without LOCKDEP it not used at all. Passing the pointer\ninformation of the lock class might be considered negligible but the\nname of the lock is passed as well and the string is stored. This\ninformation is wasting storage.\n\nSplit __mutex_init() into a _genereic() variant doing the initialisation\nof the lock and a _lockdep() version which does _genereic() plus the\nlockdep bits. Restrict the lockdep version to lockdep enabled builds\nallowing the compiler to remove the unused parameter.\n\nThis results in the following size reduction:\n\n      text     data       bss        dec  filename\n| 30237599  8161430   1176624   39575653  vmlinux.defconfig\n| 30233269  8149142   1176560   39558971  vmlinux.defconfig.patched\n   -4.2KiB   -12KiB\n\n| 32455099  8471098  12934684   53860881  vmlinux.defconfig.lockdep\n| 32455100  8471098  12934684   53860882  vmlinux.defconfig.patched.lockdep\n\n| 27152407  7191822   2068040   36412269  vmlinux.defconfig.preempt_rt\n| 27145937  7183630   2067976   36397543  vmlinux.defconfig.patched.preempt_rt\n   -6.3KiB    -8KiB\n\n| 29382020  7505742  13784608   50672370  vmlinux.defconfig.preempt_rt.lockdep\n| 29376229  7505742  13784544   50666515  vmlinux.defconfig.patched.preempt_rt.lockdep\n   -5.6KiB\n\nSigned-off-by: Sebastian Andrzej Siewior \u003cbigeasy@linutronix.de\u003e\nReviewed-by: Waiman Long \u003clongman@redhat.com\u003e\nSigned-off-by: Boqun Feng \u003cboqun.feng@gmail.com\u003e\nLink: https://patch.msgid.link/20251105142350.Tfeevs2N@linutronix.de\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "847b81ca643688fe03fd71f4e214d955f27c6a56",
      "old_mode": 33188,
      "old_path": "include/linux/mutex.h",
      "new_id": "bf535f0118bb88b7666c9e4ba4743633b6e5f85a",
      "new_mode": 33188,
      "new_path": "include/linux/mutex.h"
    },
    {
      "type": "modify",
      "old_id": "de7d6702cd96c6e01a05f593f0b176c77ba91333",
      "old_mode": 33188,
      "old_path": "kernel/locking/mutex.c",
      "new_id": "f3bb352a368d9c167940b9f61b7e6fe78ac8c874",
      "new_mode": 33188,
      "new_path": "kernel/locking/mutex.c"
    },
    {
      "type": "modify",
      "old_id": "bafd5af98eaecc266d47bf1f3b424f7777bd2644",
      "old_mode": 33188,
      "old_path": "kernel/locking/rtmutex_api.c",
      "new_id": "59dbd29cb219babce089a95d3d9199d03ebd1f5f",
      "new_mode": 33188,
      "new_path": "kernel/locking/rtmutex_api.c"
    }
  ]
}
