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: 101507 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp245387obn; Wed, 16 Nov 2016 07:30:24 -0800 (PST) X-Received: by 10.99.144.65 with SMTP id a62mr9418950pge.103.1479310224791; Wed, 16 Nov 2016 07:30:24 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h25si9091422pfd.139.2016.11.16.07.30.24; Wed, 16 Nov 2016 07:30:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936500AbcKPPaP (ORCPT + 26 others); Wed, 16 Nov 2016 10:30:15 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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