[PATCH 10/16] char: agp: frontend: Include header file containing our prototypes

From: Lee Jones
Date: Thu May 20 2021 - 08:51:15 EST


Fixes the following W=1 kernel build warning(s):

drivers/char/agp/frontend.c:46:20: warning: no previous prototype for ‘agp_find_mem_by_key’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:161:5: warning: no previous prototype for ‘agp_create_segment’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:213:26: warning: no previous prototype for ‘agp_find_private’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:268:6: warning: no previous prototype for ‘agp_free_memory_wrap’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:274:20: warning: no previous prototype for ‘agp_allocate_memory_wrap’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:486:20: warning: no previous prototype for ‘agp_find_client_by_pid’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:511:20: warning: no previous prototype for ‘agp_create_client’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:524:5: warning: no previous prototype for ‘agp_remove_client’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:735:5: warning: no previous prototype for ‘agpioc_acquire_wrap’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:778:5: warning: no previous prototype for ‘agpioc_release_wrap’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:785:5: warning: no previous prototype for ‘agpioc_setup_wrap’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:865:5: warning: no previous prototype for ‘agpioc_protect_wrap’ [-Wmissing-prototypes]
drivers/char/agp/frontend.c:899:5: warning: no previous prototype for ‘agpioc_deallocate_wrap’ [-Wmissing-prototypes]

Cc: David Airlie <airlied@xxxxxxxx>
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/char/agp/frontend.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/char/agp/frontend.c b/drivers/char/agp/frontend.c
index 00ff5fcb808a7..10186f5881cb9 100644
--- a/drivers/char/agp/frontend.c
+++ b/drivers/char/agp/frontend.c
@@ -40,6 +40,7 @@
#include <linux/sched.h>
#include <linux/uaccess.h>
#include "agp.h"
+#include "compat_ioctl.h"

struct agp_front_data agp_fe;

--
2.31.1