diff options
author | Linus Walleij <[email protected]> | 2023-08-10 09:27:04 +0200 |
---|---|---|
committer | Juergen Gross <[email protected]> | 2023-08-21 09:52:29 +0200 |
commit | 067e4f174f6d4ecf8872ad93d859d57bab44f7b6 (patch) | |
tree | e3ca256efdf0b85d1455569f9fc1d04eefc13ca4 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | d826c9e61c99120f8996f8fed6417167e32eb922 (diff) |
x86/xen: Make virt_to_pfn() a static inline
Making virt_to_pfn() a static inline taking a strongly typed
(const void *) makes the contract of a passing a pointer of that
type to the function explicit and exposes any misuse of the
macro virt_to_pfn() acting polymorphic and accepting many types
such as (void *), (unitptr_t) or (unsigned long) as arguments
without warnings.
Also fix all offending call sites to pass a (void *) rather
than an unsigned long. Since virt_to_mfn() is wrapping
virt_to_pfn() this function has become polymorphic as well
so the usage need to be fixed up.
Signed-off-by: Linus Walleij <[email protected]>
Acked-by: Juergen Gross <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions