All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix prototype of mda_metadata_locn_offset()
@ 2010-07-02 18:56 Takahiro Yasui
  0 siblings, 0 replies; only message in thread
From: Takahiro Yasui @ 2010-07-02 18:56 UTC (permalink / raw)
  To: lvm-devel

Fix prototype of mda_metadata_locn_offset() to remove a lot of
warning messages as below duirng build.

metadata/metadata.h:147: warning:
type qualifiers ignored on function return type


Signed-off-by: Takahiro Yasui <takahiro.yasui@hds.com>
---
 lib/format_text/format-text.c |    2 +-
 lib/metadata/metadata.h       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: LVM2-2.02.69-20100702/lib/format_text/format-text.c
===================================================================
--- LVM2-2.02.69-20100702.orig/lib/format_text/format-text.c
+++ LVM2-2.02.69-20100702/lib/format_text/format-text.c
@@ -1649,7 +1649,7 @@ static const char *_metadata_locn_name_r
 	return dev_name(mdac->area.dev);
 }
 
-static uint64_t const _metadata_locn_offset_raw(void *metadata_locn)
+static uint64_t _metadata_locn_offset_raw(void *metadata_locn)
 {
 	struct mda_context *mdac = (struct mda_context *) metadata_locn;
 
Index: LVM2-2.02.69-20100702/lib/metadata/metadata.h
===================================================================
--- LVM2-2.02.69-20100702.orig/lib/metadata/metadata.h
+++ LVM2-2.02.69-20100702/lib/metadata/metadata.h
@@ -144,7 +144,7 @@ struct metadata_area_ops {
 	 * Per location description for logging.
 	 */
 	const char *(*mda_metadata_locn_name) (void *metadata_locn);
-	uint64_t const (*mda_metadata_locn_offset) (void *metadata_locn);
+	uint64_t (*mda_metadata_locn_offset) (void *metadata_locn);
 
 	/*
 	 * Returns number of free sectors in given metadata area.

-- 
Takahiro Yasui
Hitachi Data Systems



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-02 18:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-02 18:56 [PATCH] Fix prototype of mda_metadata_locn_offset() Takahiro Yasui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.