warnings: fix missing field in initializer

use generic struct zero initializer instead.
Older gcc used on arm also seem to have trouble with '{}',
so use '{ 0 }' instead

Change-Id: I83d43b05f8d1d44e1dd86502b48e28fe242e1db2
This commit is contained in:
Dominique Martinet
2019-03-04 10:53:40 +09:00
committed by Dominique Martinet
parent 10cca81401
commit 0cc3496747
3 changed files with 3 additions and 3 deletions

View File

@ -970,7 +970,7 @@ static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = {
#ifdef CONFIG_ARM64_SVE
HWCAP_CAP(SYS_ID_AA64PFR0_EL1, ID_AA64PFR0_SVE_SHIFT, FTR_UNSIGNED, 1, CAP_HWCAP, HWCAP_SVE),
#endif
{},
{ 0 },
};
/* @ref.impl arch/arm64/kernel/cpufeature.c */

View File

@ -10,5 +10,5 @@ struct cpu_info cpu_table[] = {
.cpu_name = "AArch64 Processor",
.cpu_setup = __cpu_setup,
},
{ /* Empty */ },
{ 0 },
};

View File

@ -3158,7 +3158,7 @@ struct overlay_blacklist_entry {
{ "/sys/devices/system/node/has%c", -1, -1, '_' },
{ "/sys/fs/cgrou%c", -1, -1, 'p' },
{ "/sys/devices/pci%*[^/]/%*[^/]/local_cpu%c", -1, -1, 's' },
{ NULL, 0, 0 },
{ 0 },
};
int overlay_blacklist(const char *path)