Files
kernel_google_wahoo/include/linux
Mark Rutland 5fc2fed169 UPSTREAM: thread_info: include <current.h> for THREAD_INFO_IN_TASK
When CONFIG_THREAD_INFO_IN_TASK is selected, the current_thread_info()
macro relies on current having been defined prior to its use. However,
not all users of current_thread_info() include <asm/current.h>, and thus
current is not guaranteed to be defined.

When CONFIG_THREAD_INFO_IN_TASK is not selected, it's possible that
get_current() / current are based upon current_thread_info(), and
<asm/current.h> includes <asm/thread_info.h>. Thus always including
<asm/current.h> would result in circular dependences on some platforms.

To ensure both cases work, this patch includes <asm/current.h>, but only
when CONFIG_THREAD_INFO_IN_TASK is selected.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

Bug: 64672701
Change-Id: Ia981a829798d60a54d4e3eb679d8e24b01228357
(cherry picked from commit dc3d2a679cd8631b8a570fc8ca5f4712d7d25698)
Signed-off-by: Zubin Mithra <zsm@google.com>
2017-08-21 16:04:11 +01:00
..
2015-10-17 21:22:08 -07:00
2015-10-07 18:08:15 +01:00
2016-03-23 21:23:46 -07:00
2016-03-09 15:34:52 -08:00
2015-11-07 10:40:47 -07:00
2016-03-01 13:00:24 -08:00
2017-05-22 23:19:33 -07:00
2015-10-18 10:14:39 -07:00
2016-03-22 11:10:20 -07:00
2016-04-13 11:11:51 -07:00
2016-02-16 13:50:55 -08:00
2016-04-13 11:11:30 -07:00
2016-04-20 15:42:02 +09:00
2015-10-23 05:44:28 -07:00
2016-03-22 11:04:03 -07:00
2017-01-23 11:03:24 +05:30
2015-10-13 19:01:25 +02:00
2017-05-04 16:43:06 +00:00
2017-06-22 21:23:27 +00:00
2015-11-23 09:44:58 +01:00
2015-10-27 18:55:31 -07:00
2017-07-19 23:03:01 -07:00
2015-10-20 22:10:45 +08:00
2016-03-22 11:10:25 -07:00
2016-03-23 21:25:09 -07:00
2016-03-03 15:07:28 -08:00
2016-03-22 11:03:30 -07:00
2016-12-08 07:15:24 +01:00
2017-02-14 16:12:56 -08:00
2016-03-23 21:19:04 -07:00
2016-04-08 11:24:28 +08:00
2015-10-09 17:00:32 -04:00
2015-10-06 17:08:19 +02:00
2016-03-22 11:08:08 -07:00
2016-03-23 20:11:01 -07:00
2017-01-05 13:05:14 -08:00
2016-09-30 10:18:37 +02:00
2016-11-08 10:23:45 -08:00
2016-03-23 21:19:04 -07:00
2015-10-19 01:01:21 +02:00
2017-06-30 23:36:54 -07:00
2015-11-23 09:44:58 +01:00
2015-12-04 08:38:42 -07:00
2015-12-13 14:30:59 -08:00
2015-11-13 20:34:33 -05:00
2016-05-31 15:26:37 -07:00