summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/mce_power.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2018-08-09 15:37:20 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-08-10 14:12:39 +0200
commitae24ce5e12127eeef6bf946c3ee0e95f3797caaf (patch)
tree62229ef4468f2d2bba19efdf9906f059ec3e687c /arch/powerpc/kernel/mce_power.c
parentpowerpc/mm/tlbflush: update the mmu_gather page size while iterating address ... (diff)
downloadlinux-ae24ce5e12127eeef6bf946c3ee0e95f3797caaf.tar.xz
linux-ae24ce5e12127eeef6bf946c3ee0e95f3797caaf.zip
powerpc/powernv/idle: Fix build error
Fix the below build error using strlcpy instead of strncpy In function 'pnv_parse_cpuidle_dt', inlined from 'pnv_init_idle_states' at arch/powerpc/platforms/powernv/idle.c:840:7, inlined from '__machine_initcall_powernv_pnv_init_idle_states' at arch/powerpc/platforms/powernv/idle.c:870:1: arch/powerpc/platforms/powernv/idle.c:820:3: error: 'strncpy' specified bound 16 equals destination size [-Werror=stringop-truncation] strncpy(pnv_idle_states[i].name, temp_string[i], ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PNV_IDLE_NAME_LEN); Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/mce_power.c')
0 files changed, 0 insertions, 0 deletions