Fix "error macro requires 3 arguments" problem
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 19 Apr 2018 19:12:22 +0000 (15:12 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:38:29 +0000 (14:38 -0400)
commit6e02cd9b510612f9eed32cf27c1c21f88165f75c
treea1f86d391afedbce83d748fc2e77b7f1049ee55e
parenta9bb70795ec6edadb7266c7ace206b553a8683a7
Fix "error macro requires 3 arguments" problem

If you try to use the compile_time_assert, for whatever reason, some black
magic in the preprocessor thinks there's a call to error (standalone) in
there, which is the Plan 9 error throwing macro.  It breaks in a nasty way.

I don't know exactly what Linux is doing here, but renaming fixes it.  This
probably means we can't have a macro called error_foo() either.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/linux/compiler.h