From 723be0fe69f6aafc731429555f85baf74bb8e4f3 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 25 Jun 2008 14:10:33 +0000 Subject: [PATCH] Align struct memblock in dbg_malloc for sparc. --- WHATS_NEW_DM | 1 + libdm/mm/dbg_malloc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 3c4ecdacb..33730ea55 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.27 - =============================== + Align struct memblock in dbg_malloc for sparc. Add --unquoted and --rows to dmsetup. Avoid compiler warning about cast in dmsetup.c's OFFSET_OF macro. Fix inverted no_flush debug message. diff --git a/libdm/mm/dbg_malloc.c b/libdm/mm/dbg_malloc.c index 3d0765035..b5c96262c 100644 --- a/libdm/mm/dbg_malloc.c +++ b/libdm/mm/dbg_malloc.c @@ -40,7 +40,7 @@ struct memblock { const char *file; /* File that allocated */ int line; /* Line that allocated */ void *magic; /* Address of this block */ -}; +} __attribute__((aligned(8))); static struct { unsigned block_serialno;/* Non-decreasing serialno of block */