Michael Ellerman
b5fa0f7f88
powerpc: Fix build failure with clang due to BUILD_BUG_ON()
...
Anton says: In commit 4db7327194db ("powerpc: Add option to use jump
label for cpu_has_feature()") and commit c12e6f24d413 ("powerpc: Add
option to use jump label for mmu_has_feature()") we added:
BUILD_BUG_ON(!__builtin_constant_p(feature))
to cpu_has_feature() and mmu_has_feature() in order to catch usage
issues (such as cpu_has_feature(cpu_has_feature(X), which has happened
once in the past). Unfortunately LLVM isn't smart enough to resolve
this, and it errors out.
I work around it in my clang/LLVM builds of the kernel, but I have just
discovered that it causes a lot of issues for the bcc (eBPF) trace tool
(which uses LLVM).
For now just #ifdef it away for clang builds.
Fixes: 4db7327194db ("powerpc: Add option to use jump label for cpu_has_feature()")
Fixes: c12e6f24d413 ("powerpc: Add option to use jump label for mmu_has_feature()")
Cc: stable@vger.kernel.org # v4.8+
Reported-by: Anton Blanchard <anton@samba.org>
Tested-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-01-25 13:36:10 +11:00
..
2017-01-18 11:58:50 +11:00
2017-01-18 11:58:50 +11:00
2016-07-09 01:43:50 -05:00
2015-07-23 19:52:03 +10:00
2016-06-24 15:17:57 +10:00
2016-12-24 11:46:01 -08:00
2016-10-04 16:13:13 +11:00
2016-01-12 20:46:53 +02:00
2014-11-12 16:31:46 +11:00
2012-10-09 09:47:26 +01:00
2013-08-14 14:57:40 +10:00
2014-09-25 23:14:43 +10:00
2016-11-14 11:11:51 +11:00
2016-08-01 11:15:03 +10:00
2016-10-29 17:06:23 -04:00
2016-11-25 14:07:50 +11:00
2016-06-14 13:58:27 +10:00
2015-07-29 11:56:13 +10:00
2014-04-23 10:05:16 +10:00
2014-10-08 20:15:37 +11:00
2014-06-11 17:03:28 +10:00
2015-12-22 17:12:56 -06:00
2017-01-25 13:36:10 +11:00
2016-07-21 20:33:57 +10:00
2016-10-22 08:44:38 +11:00
2016-09-25 02:38:55 -05:00
2016-08-22 11:09:33 +10:00
2016-11-15 09:51:04 +01:00
2015-03-23 14:29:40 +11:00
2016-08-01 11:15:03 +10:00
2014-05-23 08:28:02 +09:00
2016-08-01 11:15:03 +10:00
2016-11-30 23:15:11 +11:00
2015-07-13 10:10:54 +10:00
2015-10-15 15:58:16 +11:00
2016-08-04 08:50:07 -04:00
2013-04-18 13:03:53 +10:00
2015-05-28 15:31:53 +02:00
2014-06-11 17:04:33 +10:00
2016-06-21 15:30:56 +10:00
2012-02-14 14:06:50 -07:00
2015-04-14 16:49:05 -07:00
2014-04-09 12:53:28 +10:00
2014-01-09 10:14:57 +01:00
2015-10-27 18:14:40 -05:00
2016-11-12 20:12:49 +11:00
2012-03-28 18:30:02 +01:00
2016-09-13 17:36:01 +10:00
2016-08-10 19:41:58 +10:00
2016-07-21 18:56:13 +10:00
2016-07-09 02:02:48 -05:00
2011-11-08 14:51:46 +11:00
2014-06-25 18:49:40 -05:00
2012-11-15 13:00:58 +11:00
2012-10-05 23:38:38 +02:00
2015-01-12 05:04:13 -08:00
2015-02-03 18:47:18 +01:00
2016-03-04 23:50:27 -06:00
2016-06-14 13:58:27 +10:00
2016-11-14 11:11:51 +11:00
2014-11-03 12:12:32 +11:00
2016-11-14 11:11:51 +11:00
2015-11-09 15:11:24 -08:00
2016-09-09 16:18:07 +10:00
2017-01-18 11:58:50 +11:00
2016-11-30 23:19:59 +11:00
2013-10-11 16:48:53 +11:00
2014-05-20 10:54:06 +10:00
2016-09-25 02:38:53 -05:00
2016-03-01 19:27:20 +11:00
2012-02-14 14:06:50 -07:00
2013-06-12 12:37:26 +01:00
2015-12-17 16:42:12 +08:00
2016-12-20 09:48:44 -08:00
2011-05-06 13:19:01 +10:00
2013-01-03 15:57:04 -08:00
2016-11-14 11:11:51 +11:00
2016-08-04 08:50:07 -04:00
2015-02-23 14:52:04 +11:00
2014-09-25 23:14:43 +10:00
2014-07-28 14:11:23 +10:00
2016-08-05 09:00:54 -04:00
2016-08-07 23:50:09 -04:00
2011-12-20 10:20:19 -05:00
2016-12-20 09:48:44 -08:00
2012-02-21 11:40:36 +01:00
2012-07-24 15:27:29 +08:00
2016-11-23 22:56:25 +11:00
2016-11-24 09:24:23 +11:00
2013-10-17 14:45:05 +02:00
2016-09-27 15:14:29 +10:00
2016-07-15 20:18:41 +10:00
2016-09-27 14:41:39 +10:00
2014-03-19 19:57:15 -05:00
2015-08-22 11:16:19 +02:00
2016-11-28 11:48:47 +11:00
2014-01-09 10:14:57 +01:00
2016-12-01 14:03:46 +11:00
2016-09-22 11:50:19 -04:00
2016-06-14 13:58:27 +10:00
2016-04-14 15:47:06 +10:00
2011-07-26 16:49:47 -07:00
2013-12-09 11:40:25 +11:00
2012-04-24 15:34:16 -07:00
2016-11-30 23:15:11 +11:00
2011-06-10 14:55:36 +02:00
2014-03-07 15:52:10 +11:00
2015-06-24 17:49:41 -07:00
2016-08-05 09:00:54 -04:00
2016-12-02 14:38:29 +11:00
2016-12-09 22:49:07 -06:00
2016-09-23 07:54:17 +10:00
2017-01-25 13:36:10 +11:00
2016-10-07 18:46:28 -07:00
2016-11-14 11:11:51 +11:00
2015-10-22 16:06:08 +02:00
2016-07-14 21:12:06 +10:00
2015-03-31 22:23:17 -05:00
2015-10-22 15:19:40 +02:00
2016-09-20 20:57:12 +10:00
2013-07-01 18:38:41 -05:00
2015-03-23 19:51:17 -05:00
2015-10-05 21:32:50 +11:00
2015-04-11 20:49:27 +10:00
2015-03-23 14:05:49 +11:00
2016-07-17 16:42:46 +10:00
2016-11-23 10:32:11 +11:00
2014-07-28 14:10:25 +10:00
2016-09-09 16:18:07 +10:00
2016-03-11 17:20:11 -06:00
2016-05-11 21:54:00 +10:00
2017-01-18 11:58:50 +11:00
2016-09-20 20:57:12 +10:00
2016-08-22 11:09:33 +10:00
2016-06-17 14:43:34 -05:00
2013-08-07 18:38:03 -05:00
2017-01-18 16:15:58 +11:00
2014-10-15 11:23:20 +11:00
2016-05-11 21:53:49 +10:00
2017-01-18 11:58:50 +11:00
2017-01-18 11:58:50 +11:00
2016-12-09 22:48:01 -06:00
2016-11-30 23:19:59 +11:00
2016-06-14 13:58:26 +10:00
2016-10-07 20:19:31 -07:00
2013-01-10 15:08:37 +11:00
2016-07-14 21:12:06 +10:00
2016-11-14 11:11:51 +11:00
2017-01-20 15:21:35 +11:00
2016-11-22 11:57:08 +11:00
2013-06-20 16:55:09 +10:00
2016-12-16 09:26:42 -08:00
2016-11-30 23:19:59 +11:00
2016-07-21 18:56:38 +10:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:27 +10:00
2016-12-09 22:49:07 -06:00
2014-06-11 16:35:38 +10:00
2016-03-01 19:27:20 +11:00
2013-08-07 18:38:04 -05:00
2016-11-24 22:14:52 +11:00
2014-09-25 23:14:43 +10:00
2016-07-21 19:17:46 +10:00
2012-03-28 18:30:02 +01:00
2013-11-06 14:13:49 +11:00
2015-04-17 09:04:10 -04:00
2016-06-14 13:58:27 +10:00
2016-07-21 18:56:31 +10:00
2013-10-11 17:26:49 +11:00
2016-10-04 16:43:07 +11:00
2016-11-30 23:15:11 +11:00
2016-07-21 18:56:38 +10:00
2012-09-17 16:31:51 +10:00
2016-11-22 12:48:06 +01:00
2015-08-18 19:29:49 +10:00
2012-10-09 09:47:26 +01:00
2014-10-08 20:14:54 +11:00
2014-09-25 23:14:51 +10:00
2016-06-14 13:58:25 +10:00
2015-03-24 13:33:52 +11:00
2012-09-12 14:57:09 -05:00
2016-08-10 16:34:20 +10:00
2016-07-21 18:51:42 +10:00
2015-07-29 11:56:13 +10:00
2013-02-03 18:16:11 -05:00
2016-11-30 23:15:27 +11:00
2016-07-17 16:42:47 +10:00
2012-10-09 09:47:26 +01:00
2016-08-02 19:35:23 -04:00
2016-08-01 11:15:03 +10:00
2013-11-22 16:56:48 -06:00
2016-12-12 18:55:07 -08:00
2016-08-01 11:15:13 +10:00
2016-10-04 20:33:16 +11:00
2015-05-27 15:22:15 +02:00
2015-08-06 16:36:23 +10:00
2016-12-09 09:13:30 -05:00
2015-09-16 15:47:51 +02:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:27 +10:00
2016-11-14 11:11:51 +11:00
2014-09-25 23:14:43 +10:00
2013-12-30 14:02:29 +11:00
2016-03-01 19:27:20 +11:00
2016-11-30 23:15:27 +11:00
2013-11-20 16:31:01 +01:00
2015-11-26 22:11:17 +11:00
2014-02-17 11:19:37 +11:00
2015-03-23 14:29:40 +11:00
2015-05-05 13:35:39 -06:00
2016-11-14 11:11:51 +11:00
2016-08-09 14:50:18 +10:00
2016-11-29 09:14:50 +00:00
2016-08-01 11:15:03 +10:00