aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/crond.c2
-rw-r--r--miscutils/dc.c2
-rw-r--r--miscutils/hdparm.c2
-rw-r--r--miscutils/i2c_tools.c15
-rw-r--r--miscutils/mt.c2
-rw-r--r--miscutils/setserial.c3
-rw-r--r--miscutils/ubi_tools.c2
-rw-r--r--miscutils/watchdog.c2
8 files changed, 12 insertions, 18 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 2e8ca8b68..fb3adc180 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -492,7 +492,7 @@ static void load_crontab(const char *fileName)
492 const char *name; 492 const char *name;
493 const char tokens[8]; 493 const char tokens[8];
494 } SpecialEntry; 494 } SpecialEntry;
495 static const SpecialEntry SpecAry[] = { 495 static const SpecialEntry SpecAry[] ALIGN8 = {
496 /* hour day month weekday */ 496 /* hour day month weekday */
497 { "yearly", "0\0" "1\0" "1\0" "*" }, 497 { "yearly", "0\0" "1\0" "1\0" "*" },
498 { "annually", "0\0" "1\0" "1\0" "*" }, 498 { "annually", "0\0" "1\0" "1\0" "*" },
diff --git a/miscutils/dc.c b/miscutils/dc.c
index ef93c20ba..51376dd75 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -195,7 +195,7 @@ struct op {
195 void (*function) (void); 195 void (*function) (void);
196}; 196};
197 197
198static const struct op operators[] = { 198static const struct op operators[] ALIGN_PTR = {
199#if ENABLE_FEATURE_DC_LIBM 199#if ENABLE_FEATURE_DC_LIBM
200 {"^", power}, 200 {"^", power},
201// {"exp", power}, 201// {"exp", power},
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 431a0ad96..01b4e8e2e 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -1366,7 +1366,7 @@ static NOINLINE void dump_identity(const struct hd_driveid *id)
1366 } 1366 }
1367 if (id->capability & 1) { 1367 if (id->capability & 1) {
1368 if (id->dma_1word | id->dma_mword) { 1368 if (id->dma_1word | id->dma_mword) {
1369 static const int dma_wmode_masks[] = { 0x100, 1, 0x200, 2, 0x400, 4, 0xf800, 0xf8 }; 1369 static const int dma_wmode_masks[] ALIGN4 = { 0x100, 1, 0x200, 2, 0x400, 4, 0xf800, 0xf8 };
1370 printf("\n DMA modes: "); 1370 printf("\n DMA modes: ");
1371 print_flags_separated(dma_wmode_masks, 1371 print_flags_separated(dma_wmode_masks,
1372 "*\0""sdma0 \0""*\0""sdma1 \0""*\0""sdma2 \0""*\0""sdma? \0", 1372 "*\0""sdma0 \0""*\0""sdma1 \0""*\0""sdma2 \0""*\0""sdma? \0",
diff --git a/miscutils/i2c_tools.c b/miscutils/i2c_tools.c
index cc8b99a92..09364e396 100644
--- a/miscutils/i2c_tools.c
+++ b/miscutils/i2c_tools.c
@@ -1053,18 +1053,13 @@ struct adap_desc {
1053}; 1053};
1054 1054
1055static const struct adap_desc adap_descs[] = { 1055static const struct adap_desc adap_descs[] = {
1056 { .funcs = "dummy", 1056 { .funcs = "dummy", .algo = "Dummy bus", },
1057 .algo = "Dummy bus", }, 1057 { .funcs = "isa", .algo = "ISA bus", },
1058 { .funcs = "isa", 1058 { .funcs = "i2c", .algo = "I2C adapter", },
1059 .algo = "ISA bus", }, 1059 { .funcs = "smbus", .algo = "SMBus adapter", },
1060 { .funcs = "i2c",
1061 .algo = "I2C adapter", },
1062 { .funcs = "smbus",
1063 .algo = "SMBus adapter", },
1064}; 1060};
1065 1061
1066struct i2c_func 1062struct i2c_func {
1067{
1068 long value; 1063 long value;
1069 const char* name; 1064 const char* name;
1070}; 1065};
diff --git a/miscutils/mt.c b/miscutils/mt.c
index 9f1aecfca..dbb8c13ad 100644
--- a/miscutils/mt.c
+++ b/miscutils/mt.c
@@ -30,7 +30,7 @@
30#include <sys/mtio.h> 30#include <sys/mtio.h>
31 31
32/* missing: eod/seod, stoptions, stwrthreshold, densities */ 32/* missing: eod/seod, stoptions, stwrthreshold, densities */
33static const short opcode_value[] = { 33static const short opcode_value[] ALIGN2 = {
34 MTBSF, 34 MTBSF,
35 MTBSFM, 35 MTBSFM,
36 MTBSR, 36 MTBSR,
diff --git a/miscutils/setserial.c b/miscutils/setserial.c
index 1e75bf433..2006861e2 100644
--- a/miscutils/setserial.c
+++ b/miscutils/setserial.c
@@ -381,8 +381,7 @@ static bool cmd_needs_arg(int cmd)
381# error "Unexpected flags size" 381# error "Unexpected flags size"
382#endif 382#endif
383 383
384static const uint16_t setbits[CMD_FLAG_LAST + 1] = 384static const uint16_t setbits[CMD_FLAG_LAST + 1] ALIGN2 = {
385{
386 0, 385 0,
387 ASYNC_SPD_HI, 386 ASYNC_SPD_HI,
388 ASYNC_SPD_VHI, 387 ASYNC_SPD_VHI,
diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c
index 94a637eee..69ead7a13 100644
--- a/miscutils/ubi_tools.c
+++ b/miscutils/ubi_tools.c
@@ -97,7 +97,7 @@ static unsigned get_num_from_file(const char *path, unsigned max)
97int ubi_tools_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 97int ubi_tools_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
98int ubi_tools_main(int argc UNUSED_PARAM, char **argv) 98int ubi_tools_main(int argc UNUSED_PARAM, char **argv)
99{ 99{
100 static const struct suffix_mult size_suffixes[] = { 100 static const struct suffix_mult size_suffixes[] ALIGN_SUFFIX = {
101 { "KiB", 1024 }, 101 { "KiB", 1024 },
102 { "MiB", 1024*1024 }, 102 { "MiB", 1024*1024 },
103 { "GiB", 1024*1024*1024 }, 103 { "GiB", 1024*1024*1024 },
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index 971b777a3..0ed10bcf1 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -88,7 +88,7 @@ int watchdog_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
88int watchdog_main(int argc UNUSED_PARAM, char **argv) 88int watchdog_main(int argc UNUSED_PARAM, char **argv)
89{ 89{
90 static const int enable = WDIOS_ENABLECARD; 90 static const int enable = WDIOS_ENABLECARD;
91 static const struct suffix_mult suffixes[] = { 91 static const struct suffix_mult suffixes[] ALIGN_SUFFIX = {
92 { "ms", 1 }, 92 { "ms", 1 },
93 { "", 1000 }, 93 { "", 1000 },
94 { "", 0 } 94 { "", 0 }