Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: qcom: socinfo: Annotate switch cases with fall through

Introduce fall through annotations in the switch statements of
socinfo_debugfs_init() to silence compiler warnings.

Acked-by: Vaishali Thakkar <vaishali.thakkar@linaro.org>
Fixes: 9c84c1e78634 ("soc: qcom: socinfo: Expose custom attributes")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

+8
+8
drivers/soc/qcom/socinfo.c
··· 323 323 debugfs_create_x32("raw_device_number", 0400, 324 324 qcom_socinfo->dbg_root, 325 325 &qcom_socinfo->info.raw_device_num); 326 + /* Fall through */ 326 327 case SOCINFO_VERSION(0, 11): 327 328 case SOCINFO_VERSION(0, 10): 328 329 case SOCINFO_VERSION(0, 9): ··· 331 330 332 331 debugfs_create_u32("foundry_id", 0400, qcom_socinfo->dbg_root, 333 332 &qcom_socinfo->info.foundry_id); 333 + /* Fall through */ 334 334 case SOCINFO_VERSION(0, 8): 335 335 case SOCINFO_VERSION(0, 7): 336 336 DEBUGFS_ADD(info, pmic_model); 337 337 DEBUGFS_ADD(info, pmic_die_rev); 338 + /* Fall through */ 338 339 case SOCINFO_VERSION(0, 6): 339 340 qcom_socinfo->info.hw_plat_subtype = 340 341 __le32_to_cpu(info->hw_plat_subtype); ··· 344 341 debugfs_create_u32("hardware_platform_subtype", 0400, 345 342 qcom_socinfo->dbg_root, 346 343 &qcom_socinfo->info.hw_plat_subtype); 344 + /* Fall through */ 347 345 case SOCINFO_VERSION(0, 5): 348 346 qcom_socinfo->info.accessory_chip = 349 347 __le32_to_cpu(info->accessory_chip); ··· 352 348 debugfs_create_u32("accessory_chip", 0400, 353 349 qcom_socinfo->dbg_root, 354 350 &qcom_socinfo->info.accessory_chip); 351 + /* Fall through */ 355 352 case SOCINFO_VERSION(0, 4): 356 353 qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver); 357 354 358 355 debugfs_create_u32("platform_version", 0400, 359 356 qcom_socinfo->dbg_root, 360 357 &qcom_socinfo->info.plat_ver); 358 + /* Fall through */ 361 359 case SOCINFO_VERSION(0, 3): 362 360 qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat); 363 361 364 362 debugfs_create_u32("hardware_platform", 0400, 365 363 qcom_socinfo->dbg_root, 366 364 &qcom_socinfo->info.hw_plat); 365 + /* Fall through */ 367 366 case SOCINFO_VERSION(0, 2): 368 367 qcom_socinfo->info.raw_ver = __le32_to_cpu(info->raw_ver); 369 368 370 369 debugfs_create_u32("raw_version", 0400, qcom_socinfo->dbg_root, 371 370 &qcom_socinfo->info.raw_ver); 371 + /* Fall through */ 372 372 case SOCINFO_VERSION(0, 1): 373 373 DEBUGFS_ADD(info, build_id); 374 374 break;