Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3722199ybh; Tue, 17 Mar 2020 05:28:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt5GF2houHxw/7+MNbixClj+YPL+b0+5aHOS1eO0CnPrmtCEGzdJWRoYOlnOugFyml+EGss X-Received: by 2002:aca:484c:: with SMTP id v73mr3039682oia.138.1584448128017; Tue, 17 Mar 2020 05:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584448128; cv=none; d=google.com; s=arc-20160816; b=uonKK2XMVStSAftCLmci+MHdofLAdXxSv4ugieT7pEz2x614ETQ0PQhahEH5Ep5aah W7UtzHNAOkmcTxc9NbZZXhaymUfjVG4YcT7TzHxg6jKCAZhC8sTMw7tS/OqCKdArAHcj 0E0CKqdirI/WxC8apRu0FhOSbSuyLsSTCxylgWk1Q38hdx+dRd01O1xGBwRTm36Scq4j bK0JsKIY1+wGfRc/p8aE4do4TEFLJTFKfXIhV7jN3ky9n0dRR/YbinrhJL1Fps0Ln8fR hG3dZKcK3wQXOqMZcm+iaL0/IhCvmllod33ybZ9wJO2HfK8B/I/tpfpR5LettE7L+MBX qzfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=Z/0pv2cjogkVFhrXiDlUMAJAgEk2pgniotPeFa2SHrg=; b=pvhtG4LILaBEu6EuAILmsvyAh19+6U+Ri2Q5h3IPIQHJG4cI3wSFKLeJx5zbOsvQYZ T7Gxi0rBUCURpiBYTVTt1ikUvb3OU7joFnNF/0+IYiBaEosnNiUvS9RjOss4p8soivyd EYTgWjYB6/bw6MeaRNW+pRagiaFkGebsznIoNzQNRizwuIv32nZpJUJhYPJNkKsplSUh AT1QNIyjHsPM6XmpYSzSCsJidrzvtUh+QBm0nK59MT4BFYQ6AFa+Sm8KuP18CRo6p6yd LJ20qQ+McBQLNOBdtG8UdaerRPbUovsygUcp0Dvj/YfAJBhUa1O7e4S0qrqUYxt7bcdb A6jQ== 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 d27si1781502otf.22.2020.03.17.05.28.35; Tue, 17 Mar 2020 05:28:48 -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; 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 S1726410AbgCQM1q (ORCPT + 99 others); Tue, 17 Mar 2020 08:27:46 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45672 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbgCQM1q (ORCPT ); Tue, 17 Mar 2020 08:27:46 -0400 Received: by mail-wr1-f66.google.com with SMTP id t2so15337676wrx.12 for ; Tue, 17 Mar 2020 05:27:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=Z/0pv2cjogkVFhrXiDlUMAJAgEk2pgniotPeFa2SHrg=; b=bpfM7fpMyvcChI20yNqXJoi7mWB7wF1tSvgUlICzn9caQ9W7VKo9iasBZW+5089FPE L7tAsA1xSduHvZ2yw8Ah7jXmMEiwP24yKM3m8/n+2M1Esxwvrw2xw0T8pKylTIj3I0ff YcGkf6kTBWxBuLDRaqfvHCM8jpx+JXmxx3uXY24cvVPAPn8LIvHnngNCabOwcdssn7jX nXvMkuFBx1m+jx7n/d3FtIgElDm3sDPzsGrTejnwpNhlA2FzsVO0Yssq5Vj8rI4FUh8X ATIsNr77MxzEIlQVnwpUtyxHhF9M9BqNu7Kj/tAv19zGNEjSkCr2kSgnzDd+HsREfagb GGWA== X-Gm-Message-State: ANhLgQ2iwGxERYqbfc2ZEsO4cOzdOwaWqpY1kfv8qgsFj8O2Cqqf/T4r U004HXAoUYs5ckCXaW3Q1JDUesd6 X-Received: by 2002:adf:a457:: with SMTP id e23mr5888629wra.21.1584448063209; Tue, 17 Mar 2020 05:27:43 -0700 (PDT) Received: from ?IPv6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id r28sm4563634wra.16.2020.03.17.05.27.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Mar 2020 05:27:42 -0700 (PDT) Subject: Re: [PATCH 18/22] tty: mips_ejtag_fdc: Mark expected switch fall-through To: Sergey Semin Cc: Greg Kroah-Hartman , Alexey Malahov , Thomas Bogendoerfer , Paul Burton , Ralf Baechle , linux-kernel@vger.kernel.org References: <20200306124705.6595-1-Sergey.Semin@baikalelectronics.ru> <20200306124913.151A68030792@mail.baikalelectronics.ru> <20200309161243.D5D5180307C7@mail.baikalelectronics.ru> <20200310010653.9DE7380307C5@mail.baikalelectronics.ru> From: Jiri Slaby Autocrypt: addr=jslaby@suse.com; prefer-encrypt=mutual; keydata= mQINBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHeIdI07s1iIx5R/ndcHwt4fvI8CL5PzPmn5J+h0WERR5rFprRh6axhOk rSD5CwQl19fm4AJCS6A9GJtOoiLpWn2/IbogPc71jQVrupZYYx51rAaHZ0D2KYK/uhfc6neJ i0WqPlbt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Tpj/4rN2v3R5RW d6ozZNRBBsr4qHsnCYZWtEY2pCsOT6BE28qcbAU15ORMq0nQ/yNh3s/WBlv0XCP1gvGOGf+x UiE2YQEsGgjs8v719sguok8eADBbfmumerh/8RhPKRuTWxrXdNq/pu0n7hA6Btx7NYjBnnD8 lV8Qlb0lencEUBXNFDmdWussMAlnxjmKhZyb30m1IgjFfG30UloZzUGCyLkr/53JMovAswmC IHNtXHwb58Ikn1i2U049aFso+WtDz4BjnYBqCL1Y2F7pd8l2HmDqm2I4gubffSaRHiBbqcSB lXIjJOrd6Q66u5+1Yv32qk/nOL542syYtFDH2J5wM2AWvfjZH1tMOVvVMu5Fv7+0n3x/9shY ivRypCapDfcWBGGsbX5eaXpRfInaMTGaU7wmWO44Z5diHpmQgTLOrN9/MEtdkK6OVhAMVenI w1UnZnA+ZfaZYShi5oFTQk3vAz7/NaA5/bNHCES4PcDZw7Y/GiIh/JQR8H1JKZ99or9LjFeg HrC8YQ1nzkeDfsLtYM11oC3peHa5AiXLmCuSC9ammQ3LhkfET6N42xTu2A== Message-ID: <34627024-0f0c-f17e-a10a-f24327d28b76@suse.com> Date: Tue, 17 Mar 2020 13:27:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200310010653.9DE7380307C5@mail.baikalelectronics.ru> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10. 03. 20, 2:06, Sergey Semin wrote: > On Mon, Mar 09, 2020 at 05:12:40PM +0100, Jiri Slaby wrote: >> On 06. 03. 20, 13:47, Sergey.Semin@baikalelectronics.ru wrote: >>> 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 */ >> >> We now have "fallthrough;", so I believe you should use that instead of >> comments. >> > > Hello Jiri, > > Thanks for the comment. I didn't know about that new macro. Since Greg > already pulled this patch in his tty-next branch, I won't send an > update in the next patchset revision. Hi, OK -- now there is a whole-tree conversion undergoing anyway, so I think they will take care about this one too... thanks, -- js suse labs