summaryrefslogtreecommitdiffstats
path: root/block/blk-iolatency.c
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2023-02-13 20:23:51 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2023-02-15 12:41:11 +0100
commit388defd5e4180a48e068d7ba9b024ce0ca957968 (patch)
tree58561b4f5a52d2c2340a75062d43dd81c60bce00 /block/blk-iolatency.c
parentpowerpc/64: Replace -mcpu=e500mc64 by -mcpu=e5500 (diff)
downloadlinux-388defd5e4180a48e068d7ba9b024ce0ca957968.tar.xz
linux-388defd5e4180a48e068d7ba9b024ce0ca957968.zip
powerpc/machdep: warn when machine_is() used too early
machine_is() can't provide correct results before probe_machine() has run. Warn when it's used too early in boot, placing the WARN_ON() in a helper function so the reported file:line indicates exactly what went wrong. checkpatch complains about __attribute__((weak)) in the patch, so change that to __weak, and align the line continuations as well. Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20230210-warn-on-machine-is-before-probe-machine-v2-1-b57f8243c51c@linux.ibm.com
Diffstat (limited to 'block/blk-iolatency.c')
0 files changed, 0 insertions, 0 deletions