HomeFreeBSD

uipc_shm: silent warnings about write-only variables in largepage code

Description

uipc_shm: silent warnings about write-only variables in largepage code

In shm_largepage_phys_populate(), the result from vm_page_grab() is only
needed for assertion.

In shm_dotruncate_largepage(), there is a commented-out prototype code
for managed largepages. The oldobjsz is saved for its sake, so mark
the variable as __unused directly.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Oct 21 2021, 5:46 PM
Parents
rG3d2778515aa4: sig_ast_checksusp(): mark the local p as __diagused
Branches
Unknown
Tags
Unknown