• Zihao Tang's avatar
    drivers/perf: convert sysfs snprintf family to sysfs_emit · 700a9cf0
    Zihao Tang authored
    Fix the following coccicheck warning:
    
    ./drivers/perf/hisilicon/hisi_uncore_pmu.c:128:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/fsl_imx8_ddr_perf.c:173:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm_spe_pmu.c:129:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm_smmu_pmu.c:563:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm_dsu_pmu.c:149:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm_dsu_pmu.c:139:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm-cmn.c:563:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm-cmn.c:351:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm-ccn.c:224:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm-cci.c:708:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm-cci.c:699:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm-cci.c:528:8-16: WARNING: use scnprintf or sprintf.
    ./drivers/perf/arm-cci.c:309:8-16: WARNING: use scnprintf or sprintf.
    Signed-off-by: default avatarZihao Tang <tangzihao1@hisilicon.com>
    Signed-off-by: default avatarQi Liu <liuqi115@huawei.com>
    Link: https://lore.kernel.org/r/1616148273-16374-2-git-send-email-liuqi115@huawei.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
    700a9cf0
arm_dsu_pmu.c 22.5 KB