x86/sgx: use VM_ACCESS_FLAGS
authorKefeng Wang <wangkefeng.wang@huawei.com>
Wed, 19 Oct 2022 03:49:42 +0000 (11:49 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 9 Nov 2022 01:37:19 +0000 (17:37 -0800)
commit4f20566f5c0f42c451f6a43be9bfa6f0b3d142df
treedbb18f0cd5e2a48e37f8e76251d516438b38aff7
parent93d38b72e4c1a518f46fd6dfcb5ad7c5003fa372
x86/sgx: use VM_ACCESS_FLAGS

Simplify VM_READ|VM_WRITE|VM_EXEC with VM_ACCESS_FLAGS.

Link: https://lkml.kernel.org/r/20221019034945.93081-3-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@gmail.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/cpu/sgx/encl.c