)]}'
{
  "commit": "ab9a7e27044b87ff2be47b8f8e095400e7fccc44",
  "tree": "3a349c6d12b30f89c466fdb4e2fb70d3712d32dd",
  "parents": [
    "e00d996a4317aff5351c4338dd97d390225412c2"
  ],
  "author": {
    "name": "Mark Rutland",
    "email": "mark.rutland@arm.com",
    "time": "Tue Mar 10 12:09:12 2020 +0000"
  },
  "committer": {
    "name": "Theodore Ts\u0027o",
    "email": "tytso@mit.edu",
    "time": "Wed Mar 18 23:28:17 2020 -0400"
  },
  "message": "random: avoid warnings for !CONFIG_NUMA builds\n\nAs crng_initialize_secondary() is only called by do_numa_crng_init(),\nand the latter is under ifdeffery for CONFIG_NUMA, when CONFIG_NUMA is\nnot selected the compiler will warn that the former is unused:\n\n| drivers/char/random.c:820:13: warning: \u0027crng_initialize_secondary\u0027 defined but not used [-Wunused-function]\n|   820 | static void crng_initialize_secondary(struct crng_state *crng)\n|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~\n\nStephen reports that this happens for x86_64 noallconfig builds.\n\nWe could move crng_initialize_secondary() and crng_init_try_arch() under\nthe CONFIG_NUMA ifdeffery, but this has the unfortunate property of\nseparating them from crng_initialize_primary() and\ncrng_init_try_arch_early() respectively. Instead, let\u0027s mark\ncrng_initialize_secondary() as __maybe_unused.\n\nLink: https://lore.kernel.org/r/20200310121747.GA49602@lakrids.cambridge.arm.com\nFixes: 5cbe0f13b51a (\"random: split primary/secondary crng init paths\")\nReported-by: Stephen Rothwell \u003csfr@canb.auug.org.au\u003e\nSigned-off-by: Mark Rutland \u003cmark.rutland@arm.com\u003e\nCc: Theodore Ts\u0027o \u003ctytso@mit.edu\u003e\nSigned-off-by: Theodore Ts\u0027o \u003ctytso@mit.edu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f43f65c2195d3037027c73f0fd8fc0621977556c",
      "old_mode": 33188,
      "old_path": "drivers/char/random.c",
      "new_id": "0d10e31fd342f52416a41953dcad209e77bdd8e6",
      "new_mode": 33188,
      "new_path": "drivers/char/random.c"
    }
  ]
}
