diff options
| author | Luc Van Oostenryck <[email protected]> | 2020-08-28 08:53:01 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2020-08-29 07:29:32 +0000 |
| commit | e5fc436f06eef54ef512ea55a9db8eb9f2e76959 (patch) | |
| tree | 341428ddf26259238c7af79d5817929e0adb6151 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | Compiler Attributes: fix comment concerning GCC 4.6 (diff) | |
| download | kernel-e5fc436f06eef54ef512ea55a9db8eb9f2e76959.tar.gz kernel-e5fc436f06eef54ef512ea55a9db8eb9f2e76959.zip | |
sparse: use static inline for __chk_{user,io}_ptr()
__chk_user_ptr() & __chk_io_ptr() are dummy extern functions which
only exist to enforce the typechecking of __user or __iomem pointers
in macros when using sparse.
This typechecking is done by inserting a call to these functions.
But the presence of these calls can inhibit some simplifications
and so influence the result of sparse's analysis of context/locking.
Fix this by changing these calls into static inline calls with
an empty body.
Signed-off-by: Luc Van Oostenryck <[email protected]>
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
