summaryrefslogtreecommitdiffstats
path: root/lib/label
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2010-07-09 15:34:40 +0000
committerAlasdair Kergon <agk@redhat.com>2010-07-09 15:34:40 +0000
commit08f1ddea6c5d3679fe44e8fef73e8c8f3b11d705 (patch)
tree71a0e07016fc9b9e447521ace11040c052cdfcd2 /lib/label
parent3e404aea3a8aef79d8e8b39743f55efc8f7bca04 (diff)
downloadlvm2-08f1ddea6c5d3679fe44e8fef73e8c8f3b11d705.tar.gz
lvm2-08f1ddea6c5d3679fe44e8fef73e8c8f3b11d705.tar.xz
lvm2-08f1ddea6c5d3679fe44e8fef73e8c8f3b11d705.zip
Use __attribute__ consistently throughout.
Diffstat (limited to 'lib/label')
-rw-r--r--lib/label/label.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/label/label.c b/lib/label/label.c
index 4823c80c..9fa50541 100644
--- a/lib/label/label.c
+++ b/lib/label/label.c
@@ -114,7 +114,7 @@ static struct labeller *_find_labeller(struct device *dev, char *buf,
struct lvmcache_info *info;
uint64_t sector;
int found = 0;
- char readbuf[LABEL_SCAN_SIZE] __attribute((aligned(8)));
+ char readbuf[LABEL_SCAN_SIZE] __attribute__((aligned(8)));
if (!dev_read(dev, scan_sector << SECTOR_SHIFT,
LABEL_SCAN_SIZE, readbuf)) {
@@ -190,8 +190,8 @@ static struct labeller *_find_labeller(struct device *dev, char *buf,
/* FIXME Also wipe associated metadata area headers? */
int label_remove(struct device *dev)
{
- char buf[LABEL_SIZE] __attribute((aligned(8)));
- char readbuf[LABEL_SCAN_SIZE] __attribute((aligned(8)));
+ char buf[LABEL_SIZE] __attribute__((aligned(8)));
+ char readbuf[LABEL_SCAN_SIZE] __attribute__((aligned(8)));
int r = 1;
uint64_t sector;
int wipe;
@@ -260,7 +260,7 @@ int label_remove(struct device *dev)
int label_read(struct device *dev, struct label **result,
uint64_t scan_sector)
{
- char buf[LABEL_SIZE] __attribute((aligned(8)));
+ char buf[LABEL_SIZE] __attribute__((aligned(8)));
struct labeller *l;
uint64_t sector;
struct lvmcache_info *info;
@@ -299,7 +299,7 @@ int label_read(struct device *dev, struct label **result,
/* Caller may need to use label_get_handler to create label struct! */
int label_write(struct device *dev, struct label *label)
{
- char buf[LABEL_SIZE] __attribute((aligned(8)));
+ char buf[LABEL_SIZE] __attribute__((aligned(8)));
struct label_header *lh = (struct label_header *) buf;
int r = 1;
@@ -347,7 +347,7 @@ int label_write(struct device *dev, struct label *label)
int label_verify(struct device *dev)
{
struct labeller *l;
- char buf[LABEL_SIZE] __attribute((aligned(8)));
+ char buf[LABEL_SIZE] __attribute__((aligned(8)));
uint64_t sector;
struct lvmcache_info *info;
int r = 0;