]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/mm: fix compile for PAGE_DEFAULT_KEY != 0
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 14 Jun 2016 04:55:43 +0000 (06:55 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 14 Jun 2016 14:54:05 +0000 (16:54 +0200)
commitde3fa841e429de7e288facf9b642948677fac581
tree0cec833106a6617118ba1ee6a2bd55f0a329122a
parent86d18a55dd66aea8bb8fffb0334557eb4973ea52
s390/mm: fix compile for PAGE_DEFAULT_KEY != 0

The usual problem for code that is ifdef'ed out is that it doesn't
compile after a while. That's also the case for the storage key
initialisation code, if it would be used (set PAGE_DEFAULT_KEY to
something not zero):

./arch/s390/include/asm/page.h: In function 'storage_key_init_range':
./arch/s390/include/asm/page.h:36:2: error: implicit declaration of function '__storage_key_init_range'

Since the code itself has been useful for debugging purposes several
times, remove the ifdefs and make sure the code gets compiler
coverage. The cost for this is eight bytes.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/page.h
arch/s390/mm/pageattr.c