Thread (23 messages) 23 messages, 2 authors, 2023-05-08

Re: [PATCH v2 01/12] powerpc/book3s: Add missing <linux/sched.h> include

From: Russell Currey <hidden>
Date: 2023-05-08 03:46:47

On Thu, 2023-03-30 at 16:50 +1100, Benjamin Gray wrote:
The functions here use struct thread_struct fields, so need to import
the full definition from <linux/sched.h>. The <asm/current.h> header
that defines current only forward declares struct thread_struct.

Failing to include this <linux/sched.h> header leads to a compilation
error when a translation unit does not also include <linux/sched.h>
indirectly.

Signed-off-by: Benjamin Gray <redacted>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Russell Currey <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help