Project

General

Profile

Bug #6822

Lint warnings for vm/hat_sfmmu.c on SPARC

Added by Gary Mills over 4 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2016-03-27
Due date:
% Done:

40%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

During a lint build on SPARC, these warnings appeared:

"../../../sfmmu/vm/hat_sfmmu.c", line 13239: warning: set but not used in function: hmeblkp in sfmmu_rm_large_mappings (E_FUNC_SET_NOT_USED)
"../../../sfmmu/vm/hat_sfmmu.c", line 8193: warning: set but not used in function: hmeblkp in hat_page_demote (E_FUNC_SET_NOT_USED)
"../../sfmmu/vm/hat_sfmmu.c", line 13239: warning: set but not used in function: hmeblkp in sfmmu_rm_large_mappings (E_FUNC_SET_NOT_USED)
"../../sfmmu/vm/hat_sfmmu.c", line 8193: warning: set but not used in function: hmeblkp in hat_page_demote (E_FUNC_SET_NOT_USED)

The source file, usr/src/uts/sfmmu/vm/hat_sfmmu.c, has this function call in two places:

        hmeblkp = sfmmu_hmetohblk(sfhmep);

Although it's set, the variable hmeblkp is not used in the enclosing function. Note that hat_sfmmu.c is only compiled on the SPARC platform. It's not compiled for x86 builds. This lint warning was introduced by the fix to bug #6345, called `remove xhat support', integrated on Wed Jan 6 16:12:32 2016 -0500. This warning does not stop the build, but only clutters up the build log.

Also available in: Atom PDF