Message ID | 20190726112725.19204-1-anders.roxell@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0B64414E5 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 26 Jul 2019 11:28:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFDA528A75 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 26 Jul 2019 11:28:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E41AA28A8E; Fri, 26 Jul 2019 11:28:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9471D28A75 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 26 Jul 2019 11:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tIYAT8R4qlXpbBsQtt/TLyVXWJySshP1YRMgo9Cxjxw=; b=lv2ReEq6fa1qFj tV2Gq/N7U6C/Q073jgdRg40mPF2MU9Biq2YQHWdDZXbt8xWVUBv1EMgZG8mLd8RkDHYzdq868Qqz3 L5yAnXJYMdOwRnsvFtmQp3GeSJTwOk4Cpdpj2V1w743ga57KFOGGBsNNU0bu/oVFrjUiFtWgBgkec KdkfSOoGB8+L0jjVnxHTby51NTKdF5G2SeQBXGWHLdV9epXwE07hdExL/qUibO15NKKRAGqFytceB R4qNf356q4Snnffc5d8VxETnIPYUmygG7zPn7xWQqE1mbqVwq1UNcVuWzmdEGW5VDG5OUkdJ4die5 dcWfMD1dZDBqrhe/oYCQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqyP2-0002gS-EA; Fri, 26 Jul 2019 11:28:48 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqyNr-0001lh-Tt for linux-arm-kernel@lists.infradead.org; Fri, 26 Jul 2019 11:27:37 +0000 Received: by mail-lj1-x242.google.com with SMTP id m23so51065851lje.12 for <linux-arm-kernel@lists.infradead.org>; Fri, 26 Jul 2019 04:27:33 -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:mime-version :content-transfer-encoding; bh=VvJrkmi1Cwn8lyhtsQMDHS3PdPwEeGsIk+aMiHF32Hg=; b=iZQOA7Vh1AeiCmJRZYyWRcnNJw7mx3vuhfziN5xJyN0nCT7/YCjDyON4hFIJluzUUJ PBTIsl/eTYaLQkxKXopF6i/KGxtsqDXJcMB/A4YDGS1hE+Ki4Pr4zt6VHpzzflC6hsWp MISFZM1VeJsGmuRFCfMd+od6WxGiROAM528q+xZV79/evZBuTXs4Bs6m3pc8kaILzXkl Dd49j4aAP4LQVPeWFIsFLkYUEgriYpGKy0OLxZSgXv9oy5W5YMtOLGvb63AJ1gKU+swq iLHXB9AOquA7wCoGVyOLOjI/gWq4QRP24yyN1zU9HTy/B6iQs3Kc3OUWz7Y5syEkxwKc IXFg== 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:mime-version :content-transfer-encoding; bh=VvJrkmi1Cwn8lyhtsQMDHS3PdPwEeGsIk+aMiHF32Hg=; b=YI7wv66T/U0dbGF0AdgGd3lvdiopymXJXT8f2+ZGtI/eftlFYRHZn8svd90FrNapWv cqLI6op2m5IxZTBZbiNINIBRgvc08UEyTcy7hNXYOcG/oZWOJjeNIZ194YmsIpOiu/BR yV76bamNsUwOqrbzmDKki4DwZFkMYeArKPbY1cYZ4wi0+1ZDPptnYxyEHIsPNAdsP2+w y2snZy499jG0nB/qQ7cYjrqOBvT2yq5QDC6Yxq3GOuPH76Eolimpun0oxiPRP5VhdDEg HcUDsJ/msmSqTEOAKFRF5BRHgtabE7TdGrcEw1H3mrm55Iwj3QXGFzluWt69dJvO/9WZ DM4Q== X-Gm-Message-State: APjAAAWGYfJL+QsVdN562qFV50xbvmXs3HC+NycYZWFy8i5t29BBhE5F SPl5bTyfyxk2HmvDG9h2pkGkzw== X-Google-Smtp-Source: APXvYqy2DiXWMGAc7lrhMJwuj/3I02AlVEVzIwxTmJTwoNODqG05gW6+VZKwf3/2vqK/EXuRJ4PyAg== X-Received: by 2002:a2e:2b57:: with SMTP id q84mr49315455lje.105.1564140452344; Fri, 26 Jul 2019 04:27:32 -0700 (PDT) Received: from localhost (c-243c70d5.07-21-73746f28.bbcust.telenor.se. [213.112.60.36]) by smtp.gmail.com with ESMTPSA id i17sm8324734lfp.94.2019.07.26.04.27.31 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 04:27:31 -0700 (PDT) From: Anders Roxell <anders.roxell@linaro.org> To: catalin.marinas@arm.com, will@kernel.org Subject: [PATCH 3/3] arm64: smp: Mark expected switch fall-through Date: Fri, 26 Jul 2019 13:27:25 +0200 Message-Id: <20190726112725.19204-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190726_042736_119969_33283CCE X-CRM114-Status: GOOD ( 10.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: mark.rutland@arm.com, Anders Roxell <anders.roxell@linaro.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[1/3] arm64: perf: Mark expected switch fall-through
|
expand
|
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index ea90d3bd9253..018a33e01b0e 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -152,8 +152,8 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle) pr_crit("CPU%u: died during early boot\n", cpu); break; } - /* Fall through */ pr_crit("CPU%u: may not have shut down cleanly\n", cpu); + /* Fall through */ case CPU_STUCK_IN_KERNEL: pr_crit("CPU%u: is stuck in kernel\n", cpu); if (status & CPU_STUCK_REASON_52_BIT_VA)
When fall-through warnings was enabled by default the following warning was starting to show up: In file included from ../include/linux/kernel.h:15, from ../include/linux/list.h:9, from ../include/linux/kobject.h:19, from ../include/linux/of.h:17, from ../include/linux/irqdomain.h:35, from ../include/linux/acpi.h:13, from ../arch/arm64/kernel/smp.c:9: ../arch/arm64/kernel/smp.c: In function ‘__cpu_up’: ../include/linux/printk.h:302:2: warning: this statement may fall through [-Wimplicit-fallthrough=] printk(KERN_CRIT pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/arm64/kernel/smp.c:156:4: note: in expansion of macro ‘pr_crit’ pr_crit("CPU%u: may not have shut down cleanly\n", cpu); ^~~~~~~ ../arch/arm64/kernel/smp.c:157:3: note: here case CPU_STUCK_IN_KERNEL: ^~~~ Rework so that the compiler doesn't warn about fall-through. Fixes: d93512ef0f0e ("Makefile: Globally enable fall-through warning") Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- arch/arm64/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)