Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752040AbdIAMQ2 (ORCPT ); Fri, 1 Sep 2017 08:16:28 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37597 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbdIAMQA (ORCPT ); Fri, 1 Sep 2017 08:16:00 -0400 X-Google-Smtp-Source: ADKCNb7cd7qKoqToHrTvu/W0gWchhAzIzhPW4Vo42T2izG0WImFidJFc0YFgRCVHWyj4DZyX41gSKA== From: Corentin Labbe To: airlied@linux.ie, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH 2/3] agp: add compat_ioctl.h to frontend.c Date: Fri, 1 Sep 2017 14:13:31 +0200 Message-Id: <20170901121332.7219-3-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170901121332.7219-1-clabbe.montjoie@gmail.com> References: <20170901121332.7219-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2043 Lines: 36 When building I got the following warnings: drivers/char/agp/frontend.c:163:5: warning: no previous prototype for 'agp_create_segment' [-Wmissing-prototypes] drivers/char/agp/frontend.c:215:26: warning: no previous prototype for 'agp_find_private' [-Wmissing-prototypes] drivers/char/agp/frontend.c:270:6: warning: no previous prototype for 'agp_free_memory_wrap' [-Wmissing-prototypes] drivers/char/agp/frontend.c:276:20: warning: no previous prototype for 'agp_allocate_memory_wrap' [-Wmissing-prototypes] drivers/char/agp/frontend.c:488:20: warning: no previous prototype for 'agp_find_client_by_pid' [-Wmissing-prototypes] drivers/char/agp/frontend.c:513:20: warning: no previous prototype for 'agp_create_client' [-Wmissing-prototypes] drivers/char/agp/frontend.c:526:5: warning: no previous prototype for 'agp_remove_client' [-Wmissing-prototypes] drivers/char/agp/frontend.c:737:5: warning: no previous prototype for 'agpioc_acquire_wrap' [-Wmissing-prototypes] drivers/char/agp/frontend.c:780:5: warning: no previous prototype for 'agpioc_release_wrap' [-Wmissing-prototypes] drivers/char/agp/frontend.c:787:5: warning: no previous prototype for 'agpioc_setup_wrap' [-Wmissing-prototypes] drivers/char/agp/frontend.c:867:5: warning: no previous prototype for 'agpioc_protect_wrap' [-Wmissing-prototypes] drivers/char/agp/frontend.c:901:5: warning: no previous prototype for 'agpioc_deallocate_wrap' [-Wmissing-prototypes] Since theses functions prototypes are in compat_ioctl.h and "users" of compat_ioctl.h use them, frontend.c need to include compat_ioctl.h. Signed-off-by: Corentin Labbe --- 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 f6955888e676..68376eb54af4 100644 --- a/drivers/char/agp/frontend.c +++ b/drivers/char/agp/frontend.c @@ -41,6 +41,7 @@ #include #include #include "agp.h" +#include "compat_ioctl.h" struct agp_front_data agp_fe; -- 2.13.5