]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[S390] missing return in page_table_alloc_pgste
authorJan Glauber <jang@linux.vnet.ibm.com>
Wed, 27 Jul 2011 05:58:21 +0000 (07:58 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 27 Jul 2011 05:58:21 +0000 (07:58 +0200)
Fix the following compile warning for !CONFIG_PGSTE:

  CC      arch/s390/mm/pgtable.o
arch/s390/mm/pgtable.c: In function ‘page_table_alloc_pgste’:
arch/s390/mm/pgtable.c:531:1: warning: no return statement in function returning non-void [-Wreturn-type]

Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/mm/pgtable.c

index 2adb23938a7f5ed98e8df89d5b887c25878bf4e4..4d1f2bce87b3c5371cd49139019a36cf327b7348 100644 (file)
@@ -528,6 +528,7 @@ static inline void page_table_free_pgste(unsigned long *table)
 static inline unsigned long *page_table_alloc_pgste(struct mm_struct *mm,
                                                    unsigned long vmaddr)
 {
+       return NULL;
 }
 
 static inline void page_table_free_pgste(unsigned long *table)