summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-05-01 11:20:53 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-01 11:20:53 -0700
commit459e3a21535ae3c7a9a123650e54f5c882b8fcbf (patch)
treef7b474b889c4ec014cf6611891ef5bdef6399e57 /fs
parentcf676908846a06443fa5e6724ca3f5dd7460eca1 (diff)
gcc-9: properly declare the {pv,hv}clock_page storage
The pvlock_page and hvclock_page variables are (as the name implies) addresses to pages, created by the linker script. But we declared them as just "extern u8" variables, which _works_, but now that gcc does some more bounds checking, it causes warnings like warning: array subscript 1 is outside array bounds of ‘u8[1]’ when we then access more than one byte from those variables. Fix this by simply making the declaration of the variables match reality, which makes the compiler happy too. Signed-off-by: Linus Torvalds <torvalds@-linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions