LKML Archive on
help / color / mirror / Atom feed
From: Carmeli Tamir <>
Subject: [PATCH] scheduler: wait: Added missing include freezer.h
Date: Fri, 26 Oct 2018 15:35:51 -0400	[thread overview]
Message-ID: <> (raw)

The function 'wait_event_freezable' calls '__wait_event_freezable' that
uses 'try_to_freeze', which is defined in freezer.h.
This causes a compilation error for callers of 'wait_event_freezables',
forcing them to include also freezer.h.

Signed-off-by: Carmeli Tamir <>
 include/linux/wait.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/wait.h b/include/linux/wait.h
index ed7c122..75061ee 100644
--- a/include/linux/wait.h
+++ b/include/linux/wait.h
@@ -4,6 +4,7 @@
  * Linux wait queue related types and methods
+#include <linux/freezer.h>
 #include <linux/list.h>
 #include <linux/stddef.h>
 #include <linux/spinlock.h>

             reply	other threads:[~2018-10-26 19:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26 19:35 Carmeli Tamir [this message]
2018-10-29  6:01 ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \
    --subject='Re: [PATCH] scheduler: wait: Added missing include freezer.h' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).