From patchwork Wed Nov 16 15:29:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9431859 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 A000260476 for ; Wed, 16 Nov 2016 15:30:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9203928F3F for ; Wed, 16 Nov 2016 15:30:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86D4028F43; Wed, 16 Nov 2016 15:30:45 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 736AF28F40 for ; Wed, 16 Nov 2016 15:30:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936195AbcKPPaO (ORCPT ); Wed, 16 Nov 2016 10:30:14 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:50078 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753151AbcKPPaL (ORCPT ); Wed, 16 Nov 2016 10:30:11 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MI6Uo-1c4HHC1PRe-003sBx; Wed, 16 Nov 2016 16:30:08 +0100 From: Arnd Bergmann To: Jens Axboe Cc: Arnd Bergmann , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] blk-bwt: fix old-style function declaration Date: Wed, 16 Nov 2016 16:29:57 +0100 Message-Id: <20161116153007.3543720-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 X-Provags-ID: V03:K0:yqtdFa/GTHsapirCmr9/49ml+MXU7xwZBupSktp0movbEMBEmlB DMB26/cjA24kh3Ykx9taAUbTY8PdNc02mQyVUxsvmYWK61SZdNg0zOop1tOlYouMIMuC7Tw NayPZDGKDadN/IyHbBQMbE8Gp/PxtYwWfqEa4JGrvjAbEaKEUlu9+SmTo1kNwKKx4MIALm0 zgO9mGAkKSozCyTAPWXIw== X-UI-Out-Filterresults: notjunk:1; V01:K0:OzbEul9lAIA=:AGw+6s2xf4aPScAYSekob6 4qlH6IFhSTk++Z93t4qGp10215vDOxlghcCv+l11suybuwjxTnl4n+n5kdGH1yjZxBCjb5Rdb Bd2fEyxzvIys6wT4n92Q+oO3TYlPJ2WkKKCz68Ir1jH9NYnUlikfaWTxyp8/ZGbjqeDvNbv1J Jjz5Dx8kWO2sT6A1xuSw7cSx8Ac9P+v3hlw7kFu825XZnzTKvr3q4d8x9IIzVSL6vnB5AHe+b Y8T0rFamaV7vNoYtTMJiHZa96+zxF+JD9sj0dxa9LdSbY+nzAjAaFEO/gr3Xg3Smk8pGlOlHS veYttBsS3dWKe0SikpIFp+pJt5j5eI55XeQU0kFHMhx5ko1hwrC8cM2IMe4wn1mylChVHKKXh 64AXgcAGVgCRBnvi8RLDMW1VwijvoA6ZOE7PNw4QSH9kgAE4xsIOlLtp61Gl8LgP/JmsdVzJa iBHHBApPRkiEzGLk39An/j5AtG7p9rfT1el8Jlu+SWvwI0qOQc0tRd3e6WzujOSXX3/OTkFdy yADEf/qUoto824VS3SZ5nVECRQySjSSjzVdKXGLldALUBBPA3Xyudmycb7/24PjbMqHlJKdvs Gl/Npg0BKEL2fVlHCr0celxiQYBVwY/rsSZB6G/U3kRztjUkaQgunSn9z25gj411CYAe/HqAL 9fE0rF2GdlMNZSE9MJnrskbpqeghwXkTamhqowb6socR3lcESUgIV+bsUCNzvb5mo9Pt922tt EDT9o0eoPS5WG8eS Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The newly added driver causes a harmless warning in some configurations: block/blk-wbt.c:250:1: error: ‘inline’ is not at beginning of declaration [-Werror=old-style-declaration] static bool inline stat_sample_valid(struct blk_rq_stat *stat) This makes it use the expected format for the declaration. Signed-off-by: Arnd Bergmann --- block/blk-wbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c index 20712f0db6ea..9f97594e68ce 100644 --- a/block/blk-wbt.c +++ b/block/blk-wbt.c @@ -247,7 +247,7 @@ static bool calc_wb_limits(struct rq_wb *rwb) return ret; } -static bool inline stat_sample_valid(struct blk_rq_stat *stat) +static inline bool stat_sample_valid(struct blk_rq_stat *stat) { /* * We need at least one read sample, and a minimum of