Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp312929ybe; Mon, 2 Sep 2019 01:57:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2a4vlmlXA/ZUO600UgUqh34NNSAOWnuSVeTxT1WQ4PvIchaynEOsOWYGZURxI1xNY7MvH X-Received: by 2002:aa7:8f08:: with SMTP id x8mr2417683pfr.48.1567414643129; Mon, 02 Sep 2019 01:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567414643; cv=none; d=google.com; s=arc-20160816; b=gVrpK5oI5V3C1Q9Q9ddNdsXlnxXfYER3CP2NfSj3wGzeMSYgPzANxfgGmJXOT6aqrJ d0SqT49ID1DIKTXXogTGeNuTnHl5QSYTQcqqKRS6Ux9xHffkcPrTq8Qk2x8zhoPdSjr1 Ohfc52cD4+kmALoJNVlBM9q83Hl4POgfdvBmUvBdxQp/1b4p8Ov+PULlpHp/Sn7Xa13Z DxK3KTNvTp7g6nlyrsm9SD7WQDgIhqH4HVv19fxojpaMlC7Y/U5dwRZ4txTXATv/0d+e fRGrsePdEfokz9Ly+tsAAhL//vSMsoFFCigwt3nLFGlL4kRduCekUTic+9tRdAMBFxAx qFGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TFd0u6ewLXlhCLWpF9FFudlGz6TeEZMvoBbbckwaiaA=; b=WxiEpgoiBS8793a2WiCEh6YBUUtBXuZQEfIwNWn/4DZAp/Ux0zbAu6+lNLqr4xWPAw M7dZJpXn5RqV7lbwib7JnZFDBVf/C4zsJLtj3mCZlPLP26QtrXq4NsQRjipt6/6yDyHU 4Oyk1NxoXhvD0w6sYQRn4+ad6pThsAwYFsHFsR42l0AhVZfM/csUnuKS9UZq7kQe3pxT xPjHhPAPwqgM2paIt2BTtUpo1pVmt6NCI4Rd4EJRN84UY4nY+IuaVUeyQTYKZdGYFTcX 8isUMAgWA4csQG5Km5iW/yvNVT4aIvhbLR9Lj7/4XhJ7gebEttVKzOnLUbxxFt8Y551T b1Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vgvgh6S+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b38si11380865pla.418.2019.09.02.01.57.07; Mon, 02 Sep 2019 01:57:23 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vgvgh6S+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730783AbfIBIvV (ORCPT + 99 others); Mon, 2 Sep 2019 04:51:21 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:42569 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729408AbfIBIvU (ORCPT ); Mon, 2 Sep 2019 04:51:20 -0400 Received: by mail-io1-f65.google.com with SMTP id n197so25721648iod.9; Mon, 02 Sep 2019 01:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TFd0u6ewLXlhCLWpF9FFudlGz6TeEZMvoBbbckwaiaA=; b=vgvgh6S+7r8eWIlqtoP4drYrOQhbKpR3JFN15DhGZvdAS/c+ae+l0eH4+1jQyisxpo BRBBoez9cfwO2xiv0pB86YVS1uucLWrKVYSEQuJAJwaL15ymRB+/z7n70frKBMqEC8bU 1S3POKWc2Z64PqeAON97zAfhZb4UCcf2/KTiRsa0MVBbviZO1IOiM4/VFJh1jVxGWD/5 vDVOvLXp7oIYa2Rsd+LG8rrwEE90uKsl0MR3fgswfi9y7S4eFO8QdeNBuPGve1DdtBcq IaplAtbzaPJQeVW/mWHMB0BWeTJ0ZXG86W6AIEz0MUTL8tiTT3nsrN6uaXyf4ze+y5Df HWNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TFd0u6ewLXlhCLWpF9FFudlGz6TeEZMvoBbbckwaiaA=; b=qXvwufe5iNg5mqMMIZJpbukSF2NdwurF4hdecTggaUP3Zq2RlN32V6tb/azRffvkS+ fLN2P3JpaZCC+hxYgAs0hwN7Q6Q4Uiui8OGop/XbNO/fmYiqR+w9RSriMh9IWwZUiZoV B9Ym+jy6vd2Rj1c6kNNJsZKgA4RbqtyM3yQkHAPSwK5hWl+oz6punyPihVI3zJion/sd LU2mRbsLo8sqKj4vlS0nR2rZEomARniv0sEIBR9ManPesIWJZdbQYk1NFyB2QLJeGqRN gQT9+ST4kisy4cWHDj46XMiF4PZyovV6YUW4EcYcRpU6hz0Z/6WLpBhrIhkgTmJ7C1di g+ZQ== X-Gm-Message-State: APjAAAXCkU/t9FhsXFxSfBh03sQLb5KxZQ6tAjbSg8Z0/Ol+Bix7EpT+ CTi5nbRfgUMc71WDIM/LEOa1EEIvGiabap46I84= X-Received: by 2002:a02:b882:: with SMTP id p2mr5931866jam.16.1567414279790; Mon, 02 Sep 2019 01:51:19 -0700 (PDT) MIME-Version: 1.0 References: <20190831215712.10148-1-kw@linux.com> In-Reply-To: <20190831215712.10148-1-kw@linux.com> From: Ilya Dryomov Date: Mon, 2 Sep 2019 10:54:26 +0200 Message-ID: Subject: Re: [PATCH] ceph: Move static keyword to the front of declarations To: Krzysztof Wilczynski Cc: Jeff Layton , Sage Weil , Ceph Development , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 31, 2019 at 11:57 PM Krzysztof Wilczynski wrote: > > Move the static keyword to the front of declarations of > snap_handle_length, handle_length and connected_handle_length, > and resolve the following compiler warnings that can be seen > when building with warnings enabled (W=3D1): > > fs/ceph/export.c:38:2: warning: > =E2=80=98static=E2=80=99 is not at beginning of declaration [-Wold-styl= e-declaration] > > fs/ceph/export.c:88:2: warning: > =E2=80=98static=E2=80=99 is not at beginning of declaration [-Wold-styl= e-declaration] > > fs/ceph/export.c:90:2: warning: > =E2=80=98static=E2=80=99 is not at beginning of declaration [-Wold-styl= e-declaration] > > Signed-off-by: Krzysztof Wilczynski > --- > Related: https://lore.kernel.org/r/20190827233017.GK9987@google.com > > fs/ceph/export.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/fs/ceph/export.c b/fs/ceph/export.c > index 020d39a85ecc..b6bfa94332c3 100644 > --- a/fs/ceph/export.c > +++ b/fs/ceph/export.c > @@ -35,7 +35,7 @@ struct ceph_nfs_snapfh { > static int ceph_encode_snapfh(struct inode *inode, u32 *rawfh, int *max_= len, > struct inode *parent_inode) > { > - const static int snap_handle_length =3D > + static const int snap_handle_length =3D > sizeof(struct ceph_nfs_snapfh) >> 2; > struct ceph_nfs_snapfh *sfh =3D (void *)rawfh; > u64 snapid =3D ceph_snap(inode); > @@ -85,9 +85,9 @@ static int ceph_encode_snapfh(struct inode *inode, u32 = *rawfh, int *max_len, > static int ceph_encode_fh(struct inode *inode, u32 *rawfh, int *max_len, > struct inode *parent_inode) > { > - const static int handle_length =3D > + static const int handle_length =3D > sizeof(struct ceph_nfs_fh) >> 2; > - const static int connected_handle_length =3D > + static const int connected_handle_length =3D > sizeof(struct ceph_nfs_confh) >> 2; > int type; Applied. Thanks, Ilya