Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1075458ybg; Wed, 29 Jul 2020 05:17:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK+22gl6tMesWJAMuF1Ian4GMWNR6sdEtigZGK9KdlhqW5C57W2oY11XXSBw1xvCH9lzo2 X-Received: by 2002:a17:907:36b:: with SMTP id rs11mr11353757ejb.544.1596025063549; Wed, 29 Jul 2020 05:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596025063; cv=none; d=google.com; s=arc-20160816; b=wnmqS7m5eLWOGmBvdIzrpZ8V3v0AtOLD3cQHYbMsp0q52vRBKGth8UklbOCyYcREjg /63jkCf+/tHcP3YyVtfZkGxmYFclXwwSWc+X6KcACv9gZw5ivIIuCu5N8yY/kk/lsewV e/bxyP2jN1RfGfqzi+lWQKkuNy5gK9QIvyC8774HmEvNMvmREUa12rSWF8We+l1kIB6X rUcE4oD5hsHbFi6XX87hIWMyTRlI85nJ/ye7MYCXK4ZJOskD3rtrFWVQbXvGxB+8XdGt EK+JD0IJDWe36CESkLZna9tE4uuGobYcRY1pfpTfEGF+uEWFmLcljySJIvTMbp8eTIis ulmw== 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:from:references:cc:to:subject:dkim-signature; bh=sFs8HR0J1hVN4rEPAJYUN8DJiN6sjaEnKfPmViSq2uk=; b=SqqWP4nQ/TaLltivW0+/CEmJB/fBuXZxmV1sW9vXNPXIW2zhVpL0ooAyc2b/jF64Cd fXhKpxV4s80rNQ+OVodhXn+dde6atD8MYn9FTgr1iO/AegWE8Y6/MStiBd9uR6mUCcet T04KJmOR2RQueCRRJOUxZuAZdVr3NPJZ//BjH4ubTg8Ozfa5J/WMVWvx7B0ECQhkJ0CL oeAddb36zwU2ZIX7m2h4Ok20t8esUcQBffy7iU6s7+D1lSJP4Fc68tS/92gVByQNihTF MvwU9JHEQCkOlRgDTHcn/5oY3aVaaA+BjamNu5BUZ6FeSzAG4HlK9bvsz199b0MlAcr4 +Nwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MeHUKee9; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si1140022eds.205.2020.07.29.05.17.20; Wed, 29 Jul 2020 05:17: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=@linaro.org header.s=google header.b=MeHUKee9; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbgG2MPP (ORCPT + 99 others); Wed, 29 Jul 2020 08:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbgG2MPO (ORCPT ); Wed, 29 Jul 2020 08:15:14 -0400 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF49AC061794 for ; Wed, 29 Jul 2020 05:15:14 -0700 (PDT) Received: by mail-il1-x144.google.com with SMTP id y18so10739372ilp.10 for ; Wed, 29 Jul 2020 05:15:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sFs8HR0J1hVN4rEPAJYUN8DJiN6sjaEnKfPmViSq2uk=; b=MeHUKee9BDzkM/xLCyLYVR/+wuj1bJ7X7td3l8Fhl1cuidmJv3z+ZQCcKd2pK4/yO+ Fzp4/ZSJfh6qMEDlBjrzCa4UWC4vNECNyJ04ahIia3lP8g6OUZ2rbgwgieZrD6kRha4l jF7af35/XauxtwMoYoLmhPZFJjDAdzMPDlCfheHk0YAMO8/VgL1oXbg3JwVR/Dr+ZwBU SBINj4cYKPxvQbrIPp56sjOBwzPqd0ZvQ4E+cAUS9De5OV7im5A29qm7zc9CHAtEBdc/ TNRsd5SH3K1maue1ZOlTlKs88xUKjp448ZKIqjrrqdCNTgk7IqZc5l6qutFvteh9yFPo A6BQ== 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sFs8HR0J1hVN4rEPAJYUN8DJiN6sjaEnKfPmViSq2uk=; b=Oco8JP0v8cSslOTP2tyIgo5XRtIq2mtkOFoXGn8hLOk2zE3OwePSnE4VZBlDVuBh+H DYHbnXpfobNziZd3N+SkV3K0uxtu1pRFPNgOC4OMHctwh9dee82UybhgIIxOOKA4Tc2Q g6PksK9y82ciGbH0vF28HUrCYJbgW4ijd5TtEfIQM3D56feNLkuO02Xln3IUD+e55cJX ORfNtpRvIclg8GWm3AUjrkR5PuWKLZyfNgCySxifMAX1KgTXnhQVOPUikiz1ZCuhkRuh eaz3HsgWfNuzYCLnHZwpVFLIE/99MU/ZIz13yKLnn5EQs/1QNRarFFKMfm6Qi3hlSiSn zNow== X-Gm-Message-State: AOAM532f2vC9fWilxMiAAAJjzl0JBhAWNBVQk2ocABa56EZpiB10Mxxa 9D23fVXbHNHMCivsLEwduT/2gw== X-Received: by 2002:a92:1b12:: with SMTP id b18mr23978290ilb.42.1596024913984; Wed, 29 Jul 2020 05:15:13 -0700 (PDT) Received: from [172.22.22.26] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id v87sm451611ilk.33.2020.07.29.05.15.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2020 05:15:13 -0700 (PDT) Subject: Re: [greybus-dev] [PATCH][next] greybus: Use fallthrough pseudo-keyword To: Viresh Kumar Cc: Alex Elder , "Gustavo A. R. Silva" , linux-kernel@vger.kernel.org, greybus-dev@lists.linaro.org, Johan Hovold References: <20200727183258.GA28571@embeddedor> <63871608-e076-26b0-85df-cff11699c3a3@ieee.org> <20200729105157.6acksxuzjdno5omq@vireshk-mac-ubuntu> From: Alex Elder Message-ID: Date: Wed, 29 Jul 2020 07:15:12 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200729105157.6acksxuzjdno5omq@vireshk-mac-ubuntu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/29/20 5:51 AM, Viresh Kumar wrote: > On 28-07-20, 17:37, Alex Elder wrote: >> On 7/27/20 1:32 PM, Gustavo A. R. Silva wrote: >>> Replace the existing /* fall through */ comments and its variants with >>> the new pseudo-keyword macro fallthrough[1]. >>> >>> [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through >> >> Thanks for the patch. It looks good, but it raises >> another question I'd like discussion on. >> >> It seems that Johan likes default (or final) cases in >> switch statements without a "break" statement. Viresh >> and Bryan appear to be fond of this too. >> >> It's pedantic, but I don't like that. Am I wrong? >> --> Johan/Viresh/Bryan would you please comment? > > I am not fond of them as they aren't required for the working of the code. It is > a bit like using an empty return statement for a routine with void return type, > though it surely adds some consistency to the switch case. I understand this perspective, and it's exactly why I wanted to have a conversation about it (rather than just saying it should be fixed). As similar example, I don't like unnecessary parentheses, but sometimes it's a good idea to have them. Thanks. -Alex > But if people really feel it must be there, then its fine :) >