Page MenuHomeFreeBSD

sys/vm/uma_core.c:zone_import() Wrap stripe variable in #ifdef NUMA
ClosedPublic

Authored by sbruno on Jul 3 2018, 4:12 PM.
Tags
None
Referenced Files
F166006715: D16113.id44809.diff
Mon, Aug 10, 11:40 PM
F166006050: D16113.id44993.diff
Mon, Aug 10, 11:32 PM
F166006030: D16113.diff
Mon, Aug 10, 11:32 PM
Unknown Object (File)
Thu, Aug 6, 6:39 PM
Unknown Object (File)
Jul 8 2026, 1:09 AM
Unknown Object (File)
Jun 17 2026, 12:09 PM
Unknown Object (File)
Jun 11 2026, 12:27 PM
Unknown Object (File)
Jun 8 2026, 11:06 AM
Subscribers

Details

Summary

stripe seems to be unused on targets that don't support NUMA.
Wrap this variable completely inside of #ifdef NUMA. Found with gcc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

/home/sbruno/bsd/fbsd_head/sys/vm/uma_core.c: In function 'zone_import':
/home/sbruno/bsd/fbsd_head/sys/vm/uma_core.c:2774:6: warning: variable 'stripe' set but not used [-Wunused-but-set-variable]
  int stripe;
This revision was not accepted when it landed; it landed in state Needs Review.Jul 7 2018, 1:38 PM
This revision was automatically updated to reflect the committed changes.