Message ID | 20210907141307.1437816-2-elver@google.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | stackdepot, kasan, workqueue: Avoid expanding stackdepot slabs when holding raw_spin_lock | expand |
On Tue, Sep 7, 2021 at 4:14 PM Marco Elver <elver@google.com> wrote: > > <linux/stackdepot.h> refers to gfp_t, but doesn't include gfp.h. > > Fix it by including <linux/gfp.h>. > > Signed-off-by: Marco Elver <elver@google.com> Reviewed-by: Alexander Potapenko <glider@google.com> > --- > include/linux/stackdepot.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/linux/stackdepot.h b/include/linux/stackdepot.h > index 6bb4bc1a5f54..97b36dc53301 100644 > --- a/include/linux/stackdepot.h > +++ b/include/linux/stackdepot.h > @@ -11,6 +11,8 @@ > #ifndef _LINUX_STACKDEPOT_H > #define _LINUX_STACKDEPOT_H > > +#include <linux/gfp.h> > + > typedef u32 depot_stack_handle_t; > > depot_stack_handle_t stack_depot_save(unsigned long *entries, > -- > 2.33.0.153.gba50c8fa24-goog >
diff --git a/include/linux/stackdepot.h b/include/linux/stackdepot.h index 6bb4bc1a5f54..97b36dc53301 100644 --- a/include/linux/stackdepot.h +++ b/include/linux/stackdepot.h @@ -11,6 +11,8 @@ #ifndef _LINUX_STACKDEPOT_H #define _LINUX_STACKDEPOT_H +#include <linux/gfp.h> + typedef u32 depot_stack_handle_t; depot_stack_handle_t stack_depot_save(unsigned long *entries,
<linux/stackdepot.h> refers to gfp_t, but doesn't include gfp.h. Fix it by including <linux/gfp.h>. Signed-off-by: Marco Elver <elver@google.com> --- include/linux/stackdepot.h | 2 ++ 1 file changed, 2 insertions(+)