x86/hyper-v: Move hv_message_type to architecture neutral module
authorMichael Kelley <mikelley@microsoft.com>
Tue, 2 Mar 2021 21:38:14 +0000 (13:38 -0800)
committerWei Liu <wei.liu@kernel.org>
Mon, 8 Mar 2021 17:32:59 +0000 (17:32 +0000)
commit5e4e6ddf8d74068fd6bb7922dabcfa2c0f506c39
treefb95729b2ed48143414b0465ea75c7eb20f36c7b
parentca48739e59df31d16c27dbcd9ea2ea61d7caa9fb
x86/hyper-v: Move hv_message_type to architecture neutral module

The definition of enum hv_message_type includes arch neutral and
x86/x64-specific values. Ideally there would be a way to put the
arch neutral values in an arch neutral module, and the arch
specific values in an arch specific module. But C doesn't provide
a way to extend enum types. As a compromise, move the entire
definition into an arch neutral module, to avoid duplicating the
arch neutral values for x86/x64 and for ARM64.

No functional change.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/1614721102-2241-3-git-send-email-mikelley@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/include/asm/hyperv-tlfs.h
include/asm-generic/hyperv-tlfs.h