All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] kpartx: Use __kernel_daddr_t for solaris_x86_slice.s_start
@ 2019-07-08 21:35 Petr Vorel
  2019-07-09  2:47 ` Christoph Hellwig
  0 siblings, 1 reply; 9+ messages in thread
From: Petr Vorel @ 2019-07-08 21:35 UTC (permalink / raw)
  To: dm-devel; +Cc: Petr Vorel

It was meant to be used daddr_t (which is mostly int, only sparc and
mips have it defined as int), but instead used long.
But musl libc does not define daddr_t as it's deprecated, therefore
use __kernel_daddr_t from <linux/types.h>.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 kpartx/solaris.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/kpartx/solaris.c b/kpartx/solaris.c
index 8c1a971b..e7826c62 100644
--- a/kpartx/solaris.c
+++ b/kpartx/solaris.c
@@ -1,17 +1,15 @@
 #include "kpartx.h"
 #include <stdio.h>
-#include <sys/types.h>
+#include <linux/types.h>
 #include <time.h>		/* time_t */
 
 #define SOLARIS_X86_NUMSLICE	8
 #define SOLARIS_X86_VTOC_SANE	(0x600DDEEEUL)
 
-//typedef int daddr_t;		/* or long - check */
-
 struct solaris_x86_slice {
 	unsigned short	s_tag;		/* ID tag of partition */
 	unsigned short	s_flag;		/* permission flags */
-	long		s_start;	/* start sector no of partition */
+	__kernel_daddr_t s_start;	/* start sector no of partition */
 	long		s_size;		/* # of blocks in partition */
 };
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-10-12 19:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-08 21:35 [PATCH 1/1] kpartx: Use __kernel_daddr_t for solaris_x86_slice.s_start Petr Vorel
2019-07-09  2:47 ` Christoph Hellwig
2019-07-09  8:02   ` Petr Vorel
2019-07-09 13:34     ` Christoph Hellwig
2019-10-02  6:05       ` Petr Vorel
2019-10-07 16:57         ` Christoph Hellwig
2019-10-08  8:18           ` Petr Vorel
2019-10-12  9:01             ` Baruch Even
2019-10-12 19:08               ` Petr Vorel

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.