From patchwork Mon Jul 10 11:17:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9832763 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 3929060393 for ; Mon, 10 Jul 2017 11:18:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2CD31283C3 for ; Mon, 10 Jul 2017 11:18:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2101E2843B; Mon, 10 Jul 2017 11:18:02 +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 CA3CC283C4 for ; Mon, 10 Jul 2017 11:18:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753573AbdGJLRo (ORCPT ); Mon, 10 Jul 2017 07:17:44 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:58363 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752658AbdGJLRn (ORCPT ); Mon, 10 Jul 2017 07:17:43 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.129]) with ESMTPA (Nemesis) id 0LkkrY-1e4xyN3Tbo-00aUty; Mon, 10 Jul 2017 13:17:35 +0200 From: Arnd Bergmann To: Ilya Dryomov , "Yan, Zheng" , Sage Weil Cc: Arnd Bergmann , ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] libceph: fix old style declaration warnings Date: Mon, 10 Jul 2017 13:17:26 +0200 Message-Id: <20170710111734.856154-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:cZ3YfzHfvepC+F+JNLQt5z7+TQYTd+Avr1JG+mfUXQ95sIU/a0l Lr3ER2YPAhMhKlJR0JQ1qRfD3+ttl6hcV/2R3sgt4OH9DkjK1fIjePeUfqOQL+mkTF9OJiU wGRy5ph7QjqiKrjKJwOysANi8DZEuA3JAAVQiH5BF9P3qFJS6o6mahdsQva7f6IV6XjoBWn +azURHITbIXst9SbnAyZg== X-UI-Out-Filterresults: notjunk:1; V01:K0:26qwT2ixaF4=:B367ffpb29EqqkMup93txh CjZSuVzZSWFX6TU21dBrboNj62V7VHJMqPKRdbjTmXknG9IQ56LJUuHJiaMLm9uCnanWF32nb 2aszKw6idGbzToPuYAlASz42lZwuz+zHG99hfzAs88/4cgmMcI1fNf+WEnMnZ5EBQ6f3PWLbm FnAr+uUfFwpXyQB744kIUkO9wjLjHZDFg6YsocPLzfcn1ghIMaBMwWojoblzzDAOkyj8neNMq FoMq/+bybijcwOnhRypY0n/gSvQC8KHOMd1jEf4JCPAsm8jsIA9IZH0be7ZBzIdLIHW/oai7K YvXqxE02nW0iw4bJIvZKG8ajJwjbTV6An8Ynloky4Fiw8HuVAufjW7v37oadgffpfvpcqQZfo uVgB436XNTtUXjcmC1dFy4dkMjJY9/h2i6ITzme3se29et+qKFlaZ0KGWDVlTtUnXOgEBlkZE zEdqt+S8jNDt4mGEXAVEC+kWHCsyDPse7URT1xduxAmit3UDzuGu81UkrLBRWE5/LBHeHui8r u4D638FWjYXLDLQlH6JIG9p3iO5WOSGDuW4dp4g6/lrtlTU5pgGKEhVOj2296gj2QigsKtWCQ PAsRMdMk2obASeTy+VTMMOhuKzpj4sMyW3GeFtzagn+bvd95m4yvbHukqM+5/KIFa1pVj6UkX Ohe1Ss2UpFebWUo1ffNM2VdWZKFCTi4n/k9Y241YAFoMJXlfXrv76Q5JZDYGrfZosKDs= Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The new macros don't follow the usual style for declarations, which we get a warning for with 'make W=1': In file included from fs/ceph/mds_client.c:16:0: include/linux/ceph/ceph_features.h:74:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration] This moves the 'static' keyword to the front of the declaration. Fixes: f179d3ba8cb9 ("libceph: new features macros") Signed-off-by: Arnd Bergmann --- include/linux/ceph/ceph_features.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/ceph/ceph_features.h b/include/linux/ceph/ceph_features.h index f0f6c537b64c..040dd105c3e7 100644 --- a/include/linux/ceph/ceph_features.h +++ b/include/linux/ceph/ceph_features.h @@ -10,14 +10,14 @@ #define CEPH_FEATURE_INCARNATION_2 (1ull<<57) // CEPH_FEATURE_SERVER_JEWEL #define DEFINE_CEPH_FEATURE(bit, incarnation, name) \ - const static uint64_t CEPH_FEATURE_##name = (1ULL<