Re: [PATCH v2] powerpc/machdep: warn when machine_is() used too early

2023-02-19 Thread Michael Ellerman
On Mon, 13 Feb 2023 13:23:51 -0600, Nathan Lynch wrote: > 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 c

Re: [PATCH v2] powerpc/machdep: warn when machine_is() used too early

2023-02-13 Thread Nathan Lynch
Christophe Leroy writes: > Le 13/02/2023 à 20:23, Nathan Lynch via B4 Submission Endpoint a écrit : >> From: Nathan Lynch >> >> 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 th

Re: [PATCH v2] powerpc/machdep: warn when machine_is() used too early

2023-02-13 Thread Christophe Leroy
Le 13/02/2023 à 20:23, Nathan Lynch via B4 Submission Endpoint a écrit : > From: Nathan Lynch > > 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

[PATCH v2] powerpc/machdep: warn when machine_is() used too early

2023-02-13 Thread Nathan Lynch via B4 Submission Endpoint
From: Nathan Lynch 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 pat