Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp391718pxj; Fri, 7 May 2021 10:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5N2jE4/wnJZufZqP2uNDmcs0NsTZJQTMbbpBJgatc8EiWicM6MeN0K0JYQxUtYdcM+seR X-Received: by 2002:aa7:9aa3:0:b029:28e:d5ff:6899 with SMTP id x3-20020aa79aa30000b029028ed5ff6899mr11632461pfi.3.1620409843681; Fri, 07 May 2021 10:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620409843; cv=none; d=google.com; s=arc-20160816; b=MAeH2OS4838ZyL2UMOP0cWVUgtojHY/A+eZMBuyJZhk90eounh4P4bbv57eez5/Eul 8wT5G0uhb/JNLD+2N8AzkiL6lfLpoJ4S2V+YtvzF01SgnWVediiqdgZXnTK0sUYPD5bm QAkkbwKMNPeaaYRv3GFpKRlHS/OfFse5PPRYOYDrinqCw+zqs2CMVAq+s5U8EwBZsAeK 0qR0YahGOOYiW2VhRZFy7mvUNNeycuOEBfA7A5r0YDSoV9L5KlyVqZSGC8MzFqEIRGME XANq3zGuRUCIQ9m0rnueYf/N9pDP161C68lEadU4FPGXw287qI3IdiIsLGb0YSh3lFcm RO2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Kz0YcBrq8g2OohZvohzHvN3l1WC2jeNvxaP5PqjYa+Y=; b=eng5nedU7/zw88meNmnsOfC6MIUc4odRuTLAi6iQlBpzI/G1IM+8BHlx2BbJF5nsvR egVwDTUQSurmAW7TJljKmkzFBtBv8JwWgC+QEtB2/MsQRhyy7pB0Df8BlSrtBE43ypWY WRLWAPqvXT2/V8QSbtQLjkXaYfS1jJYrh0mcuQdK8lBq2TtaAlJBaNpLOD5gSAgItoaE RHO32Fr9NlM6e2FafhETbmu6CQdw67jl2954gK6ajSdSeshAwa7pFDpARwynXew3SkeR LV1bvTyDFJ35x0U3ev25U/OxaEP/OxMfP/GGRP0QVEkRkmJcgLyawQJYtcdsf4+SYBP0 yJvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VPVtMyn5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r30si5263317pfl.322.2021.05.07.10.50.31; Fri, 07 May 2021 10:50:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VPVtMyn5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237065AbhEGNFT (ORCPT + 99 others); Fri, 7 May 2021 09:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235836AbhEGNFO (ORCPT ); Fri, 7 May 2021 09:05:14 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C4FC061574; Fri, 7 May 2021 06:04:13 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id h14-20020a17090aea8eb02901553e1cc649so5217036pjz.0; Fri, 07 May 2021 06:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Kz0YcBrq8g2OohZvohzHvN3l1WC2jeNvxaP5PqjYa+Y=; b=VPVtMyn5YHM6qV4qxLN6rf1oQzfo1JIe40WUL8WLjZDOpLAMlNYkgH5rbVH93iAqcQ iEX99Z+7nmQ3+jbGQmwTOLk4tI8yOptKVbLvRYKaq3SuKc6L7hc+ULTURy5arRPy9dB4 BTqTJU/tWiO5WWoz4ufJdRXRx5VMdG3/88C/t977RuGCS/Ewi33OPqFSCldOxpKMwqZa ihJUdwYxe45g35vmvZMvj8fDcjrIcjK53D+uyS4qQuEQGUQJ0gRBjtFH8oTtE+PBozUO 98jei2Z81U5Pqv/dj4pdonB4FfPsYNhcvbGN1xNPs+2bvfoUE6pBWIyUfW0KO/RIWySr 0nuA== 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=Kz0YcBrq8g2OohZvohzHvN3l1WC2jeNvxaP5PqjYa+Y=; b=O9h6dT70Bkvua9A2KlFuLj73kOnDj5oHySbBSt+Cyd9imZgyJJYOJo9n2L5DjNVpd+ E9XZ5nB5LYg/w4pvplOBkGbkQ/3JW6FSvSEv+hqn/cOSr9QGrhEdtDv7Ph2NHxUlp43l vMdvBKNf9+h/y2hAk+pULgzzAjY+hJO3pCb9qdGIUVV3r8mio8MdR/DuXrQJeWmc2iq1 2z3RHqwAPNahGyahrm+Ve9Zm9hAfXF+qMPa1qL2zoo7ghsv+qBOR9rO2DciBwEJ3QBX5 oYkHZKJq7MsaGTimPryphVEiTKnzbfGFA2k8xkAJH2FidYmS0QtwwAILDmlCl4BaXrcU JhPQ== X-Gm-Message-State: AOAM533ctjMa4SC4IiSvm523N5s5lJXYVK/QYhHWXTP+pjE3eBSXC8Un mHXuanQp5IvkR9o/OWSnouYBFYZT+jQb31Buym4= X-Received: by 2002:a17:90a:b290:: with SMTP id c16mr10131933pjr.81.1620392652461; Fri, 07 May 2021 06:04:12 -0700 (PDT) Received: from localhost.localdomain (host-219-71-67-82.dynamic.kbtelecom.net. [219.71.67.82]) by smtp.gmail.com with ESMTPSA id d26sm4843295pfq.215.2021.05.07.06.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 May 2021 06:04:12 -0700 (PDT) From: Wei Ming Chen To: linux-kernel@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, Wei Ming Chen Subject: [PATCH] serial: 8250_pci: Use fallthrough pseudo-keyword Date: Fri, 7 May 2021 21:04:03 +0800 Message-Id: <20210507130403.11144-1-jj251510319013@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pseudo-keyword macro fallthrough[1] [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Wei Ming Chen --- drivers/tty/serial/8250/8250_pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 689d8227f95f..4158f06de4d5 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -847,8 +847,11 @@ static int pci_netmos_init(struct pci_dev *dev) switch (dev->device) { /* FALLTHROUGH on all */ case PCI_DEVICE_ID_NETMOS_9904: + fallthrough; case PCI_DEVICE_ID_NETMOS_9912: + fallthrough; case PCI_DEVICE_ID_NETMOS_9922: + fallthrough; case PCI_DEVICE_ID_NETMOS_9900: num_serial = pci_netmos_9900_numports(dev); break; -- 2.25.1