From patchwork Wed Aug 7 02:23:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 170686 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp6483548ile; Tue, 6 Aug 2019 19:24:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLwUS/3h/X+cR33LzG3xx9zG4/esrprkkFC8F8AdxQl8VLCuxdTW2uEkVp8lQItQHv2ZN1 X-Received: by 2002:aa7:8392:: with SMTP id u18mr6989853pfm.72.1565144642251; Tue, 06 Aug 2019 19:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565144642; cv=none; d=google.com; s=arc-20160816; b=av9Qrs99EAGibFK0349EXb353nwOvezKr89HO55Lta2wc0cnGMAwvCyVILOld9ikDE x2grJt6CHOd38g7+MZT4FTUTLXnllbbHaW3/rIsQtyAyCv6RyqsYicRH4iDj94G8l96A IvOxV0TdT0RSnd60yCOXm5YIPvG7aUUtu2Va9svaGqhlk91LHqOcybE3uowhUd2vmCEo h8df/naCcVJ9Ux+Su31U5tomQW3kGTCwgw5yVHmjW0//2Rf7Az1HxJHOGFKS2muwHPN9 0KIZKMu1SscUQ+dMfHoawohEBOo+b9WcMs6iCSymDx8R/oWuhxRXiP2xJbjHTlouD+iY nAXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=pkL8MY9zC5v+zrBda/zPQm0g3an3ptjtpVdI7jzPVfs=; b=yrfpvXSvMC8qnfuqITJUPgDN/xKU2wCzHzNidDxT3LR9QbVXCu8a5uBdNui6fdgYmY iVxIBb80TZVQUXccY9phmPiaU/0y94hewmlGKeugxCMKXMb7cHZJdm7cvh/dI3ZeM18s 780BHuZWIWqMhy0OniK7Clq6yN5K7JV3Hv7z+yDe9B/dLvC2n17feHcsKs5rP05BFpVJ CRVpep9WJWrYCUuHIo1b2YCc6zLhW4gbUV5F+VmTd/rhMywM3Kld9hi4KweqZzx0qTeH ZUmOfRm2e1cUbMS7qYEW6wPPeVqaQd8OpY9nUrJvuRV5hyG5EuxE2Co6rRg42+DoewQt vjOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hcewzGRW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si46418288pgp.424.2019.08.06.19.24.01; Tue, 06 Aug 2019 19:24:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hcewzGRW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729560AbfHGCYB (ORCPT + 28 others); Tue, 6 Aug 2019 22:24:01 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42260 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728772AbfHGCYA (ORCPT ); Tue, 6 Aug 2019 22:24:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id t132so42595311pgb.9 for ; Tue, 06 Aug 2019 19:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pkL8MY9zC5v+zrBda/zPQm0g3an3ptjtpVdI7jzPVfs=; b=hcewzGRW803/McXeTj5WrIwfjtIILcuMOhhJI0+XH2tVg9fxh/5KolBT0x1b5T51+R XQ7IzrsxAVtHeyFEBDzoK5YSDcR82uErm3bVWGbHKSg1K4zRos0VapMK+1uxdw/foioe 8U99TG1Qn/sp68fFKtdn6NTCKGlwrmX0NtkvzSDWUbbHDKqXSrIiBsfWxTVkj/N/HyjT iBlOtyfqcbF00/ppnxcHXZDVoeccewmF/JIELCQ0/o5INRAL4oHH+C/PTBqw4XC3Tb6P RFC6O+PCswW6u79cxA/A/infPSvko1boCXwi+HBSH6bCnN9eOji0e8EqlqN67zYuqmqS OzHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=pkL8MY9zC5v+zrBda/zPQm0g3an3ptjtpVdI7jzPVfs=; b=KbdMT4p1LDPXqWM8ve2yWayrbnEBBNHokHjOBD9RKAg4+uFQmcsmbemybzBIe0UIpd SLk5v/AqZHmlM5Qvau6/qwjqcbHrgzfGo2PT0oU7VwKcBgTgE1z4B6oh1d+mlKOKqGXv JcJ+hKJ+i+OgRifDwubYNuKSpNvao+2Kn/wAFwj9EepqMOrVQ8cgfzNzNAR9gIQ8S5IQ D1JXQ/CIhT0qDuDg6mLkOQEKVMJ6nKziES7hdXGiZ2RbTW4SVsbExfRANsYXc9+82YQ1 RofZvAjK+YnGiOYlWa3Wb4zbOep4l1qzcmIDU9hYjLt4LXniEYON/BcBSbm88EVLAvRM nCDw== X-Gm-Message-State: APjAAAWqqZweofNVsqiosWCBscrrg2CU97AyVISpLG9p87qVjyzjQW+y BAug20nVV0o5MgkzOf8nv9E4RA== X-Received: by 2002:a62:b515:: with SMTP id y21mr6996570pfe.213.1565144639931; Tue, 06 Aug 2019 19:23:59 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id i124sm164007064pfe.61.2019.08.06.19.23.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Aug 2019 19:23:59 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , Stephen Rothwell Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Linux Next Mailing List Subject: [PATCH v2] soc: qcom: socinfo: Annotate switch cases with fall through Date: Tue, 6 Aug 2019 19:23:56 -0700 Message-Id: <20190807022356.8502-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190807100803.63007737@canb.auug.org.au> References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce fall through annotations in the switch statements of socinfo_debugfs_init() to silence compiler warnings. Fixes: 9c84c1e78634 ("soc: qcom: socinfo: Expose custom attributes") Reported-by: Stephen Rothwell Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/socinfo.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.18.0 diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index 855353bed19e..a39ea5061dc5 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc/qcom/socinfo.c @@ -323,6 +323,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, debugfs_create_x32("raw_device_number", 0400, qcom_socinfo->dbg_root, &qcom_socinfo->info.raw_device_num); + /* Fall through */ case SOCINFO_VERSION(0, 11): case SOCINFO_VERSION(0, 10): case SOCINFO_VERSION(0, 9): @@ -330,10 +331,12 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, debugfs_create_u32("foundry_id", 0400, qcom_socinfo->dbg_root, &qcom_socinfo->info.foundry_id); + /* Fall through */ case SOCINFO_VERSION(0, 8): case SOCINFO_VERSION(0, 7): DEBUGFS_ADD(info, pmic_model); DEBUGFS_ADD(info, pmic_die_rev); + /* Fall through */ case SOCINFO_VERSION(0, 6): qcom_socinfo->info.hw_plat_subtype = __le32_to_cpu(info->hw_plat_subtype); @@ -341,6 +344,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, debugfs_create_u32("hardware_platform_subtype", 0400, qcom_socinfo->dbg_root, &qcom_socinfo->info.hw_plat_subtype); + /* Fall through */ case SOCINFO_VERSION(0, 5): qcom_socinfo->info.accessory_chip = __le32_to_cpu(info->accessory_chip); @@ -348,23 +352,27 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, debugfs_create_u32("accessory_chip", 0400, qcom_socinfo->dbg_root, &qcom_socinfo->info.accessory_chip); + /* Fall through */ case SOCINFO_VERSION(0, 4): qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver); debugfs_create_u32("platform_version", 0400, qcom_socinfo->dbg_root, &qcom_socinfo->info.plat_ver); + /* Fall through */ case SOCINFO_VERSION(0, 3): qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat); debugfs_create_u32("hardware_platform", 0400, qcom_socinfo->dbg_root, &qcom_socinfo->info.hw_plat); + /* Fall through */ case SOCINFO_VERSION(0, 2): qcom_socinfo->info.raw_ver = __le32_to_cpu(info->raw_ver); debugfs_create_u32("raw_version", 0400, qcom_socinfo->dbg_root, &qcom_socinfo->info.raw_ver); + /* Fall through */ case SOCINFO_VERSION(0, 1): DEBUGFS_ADD(info, build_id); break;