Skip to content

Commit 108cc2e

Browse files
andy-shevlenb
authored andcommitted
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 <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent 009d043 commit 108cc2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/sfi/sfi_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int sfi_verify_table(struct sfi_table_header *table)
161161
* Check for common case that we can re-use mapping to SYST,
162162
* which requires syst_pa, syst_va to be initialized.
163163
*/
164-
struct sfi_table_header *sfi_map_table(u64 pa)
164+
static struct sfi_table_header *sfi_map_table(u64 pa)
165165
{
166166
struct sfi_table_header *th;
167167
u32 length;
@@ -189,7 +189,7 @@ struct sfi_table_header *sfi_map_table(u64 pa)
189189
* Undoes effect of sfi_map_table() by unmapping table
190190
* if it did not completely fit on same page as SYST.
191191
*/
192-
void sfi_unmap_table(struct sfi_table_header *th)
192+
static void sfi_unmap_table(struct sfi_table_header *th)
193193
{
194194
if (!TABLE_ON_PAGE(syst_va, th, th->len))
195195
sfi_unmap_memory(th, TABLE_ON_PAGE(th, th, th->len) ?

0 commit comments

Comments
 (0)