From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 2/4] gfs2_quota: Fix sparse error
Date: Wed, 19 Aug 2009 08:35:46 -0400 (EDT) [thread overview]
Message-ID: <817246963.770141250685346813.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> (raw)
In-Reply-To: <1250670274-7794-3-git-send-email-andy@andrewprice.me.uk>
----- "Andrew Price" <andy@andrewprice.me.uk> wrote:
| Fix sparse error "marked inline, but without a definition" and make
| write_quota_internal static as it's only used in main.c
|
| Signed-off-by: Andrew Price <andy@andrewprice.me.uk>
| ---
| gfs2/quota/gfs2_quota.h | 4 +---
| gfs2/quota/main.c | 4 ++--
| 2 files changed, 3 insertions(+), 5 deletions(-)
|
| diff --git a/gfs2/quota/gfs2_quota.h b/gfs2/quota/gfs2_quota.h
| index 462246f..f15c25b 100644
| --- a/gfs2/quota/gfs2_quota.h
| +++ b/gfs2/quota/gfs2_quota.h
| @@ -66,10 +66,8 @@ void cleanup(void);
| void read_superblock(struct gfs2_sb *sb, struct gfs2_sbd *sdp);
| void get_last_quota_id(int fd, uint32_t *max_id);
| int is_valid_quota_list(int fd);
| -inline void read_quota_internal(int fd, unsigned int id, int id_type,
|
| +void read_quota_internal(int fd, unsigned int id, int id_type,
| struct gfs2_quota *q);
| -inline void write_quota_internal(int fd, unsigned int id, int
| id_type,
| - struct gfs2_quota *q);
| void print_quota_list_warning(void);
|
| /* check.c */
| diff --git a/gfs2/quota/main.c b/gfs2/quota/main.c
| index 16692dd..f80313d 100644
| --- a/gfs2/quota/main.c
| +++ b/gfs2/quota/main.c
| @@ -308,7 +308,7 @@ read_superblock(struct gfs2_sb *sb, struct
| gfs2_sbd *sdp)
| close(fd);
| }
|
| -inline void
| +void
| read_quota_internal(int fd, uint32_t id, int id_type, struct
| gfs2_quota *q)
| {
| /* seek to the appropriate offset in the quota file and read the
| @@ -331,7 +331,7 @@ read_quota_internal(int fd, uint32_t id, int
| id_type, struct gfs2_quota *q)
| gfs2_quota_in(q, buf);
| }
|
| -inline void
| +static inline void
| write_quota_internal(int fd, uint32_t id, int id_type, struct
| gfs2_quota *q)
| {
| /* seek to the appropriate offset in the quota file and read the
| --
| 1.6.3.3
Hi,
ACKed by Bob Peterson <rpeterso@redhat.com>
Regards,
Bob Peterson
Red Hat File Systems
next prev parent reply other threads:[~2009-08-19 12:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 8:24 [Cluster-devel] [PATCH 0/4] gfs2_utils: Trivial patches Andrew Price
2009-08-19 8:24 ` [Cluster-devel] [PATCH 1/4] libgfs2: Fix 'dubious one-bit signed bitfield' sparse errors Andrew Price
2009-08-19 12:34 ` Bob Peterson
2009-08-19 8:24 ` [Cluster-devel] [PATCH 2/4] gfs2_quota: Fix sparse error Andrew Price
2009-08-19 12:35 ` Bob Peterson [this message]
2009-08-19 8:24 ` [Cluster-devel] [PATCH 3/4] libgfs2: Fix "Value stored is never read" warnings Andrew Price
2009-08-19 12:47 ` Bob Peterson
2009-08-19 8:24 ` [Cluster-devel] [PATCH 4/4] fsck.gfs2: Make block_mounters static Andrew Price
2009-08-19 12:49 ` Bob Peterson
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=817246963.770141250685346813.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com \
--to=rpeterso@redhat.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;
as well as URLs for NNTP newsgroup(s).