mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
To: gregkh@linuxfoundation.org, oleg.drokin@intel.com,
	andreas.dilger@intel.com
Cc: devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org,
	linux-kernel@vger.kernel.org,
	Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Subject: [PATCH v2 1/6] staging/lustre: Silence warning about 'inline'
Date: Fri, 11 Dec 2015 18:04:20 -0500	[thread overview]
Message-ID: <1449875065-35182-2-git-send-email-Valdis.Kletnieks@vt.edu> (raw)
In-Reply-To: <1449875065-35182-1-git-send-email-Valdis.Kletnieks@vt.edu>

Low-hanging fruit first:

  CC [M]  drivers/staging/lustre/lustre/fid/fid_request.o
In file included from drivers/staging/lustre/lustre/fid/../include/lustre_net.h:66:0,
                 from drivers/staging/lustre/lustre/fid/../include/lustre_lib.h:64,
                 from drivers/staging/lustre/lustre/fid/../include/obd.h:52,
                 from drivers/staging/lustre/lustre/fid/fid_request.c:48:
drivers/staging/lustre/lustre/fid/../include/lu_object.h:765:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
 static const inline struct lu_device_operations *
 ^

So we just swap inline and const.  272 warnings gone. :)

Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
---
 drivers/staging/lustre/lustre/include/lu_object.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/include/lu_object.h b/drivers/staging/lustre/lustre/include/lu_object.h
index fa78689748a9..176724f60c1b 100644
--- a/drivers/staging/lustre/lustre/include/lu_object.h
+++ b/drivers/staging/lustre/lustre/include/lu_object.h
@@ -756,7 +756,7 @@ static inline const struct lu_fid *lu_object_fid(const struct lu_object *o)
 /**
  * return device operations vector for this object
  */
-static const inline struct lu_device_operations *
+static inline const struct lu_device_operations *
 lu_object_ops(const struct lu_object *o)
 {
 	return o->lo_dev->ld_ops;
-- 
2.6.3


  reply	other threads:[~2015-12-11 23:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-11 23:04 [PATCH v2 0/6] Patch series to make lustre safe(r) for W=1 compiles Valdis Kletnieks
2015-12-11 23:04 ` Valdis Kletnieks [this message]
2015-12-11 23:04 ` [PATCH v2 2/6] Fix set-but-unused whinge Valdis Kletnieks
2015-12-11 23:04 ` [PATCH v2 3/6] Clean up another C warnining: set but not used Valdis Kletnieks
2015-12-11 23:04 ` [PATCH v2 4/6] Fix another C compiler whine: " Valdis Kletnieks
2015-12-11 23:04 ` [PATCH v2 5/6] Nuke an unsigned >= 0 assert Valdis Kletnieks
2015-12-11 23:04 ` [PATCH v2 6/6] Nuke another " Valdis Kletnieks
2015-12-21 23:43 ` [PATCH v2 0/6] Patch series to make lustre safe(r) for W=1 compiles Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1449875065-35182-2-git-send-email-Valdis.Kletnieks@vt.edu \
    --to=valdis.kletnieks@vt.edu \
    --cc=andreas.dilger@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lustre-devel@lists.lustre.org \
    --cc=oleg.drokin@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®