Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

SFI: fix compiler warnings

drivers/sfi/sfi_core.c:164:26: warning: no previous prototype for ‘sfi_map_table’ [-Wmissing-prototypes]
drivers/sfi/sfi_core.c:192:6: warning: no previous prototype for ‘sfi_unmap_table’ [-Wmissing-prototypes]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Andy Shevchenko and committed by
Len Brown
108cc2e7 009d0431

+2 -2
+2 -2
drivers/sfi/sfi_core.c
··· 161 161 * Check for common case that we can re-use mapping to SYST, 162 162 * which requires syst_pa, syst_va to be initialized. 163 163 */ 164 - struct sfi_table_header *sfi_map_table(u64 pa) 164 + static struct sfi_table_header *sfi_map_table(u64 pa) 165 165 { 166 166 struct sfi_table_header *th; 167 167 u32 length; ··· 189 189 * Undoes effect of sfi_map_table() by unmapping table 190 190 * if it did not completely fit on same page as SYST. 191 191 */ 192 - void sfi_unmap_table(struct sfi_table_header *th) 192 + static void sfi_unmap_table(struct sfi_table_header *th) 193 193 { 194 194 if (!TABLE_ON_PAGE(syst_va, th, th->len)) 195 195 sfi_unmap_memory(th, TABLE_ON_PAGE(th, th, th->len) ?