Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4944038ybh; Tue, 6 Aug 2019 21:27:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2hJxJA3vV/NYKNsHSe0v0vyvHKonKiMRuSSLG+G/BSgz1BYDcfe/bOsg3a4QrSMQqFb7S X-Received: by 2002:aa7:843c:: with SMTP id q28mr7449695pfn.152.1565152039559; Tue, 06 Aug 2019 21:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565152039; cv=none; d=google.com; s=arc-20160816; b=ChgygM0i86UL918bmyplHq6KjlQp1lVSk4r6cgKWlXU4u2kOn53m9+km5ULBHcfxp4 ktZmQOTht3sw0kSh3NB6ZbsW8NMo8/2G8pOCk0ftmM2AyUeSwp+W2WBlfqK3ZiBZFpz2 l1AO9YPG7oFrBUB7bz89MiO3HVxkhjrO6Asu4WFgXTurFjMZsbSMwAznC72Do5ef1ax/ aBsc5cqkej93U6CBp0vAbjatw9oIZB4uvZbZiEdadndseAZrj0Ri4yvpiPaXH0S6tTvs +WkLOeWTF7wMaDUbEMV961XGo77SiO1rB4qGA9b9iVJrUFjjrre3aByF72IwCs4fWt4J 7W1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3ATctTDaGdbuSHTCGNV3yIygAvKI+PZ5Bx0qOvsrsdU=; b=Wj5X9wz+q89iXJrcqvRfAx5TTJC9iWle5jhEeTpZ4RTsAJRvU+HmWMQhQH7FamEbXZ x+q7PK7qDEO9Vj1qbnfCVXiIymU4TsYHuPYFJWnt3tfjz/lkhr6kgZzHj0JZ54+ZGndz t7UMhoADTfvwfL+aUbqIRIW+dYmx1cNuuBbNYr1JM0sbm+Ci4WW+rSWx8S53NZuzzbqx 7DCu3Pm7nPHhnG76vvHf7+WnnFT0InRbiKJ5HA4SOHbIcP63fZZO1nyHMNouH1DtUEFr ThH7NBxjnMBpFUVDxgro4NhJt28bEg/RFB7+12fjGt2lyT53mVTdf+vAUdNAuQXYyYDd vfZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pr1TFTBP; 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 h69si49293607pge.543.2019.08.06.21.26.51; Tue, 06 Aug 2019 21:27:19 -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=Pr1TFTBP; 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 S1725972AbfHGEZx (ORCPT + 99 others); Wed, 7 Aug 2019 00:25:53 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42443 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbfHGEZx (ORCPT ); Wed, 7 Aug 2019 00:25:53 -0400 Received: by mail-ot1-f67.google.com with SMTP id l15so99098790otn.9 for ; Tue, 06 Aug 2019 21:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3ATctTDaGdbuSHTCGNV3yIygAvKI+PZ5Bx0qOvsrsdU=; b=Pr1TFTBPQsPZQkpBl1gTXGD5ehedYAy5IgSiynzskrPnWdr4niMAIJVdzjNvrApE4r FDSjtJCibdOlzOpQNWmdaIhwwiHAN9UkbuccdaCJxa2w4HVSoLB0X7putJWBQ4mziSpC 3/EHLm2TEeo4Ww++5N2jMzlt0GdyY86ZDUP2m5SSeqTTiIeUHaE7yGD4fNhJPwYiczEe K9vDFUsmlQvuQP6kZY7H+E7TiWLayveSS1ece73bgYdl8HEu1O6B5pi+wybjZDOtRgi1 gxD3OKbAKL7L32rqu1b+yZOqR4ZYvwEd3dBvcmPEfDpf39eKu6wsYR1+4+huS8E+BjOK 4NXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3ATctTDaGdbuSHTCGNV3yIygAvKI+PZ5Bx0qOvsrsdU=; b=mIM2iCZSw4oIJ2wnkjbbTUamQGrCP0hvoV7BmTkSaTchOvepH9SJIB9J+ep23/laYG JrWYF/5oTNoIuHr+b7ckuqvE+Srkz2QNeVTWa8Qpg/6Ye4CEumq0W98JTOmaT0Sejm2k 3jVEyht4wiA5QIkS8+lUTKvDIbfyCkhl9tc4JYbyCROfNEdFPUspNGGcLjViPCD1aD7s Y8bCBK+W59TZT/vSnuWaZzG5oy5RtH8oBsUaMumtAJjpgGHLwhkxu0NL/d2iMnzoE6Xu szrRXXN8OdPXWX7CzEtQS3nAe4oSp6qwnZ/bRfPo+vrxwgwU7OUseE/OQ+51dRaXBAYz GbBQ== X-Gm-Message-State: APjAAAXhDIJX81BlQ7xpGUMumTkXmx2ElQBlVX6lJ2kb1I/0Slv4c1RC OCqYyake7MqKUyM5aGmzN0Crf0zgj5I6oPH+rae44g== X-Received: by 2002:a05:6638:303:: with SMTP id w3mr7848813jap.103.1565151952221; Tue, 06 Aug 2019 21:25:52 -0700 (PDT) MIME-Version: 1.0 References: <20190807100803.63007737@canb.auug.org.au> <20190807022356.8502-1-bjorn.andersson@linaro.org> In-Reply-To: <20190807022356.8502-1-bjorn.andersson@linaro.org> From: Vaishali Thakkar Date: Wed, 7 Aug 2019 09:55:41 +0530 Message-ID: Subject: Re: [PATCH v2] soc: qcom: socinfo: Annotate switch cases with fall through To: Bjorn Andersson Cc: Andy Gross , Stephen Rothwell , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Aug 2019 at 07:54, Bjorn Andersson wrote: > > Introduce fall through annotations in the switch statements of > socinfo_debugfs_init() to silence compiler warnings. Oops, I missed this. Thanks for fixing it! > Fixes: 9c84c1e78634 ("soc: qcom: socinfo: Expose custom attributes") > Reported-by: Stephen Rothwell > Signed-off-by: Bjorn Andersson Acked-by: Vaishali Thakkar > --- > drivers/soc/qcom/socinfo.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > 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; > -- > 2.18.0 >