Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2506837ima; Mon, 22 Oct 2018 10:53:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60dVPhUj18t6BM7MF6AlDHQr8ToJVH+GK9Nq2HMS46lL3ydOEF3dNLrVBamgy0CzULjjAQP X-Received: by 2002:a17:902:6bc1:: with SMTP id m1-v6mr20686792plt.274.1540230793877; Mon, 22 Oct 2018 10:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540230793; cv=none; d=google.com; s=arc-20160816; b=EMU1y/wDa76mTnMjrH6v2fSq7fLRyWD1ZHubMk2IcJDQPEanXk17e/MkAEDXzzelTl urYNS11ncZJApMisfTWYFUQaoSTAVUzHuo/kfkioKEZEtTI22yCcLTvxVfX70S6ouhTD TqJnl+l5+vvVmgRhPIi4Nymrgl50EaMGZ03jnTWdBsloR2MbG6g+DdQd0I9YM2SlOJZr qNl8C1hoOXRRfkpNjHGZX49OQycNjqQMqSotVtjnKdNlN/t9GiS8VO60M86qPoE/+611 qWFD+pA6xFdgu0Zawj4acItK9T63j7I5Z1NzagGfUq8yIFWdlcMMHON3k/GwXsz+4/VC slYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Uc26wvlO9uSCh/ATf1Fj7RkrCzIc/n2/k3zGe3rfx9c=; b=oOxjTadwVfjCOc6BIFutunSvZW7oeZTQmatW5ypSBe2uQtsdN2viTMc0PosOELhoq0 bOzX02RuTgWYFIx6stZtKF+aC1tMMuhdIlO8ylwOqmCRARd1eK3tPWAKsZvjperDAcV9 nWFa8UgdMhftqEpt7mdW5/oup3OtPr23EoJHh1aWENNkZpQpL4STowNcKQNmMIqdzVuH chhBy9ADlvRbnuuPv/KOVcf9GIgOmkULUtfOZLCQUIPPXM7Hy48ynh3BAWuSv7PIkhnM 54V8ftzbOCWXONUaTlVAgDBwzrFk8B4QuBwmBtLnRE6NE13XLitUImDbFiJB+JXEGIAd tJng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rODn+uu0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12-v6si10722768pgl.200.2018.10.22.10.52.58; Mon, 22 Oct 2018 10:53:13 -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=@google.com header.s=20161025 header.b=rODn+uu0; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728783AbeJWBph (ORCPT + 99 others); Mon, 22 Oct 2018 21:45:37 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39523 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728737AbeJWBpg (ORCPT ); Mon, 22 Oct 2018 21:45:36 -0400 Received: by mail-pf1-f195.google.com with SMTP id c25-v6so20250541pfe.6 for ; Mon, 22 Oct 2018 10:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Uc26wvlO9uSCh/ATf1Fj7RkrCzIc/n2/k3zGe3rfx9c=; b=rODn+uu0x8ErLKdAmBMax1j2cquvLGThv4G//Sn3m6CrzKGGbDmSZSnyJQPBZHhZC6 ofPYu2wVC/3BSPrkFqhKkWhrS3YTVNfCVKzLWJhs1zTZnrmaXciKVAGs2iiQwkX4jinl JpcZe4sq74nYqFFCYE/BN7jlCDXkpjq3Qk9CqtHEiU9WPuTZ8BFDZltyDJdLXVuNefUg KRZ4YAq+8v1EA2pdUBB/mXFruR8CaJNJW7HHqQANxOkdDrmwUe7pMPN8QbmPbFkRMOjB J1QlTB52H4JKkSyOUd271vOOXTUhohpe1yuaMHN8GPF/LaDieY2UDQCICKtbYrjKtbdy ob/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Uc26wvlO9uSCh/ATf1Fj7RkrCzIc/n2/k3zGe3rfx9c=; b=M9Rprwp337b9jo92v2qBvTutQ3i95rJH0SJKjMuw7bxMCyFjwPgGyw8dGoiUgV4yAs Tx37U58Pr+6vEdnl5P5aNbkNHIE/fpWkB2B03gE5Ubw6zLjOCkwwtjXQpVSqMYjurpqP B1waD9S/yMNmpGuvMy5RTb5/yW1YSgnMXF9kbrnN8LMJUp4FjmSf6BCuXihNx6H9CKag h5GTO4oBbn8x8OHNAI/l0V2FCULqo5UFElnJ8e+w4EgvuQTvrBqx3AfXT5nfzhFS0TAC a7U7H1CAhjxOKtGZthlSAsVOmAjDR0biEq107dWDWm2QE8Gp7p8YCVKo1UDQYQBCHHvO 6dUw== X-Gm-Message-State: ABuFfojW236amRwxvZ2hzbIotPTjIdHe2OZ8RViIdR6RVrY2wYRCY9um b18dsdzhL0Yn2+C/m1dYS1gbaPO2rEVSr7fOK9LjvQ== X-Received: by 2002:aa7:88c2:: with SMTP id p2-v6mr38874608pfo.32.1540229172220; Mon, 22 Oct 2018 10:26:12 -0700 (PDT) MIME-Version: 1.0 References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021171414.22674-2-miguel.ojeda.sandonis@gmail.com> <20181021222712.GI1617@thunk.org> <8fb78062-b6d4-6f2d-d943-44bec6b95ff0@petrovitsch.priv.at> <20181022102743.nua5fgbscyeymzal@mwanda> <1474d995-1b5a-2efb-f077-33eb4a5d9e31@petrovitsch.priv.at> <20181022105314.j6djkrpwbnokhai5@mwanda> In-Reply-To: <20181022105314.j6djkrpwbnokhai5@mwanda> From: Nick Desaulniers Date: Mon, 22 Oct 2018 10:26:00 -0700 Message-ID: Subject: Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1) To: dan.carpenter@oracle.com Cc: bernd@petrovitsch.priv.at, "Theodore Ts'o" , Miguel Ojeda , Greg KH , LKML , adilger.kernel@dilger.ca, Masahiro Yamada , Michal Marek , rostedt@goodmis.org, mchehab+samsung@kernel.org, olof@lxom.net, Konstantin Ryabitsev , "David S. Miller" , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , sandipan@linux.vnet.ibm.com, Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , paul.burton@mips.com, David Rientjes , Willy Tarreau , msebor@gmail.com, sparse@chrisli.org, Jonathan Corbet , Geert Uytterhoeven , Rasmus Villemoes , joe@perches.com, Arnd Bergmann , asmadeus@codewreck.org, Stefan Agner , Luc Van Oostenryck , Andrew Morton , Linus Torvalds , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 22, 2018 at 3:54 AM Dan Carpenter wrote: > > On Mon, Oct 22, 2018 at 12:45:03PM +0200, Bernd Petrovitsch wrote: > > It's more like > > ---- snip ---- > > case 3: > > frob(); > > __fall_through; > > /* no break - fall through */ > > case 4: > > ---- snip ---- > > as "eclipse" doesn't accept anything else. > > > > And yes, it's far from "beautiful" but I hadn't time to dig into > > eclipses innards to fix that. > > > > Doing both is super ugly. Let's just do comments until Eclipse gets > updated. Eclipse as in the IDE? https://bugs.eclipse.org/bugs/ > > I had wanted to move to the attribute because that would simplify things > in Smatch but it's not a huge deal to delay for another year. > > regards, > dan carpenter > -- Thanks, ~Nick Desaulniers