From patchwork Tue May 21 07:22:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 164692 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1264941ili; Tue, 21 May 2019 00:24:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBJMqPjXj6WSj20+THuwYD4cBFCAbYOp4j3WgsZGB05u+HCZWoodleTFdxqhebbub8w1j2 X-Received: by 2002:a63:d016:: with SMTP id z22mr81104626pgf.116.1558423463155; Tue, 21 May 2019 00:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558423463; cv=none; d=google.com; s=arc-20160816; b=fhSs0Wd/rd1MjyOqpRPKG4UlhAs8C+bbN45K1H+OWWtoa3DSjHGZZ43aQ1YRTiYFhw CreuFNzac+Blk/XAxAIuO2m2poBZ2Ab7+BcGngMiw4xBK8+po6JG/xvVYfXax4/8zm02 YTzIdR4Kn0ZFvt0J5Co8X8FhE9umaP/hk5ADChxxt4Vwzmr1MSRIyoDyopNlu/5+h+WU LE2USAP6qLYLiBjhB8XTW+Fx06xtdJeQ7eF1YLCb+2LN/MTzmj2RyE50Q2/ekq/EDZgW 9mi4rv/QreyClnoy5yUM03GlXq5xIfSxagBrwdoyLFKgkRioyAyv1WwcYZh74Emt1gKa H/hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=hr8joM8Sc+Aak3eFwsotPo0Y8ZJsP4u2qZKEifJpDSc=; b=ZenHr6XQJiAglUoLt5JIzobQl5uJEUdDIzT/eAEqfOlqw1FP3CFc79PuDQupRR6mJS Ujb3wf3wNlCBEoX6d4NskeBQf5JFzgF2nXUhIJi+Ti9OlRT51JfOfyv9jF3NSUngLfTO EhDTsHxjIyx3F1GDCY0hdmdjwdU8abmH5/ANL2RsoITyk50K+pohWrxlh1bqlLpLPMkB HVJVNsRDLoebfdDpQODMPpCfYb7sXoMorVgrUFoEqbVX8oko95u/yxtFe7t/0Ry5UK9K K70f2eri8NBshB91/7ABBjBRjqytEF3GwITknbyDI5qVLv17MdivHLwWi0elDdLrBRaR RjnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=l7CH3GZi; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j8si20959701plb.352.2019.05.21.00.24.22; Tue, 21 May 2019 00:24:23 -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=@nifty.com header.s=dec2015msa header.b=l7CH3GZi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726931AbfEUHYW (ORCPT + 30 others); Tue, 21 May 2019 03:24:22 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:22820 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbfEUHYV (ORCPT ); Tue, 21 May 2019 03:24:21 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x4L7MHPr022832; Tue, 21 May 2019 16:22:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x4L7MHPr022832 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1558423338; bh=hr8joM8Sc+Aak3eFwsotPo0Y8ZJsP4u2qZKEifJpDSc=; h=From:To:Cc:Subject:Date:From; b=l7CH3GZim9h0bMC3eGO7MyWPnzOAA8KNC8BCQDA1nQrXefb54KVJjgCD16vYHYF0F nSZLR5oes9Eg9Dw9BlAjPhLWfv9XTP4c4pEzm+NuMnU5gt70hwb9+AW/x+pxfEOEZR JMQgWpV6iF+kUEMGyFwS9L8UQPpZpA6PFtr2+7ygfw/hcYNSohDHv46+pxpgHvzWXP 66IeVxSAK8J7Odoj6PvUODZsZNWL9/Eco9y+CEgJrGlmSsdlBFHGjANZrEm6sOC9bb 2rnNYxZ4b6X0+fkF3ihTg2SGpbkhm8kMrQm8IXvzoOfvR1qMXxhf/araMXvjhtQB1f yd8HskED0bItA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Ingo Molnar , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , x86@kernel.org Cc: "H . Peter Anvin" , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] x86/io_delay: break instead of fallthrough in switch statement Date: Tue, 21 May 2019 16:22:10 +0900 Message-Id: <20190521072211.21014-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current code is fine since 'case CONFIG_IO_DELAY_TYPE_NONE' does nothing, but scripts/checkpatch.pl complains about this: warning: Possible switch case/default not preceded by break or fallthrough comment I like break statement better than a fallthrough comment here. It avoids the warning and clarify the code. No behavior change is intended. Signed-off-by: Masahiro Yamada --- arch/x86/kernel/io_delay.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/arch/x86/kernel/io_delay.c b/arch/x86/kernel/io_delay.c index 805b7a341aca..3dc874d5d43b 100644 --- a/arch/x86/kernel/io_delay.c +++ b/arch/x86/kernel/io_delay.c @@ -39,6 +39,7 @@ void native_io_delay(void) * are shorter until calibrated): */ udelay(2); + break; case CONFIG_IO_DELAY_TYPE_NONE: break; }