kmem_move tunables must not be declared static
The kmem_move_* tunables (e.g. kmem_move_noreap) are declared "static".
Because they are never set in the code, the compiler can consider them
constants and optimize them away - removing the code that checks them.
They must not be declared "static" to be used as tunables.
Updated by Electric Monk over 4 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 929d5b43a5225be8ab64d840e6a10803fb6acd0b Author: Matthew Ahrens <email@example.com> Date: 2017-05-16T22:41:15.000Z 8125 kmem_move tunables must not be declared static Reviewed by: Serapheim Dimitropoulos <firstname.lastname@example.org> Reviewed by: Dan Kimmel <email@example.com> Reviewed by: Prashanth Sreenivasa <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>