Skip to content

Commit 6cd90e5

Browse files
committed
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull misc fixes from Guenter Roeck. These are fixes for regressions that Guenther has been reporting, and the maintainers haven't picked up and sent in. With rc6 fairly imminent, I'm taking them directly from Guenter. * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: apparmor: fix policy_unpack_test on big endian systems Revert "MIPS: csrc-r4k: Apply verification clocksource flags" microblaze: don't treat zero reserved memory regions as error
2 parents 8463be8 + 98c0cc4 commit 6cd90e5

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

arch/microblaze/mm/init.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,6 @@ asmlinkage void __init mmu_init(void)
193193
{
194194
unsigned int kstart, ksize;
195195

196-
if (!memblock.reserved.cnt) {
197-
pr_emerg("Error memory count\n");
198-
machine_restart(NULL);
199-
}
200-
201196
if ((u32) memblock.memory.regions[0].size < 0x400000) {
202197
pr_emerg("Memory must be greater than 4MB\n");
203198
machine_restart(NULL);

arch/mips/kernel/csrc-r4k.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ static struct clocksource clocksource_mips = {
2121
.name = "MIPS",
2222
.read = c0_hpt_read,
2323
.mask = CLOCKSOURCE_MASK(32),
24-
.flags = CLOCK_SOURCE_IS_CONTINUOUS |
25-
CLOCK_SOURCE_MUST_VERIFY |
26-
CLOCK_SOURCE_VERIFY_PERCPU,
24+
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
2725
};
2826

2927
static u64 __maybe_unused notrace r4k_read_sched_clock(void)

security/apparmor/policy_unpack_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ static struct aa_ext *build_aa_ext_struct(struct policy_unpack_fixture *puf,
8080
*(buf + 1) = strlen(TEST_U32_NAME) + 1;
8181
strscpy(buf + 3, TEST_U32_NAME, e->end - (void *)(buf + 3));
8282
*(buf + 3 + strlen(TEST_U32_NAME) + 1) = AA_U32;
83-
*((u32 *)(buf + 3 + strlen(TEST_U32_NAME) + 2)) = TEST_U32_DATA;
83+
*((__le32 *)(buf + 3 + strlen(TEST_U32_NAME) + 2)) = cpu_to_le32(TEST_U32_DATA);
8484

8585
buf = e->start + TEST_NAMED_U64_BUF_OFFSET;
8686
*buf = AA_NAME;
8787
*(buf + 1) = strlen(TEST_U64_NAME) + 1;
8888
strscpy(buf + 3, TEST_U64_NAME, e->end - (void *)(buf + 3));
8989
*(buf + 3 + strlen(TEST_U64_NAME) + 1) = AA_U64;
90-
*((u64 *)(buf + 3 + strlen(TEST_U64_NAME) + 2)) = TEST_U64_DATA;
90+
*((__le64 *)(buf + 3 + strlen(TEST_U64_NAME) + 2)) = cpu_to_le64(TEST_U64_DATA);
9191

9292
buf = e->start + TEST_NAMED_BLOB_BUF_OFFSET;
9393
*buf = AA_NAME;
@@ -103,7 +103,7 @@ static struct aa_ext *build_aa_ext_struct(struct policy_unpack_fixture *puf,
103103
*(buf + 1) = strlen(TEST_ARRAY_NAME) + 1;
104104
strscpy(buf + 3, TEST_ARRAY_NAME, e->end - (void *)(buf + 3));
105105
*(buf + 3 + strlen(TEST_ARRAY_NAME) + 1) = AA_ARRAY;
106-
*((u16 *)(buf + 3 + strlen(TEST_ARRAY_NAME) + 2)) = TEST_ARRAY_SIZE;
106+
*((__le16 *)(buf + 3 + strlen(TEST_ARRAY_NAME) + 2)) = cpu_to_le16(TEST_ARRAY_SIZE);
107107

108108
return e;
109109
}

0 commit comments

Comments
 (0)