Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6798405ybf; Fri, 6 Mar 2020 04:51:07 -0800 (PST) X-Google-Smtp-Source: ADFU+vujdGnvUXsT3u2VzrLtAXItz/WzTulYHMJ+RfzzcJ3xYAg8VZHbO7Cq6UxLINWzVk8uK2RY X-Received: by 2002:aca:4555:: with SMTP id s82mr2360778oia.55.1583499067123; Fri, 06 Mar 2020 04:51:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583499067; cv=none; d=google.com; s=arc-20160816; b=SBMhdOLNU/6OtWUB6iVqE3qqZNrEU4/zpMTPdNajg5H2JMZrOTrh2Xm6Hrhuh3yjLX zh6O0dB8abFbQ/heQjorfNWMdAsY6AD92/BBwPU4LtLhDOfq/9ccsj5LMzfbXFdoXpjz OjM71TIvRHbLRjzIIBSA/vAE8f4ms/Fy4BP3+xmO7gPbZYb1sjQJGnEdFPjpXK2rzCx+ yQ4iJnB/pTAUk5T11Nv3dC4Rkl+P9izoiRJoH0CL7gx4DvQHVgvIZV8X3mNdpnqn7Xi8 5kHyFGp2659dvjE2PhBsLWJGXhjmPzpwYMgcQj3fLkAv3h7HBbIrdUzzoPSnrtIYn4dt wu1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:subject:cc:to:from; bh=AaqU93rtVEr8b8emPnvOmM/ekGR8vnmJrSBDNKtRSco=; b=G0E2GetCXc10zCEWxXh7DeM/vZHRNipUO9563iF1MMWEqfx3TZBAQ7OuRBYGf66l2U LCd1IN7B2kGD+KSHsMApyC4mw3a6CnR1xo3xFwzww/KhbXi594lI9u822WvXIDWWjfB/ RpEEPiHg+Ya4htvbNggfBbc2QljomnNyK9X6vCgAbJ3ZbbEK6We49re6AekZj6/0enmF QXOwR+5JdOGHYBZljTdW5Hg1a7kibpZF0LIZbA8NSxnrokLdq83yss7wKWesWtHWoNoC dui+R3rfJiLodu7wMKlMewsutAq9pJkSA5/YrGbLXO7pZw2xfkNc77qfPhWIb9WGDMMu 2Psw== ARC-Authentication-Results: i=1; mx.google.com; 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 s70si1276241oie.178.2020.03.06.04.50.55; Fri, 06 Mar 2020 04:51:07 -0800 (PST) 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; 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 S1727347AbgCFMtR (ORCPT + 99 others); Fri, 6 Mar 2020 07:49:17 -0500 Received: from mail.baikalelectronics.com ([87.245.175.226]:35708 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbgCFMtP (ORCPT ); Fri, 6 Mar 2020 07:49:15 -0500 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 151A68030792; Fri, 6 Mar 2020 12:49:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pjnVSfQ4wOVg; Fri, 6 Mar 2020 15:49:12 +0300 (MSK) From: To: Greg Kroah-Hartman , Jiri Slaby CC: Serge Semin , Serge Semin , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , Subject: [PATCH 18/22] tty: mips_ejtag_fdc: Mark expected switch fall-through Date: Fri, 6 Mar 2020 15:47:01 +0300 In-Reply-To: <20200306124705.6595-1-Sergey.Semin@baikalelectronics.ru> References: <20200306124705.6595-1-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Message-Id: <20200306124913.151A68030792@mail.baikalelectronics.ru> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Serge Semin Mark mips_ejtag_fdc_encode() methods switch-case-4 as expecting to fall through. This patch fixes the following warning: drivers/tty/mips_ejtag_fdc.c: In function ‘mips_ejtag_fdc_encode’: drivers/tty/mips_ejtag_fdc.c:245:13: warning: this statement may fall through [-Wimplicit-fallthrough=] word.word &= 0x00ffffff; ~~~~~~~~~~^~~~~~~~~~~~~ drivers/tty/mips_ejtag_fdc.c:246:2: note: here case 3: ^~~~ Signed-off-by: Serge Semin Signed-off-by: Alexey Malahov Cc: Thomas Bogendoerfer Cc: Paul Burton Cc: Ralf Baechle --- drivers/tty/mips_ejtag_fdc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/mips_ejtag_fdc.c b/drivers/tty/mips_ejtag_fdc.c index 620d8488b83e..21e76a2ec182 100644 --- a/drivers/tty/mips_ejtag_fdc.c +++ b/drivers/tty/mips_ejtag_fdc.c @@ -243,6 +243,7 @@ static struct fdc_word mips_ejtag_fdc_encode(const char **ptrs, /* Fall back to a 3 byte encoding */ word.bytes = 3; word.word &= 0x00ffffff; + /* Fall through */ case 3: /* 3 byte encoding */ word.word |= 0x82000000; -- 2.25.1