HomeFreeBSD

kernel: Make some compile time constant variables const

Description

kernel: Make some compile time constant variables const

Those variables are not going to be changed at runtime. Make them const
to avoid potential overwriting. This will also help spotting accidental
global variables shadowing, since the variable's name such as version
is short and commonly used.

This change was inspired by reviewing khng's work D44760.

No functional change intended.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D45227

(cherry picked from commit 356be1348dac94ba0d2dc1f479bc1f8a2ebaa03a)
(cherry picked from commit 497f577f460ba93dda38910bf49b390fa610480f)

Details

Provenance
zleiAuthored on Fri, Aug 30, 10:26 AM
Differential Revision
D45227: kernel: Make some compiling time constant const
Parents
rG57f268ccfc66: zfs: cherry-pick change from openzfs
Branches
Unknown
Tags
Unknown