diff options
author | Janis Schoetterl-Glausch <scgl@linux.ibm.com> | 2023-02-06 17:45:56 +0100 |
---|---|---|
committer | Janosch Frank <frankja@linux.ibm.com> | 2023-02-07 18:05:59 +0100 |
commit | a41f505e9f7f4e13afb6f0e331f99360a3088af7 (patch) | |
tree | 43cb185adb9e23171bc42d210f418375e1de6985 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
parent | dc55ceaef616bdac73810d6588c23a5b50d24911 (diff) |
KVM: s390: Move common code of mem_op functions into function
The vcpu and vm mem_op ioctl implementations share some functionality.
Move argument checking into a function and call it from both
implementations. This allows code reuse in case of additional future
mem_op operations.
Suggested-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20230206164602.138068-9-scgl@linux.ibm.com
Message-Id: <20230206164602.138068-9-scgl@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions