]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: silence compiler warning when compiling without CONFIG_PGSTE
authorThomas Huth <thuth@redhat.com>
Sun, 7 Apr 2019 12:55:09 +0000 (14:55 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 10 Apr 2019 15:48:28 +0000 (17:48 +0200)
commit97feb8e9c9617ad48008eef588186d696c5ecc52
tree0f9b905dc07a0a021540db9c4efd4d99e9515454
parent3d7fc4be30d1dc469d3d08315fdba81a5d1b63dd
s390/mm: silence compiler warning when compiling without CONFIG_PGSTE

If CONFIG_PGSTE is not set (e.g. when compiling without KVM), GCC complains:

  CC      arch/s390/mm/pgtable.o
arch/s390/mm/pgtable.c:413:15: warning: ‘pmd_alloc_map’ defined but not
 used [-Wunused-function]
 static pmd_t *pmd_alloc_map(struct mm_struct *mm, unsigned long addr)
               ^~~~~~~~~~~~~

Wrap the function with "#ifdef CONFIG_PGSTE" to silence the warning.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pgtable.c