From patchwork Fri Jun 9 10:38:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9777999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC49D603B4 for ; Fri, 9 Jun 2017 10:44:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD4A928606 for ; Fri, 9 Jun 2017 10:44:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A09F128609; Fri, 9 Jun 2017 10:44:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2910728607 for ; Fri, 9 Jun 2017 10:44:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D39BE6E5B2; Fri, 9 Jun 2017 10:44:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by gabe.freedesktop.org (Postfix) with ESMTPS id 769D66E5B2; Fri, 9 Jun 2017 10:44:13 +0000 (UTC) Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0McitZ-1db5Jc2wgz-00HwRc; Fri, 09 Jun 2017 12:38:53 +0200 From: Arnd Bergmann To: Ben Skeggs , David Airlie Subject: [PATCH] drm/nouveau: use proper prototype in nouveau_pmops_runtime() definition Date: Fri, 9 Jun 2017 12:38:33 +0200 Message-Id: <20170609103851.3267574-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:dk+gcmjDFdeWWSGCyqWuuvYr67fCyLjAW9vx0IJOOxdrVU1tj9/ yTfNfnBo1NYmQJ4UI8h/UfpibN30IiBKKZJbLWtnJvUp84emmDwDPQcSgZ3y1aORiwoB1l7 BT1f2118Mk9yTXrYbc4UCMScTZEIqyqoTThSBgZWlAjsDOCX+Gair2Zwi0YIMTFyDNGyZTl y1Vs0Em93YThXIgk+Ee8Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:eOGzsm/oej8=:XbZCSHm9imtoXBYxAKfOq+ /ymnX8I7wE29r15AtcSoiccRF0kUoCcYE1g2A1zwJSDSMBJBZ2OwMrZQ6ayeHtw0MpORzYa4P 0agIUTdtKbkwGndumb06eZRmRJ+lCB9xfcfaiDohUFOfjJKSZR4aReQfGmq02L4fiFvUXDDQN KEM8nsG/bAoVV0biGLn6ve2yf8kEBtVxWq8h7lcZGlGnQLVvI9c1YoUEItZmoj9zigzBLtJS1 W05DlRBpuq1BbxRvffRGBaRBbb0P3o8aPthkPSX0cT2Qd48lNAJ7ZYHCti5EBtQi6FtTVc9nb i6UM8Jpb4Vy4l0ZaiXvfZunWAnyj0FgRrgn8N70wfO24XpUDInhvdNrh8woSjqJt9UbLCXyv1 9oQ3zZHlSS0IZ1qJETIohgW80+El2VI2fDSxVeU+atYI7wksT33LUgqDDaZY129d3W6oskLGT 8dyo+4jBebU33TLWq4ZQoYuiWlS2+zFe0NHXCEC7qqswBiVHlZX672djd+RVJLq/JQfKQuX9B JxB/xBTH5Xbod/lS/yO/gJ8NxeNANQ3TbZO9u+QI/g9OfI0w9bA6SDiBEFA2ghMPlNT3yk8M4 3mzFywu6nreh/kV3f1tOeC6YzT/zGF4iSbWcGefl6RNyc4KVH1v0suoSjaWPcnVKm8upXOTjk LG/+Oy6yEkDmoF1HswasZaqQJIrNjEGUx2sH0W2p1kOdJYrGfK2seitZ4r03tZjAierI= Cc: Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , nouveau@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP There is a prototype for this function in the header, but the function itself lacks a 'void' in the argument list, causing a harmless warning when building with 'make W=1': drivers/gpu/drm/nouveau/nouveau_drm.c: In function 'nouveau_pmops_runtime': drivers/gpu/drm/nouveau/nouveau_drm.c:730:1: error: old-style function definition [-Werror=old-style-definition] Fixes: 321f5c5f2c49 ("drm/nouveau: replace multiple open-coded runpm support checks with function") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/nouveau/nouveau_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 7acd1cf8c5a6..90757af9bc73 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -727,7 +727,7 @@ nouveau_pmops_thaw(struct device *dev) } bool -nouveau_pmops_runtime() +nouveau_pmops_runtime(void) { if (nouveau_runtime_pm == -1) return nouveau_is_optimus() || nouveau_is_v1_dsm();