From: zhenwei pi Date: Thu, 2 Jan 2020 02:35:12 +0000 (+0800) Subject: misc: pvpanic: move bit definition to uapi header file X-Git-Tag: v5.6-rc1~136^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e0b9a42735f2672ca2764cfbea6e55a81098d5ba;p=thirdparty%2Flinux.git misc: pvpanic: move bit definition to uapi header file Some processes outside of the kernel(Ex, QEMU) should know what the value really is for, so move the bit definition to a uapi file. Suggested-by: Greg KH Signed-off-by: zhenwei pi Link: https://lore.kernel.org/r/20200102023513.318836-2-pizhenwei@bytedance.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 95ff7c5a1dfb6..3f0de3be0a195 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers/misc/pvpanic.c @@ -15,11 +15,10 @@ #include #include #include +#include static void __iomem *base; -#define PVPANIC_PANICKED (1 << 0) - MODULE_AUTHOR("Hu Tao "); MODULE_DESCRIPTION("pvpanic device driver"); MODULE_LICENSE("GPL"); diff --git a/include/uapi/misc/pvpanic.h b/include/uapi/misc/pvpanic.h new file mode 100644 index 0000000000000..cae69a822b25d --- /dev/null +++ b/include/uapi/misc/pvpanic.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ + +#ifndef __PVPANIC_H__ +#define __PVPANIC_H__ + +#define PVPANIC_PANICKED (1 << 0) + +#endif /* __PVPANIC_H__ */