Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2159225ima; Mon, 22 Oct 2018 05:26:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV610XSAZxV7CZ7Uhik6py5oG6F5mZOCgzWKM79m8f4HMVD9+9y1LwMS3FKNxjy6MY2YPOBo/ X-Received: by 2002:a62:8f0c:: with SMTP id n12-v6mr45947686pfd.172.1540211165244; Mon, 22 Oct 2018 05:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540211165; cv=none; d=google.com; s=arc-20160816; b=W9P5qBxmP1GiFkYUCo1B8CPpH+9K+7BObCkfYMDrJtZ5x/ThJxBr8sRf3LNngPW44f NRKBaANIozXtYPcZMtbOhkdozj1rqm9s334lXsiOlAAmzHxdHswh1RfShk1orr4+tSDN UGz7LlldXT+qbBQsCtfXtg/ali9uOK8lQHX/z2B2zq2RpdeLbtJb9/dgIuOQCN1KwIse nY8DZYV3ldEu48VtF0nEIOuzSimCwDo3g/RfFBeFCWZ4+kqQSIBgg6NorgItTKoxVN6G oOhMt6dq6wX4Q5Yrnr6O8fq+jS7K+sb6WGyYrb5plWu9yr3pq5c4akyhhs9IOnryT0Ax XHLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZsbZ57fCsmzw176SsPwxEiIqrGSAPMgNXx6xKcWDpBQ=; b=zs/GQ2I4fqE4uY0aBl80z36XI9flCzaq7GY0eD6qaz6eMLu7I/3Cym8PeOTGqbwTZL 3q7WBuPrugqnWaa8YH6IYwjrtLWals5dgUxzMWB7cLljT261WdEVkpNraH35FbwLkaWG O4Csxq6IoikdNKt5w4QEIZJppsQXjbXHRJ0k6R4IsfLlqegesHKopfIteReW4pLgKuVD yUt4CZCfoiwrP8e5vilepQatAZGDer8FkYKTjdw1P6UJguv5lqghqtTY+Ux8Vy3ToWRD Mc2zFUOpMZs3wxlhICBA9HY3xUnXxeB108TJtyo7K26QqU4obh3B9puVvlVRmVvQWG3Q uWzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kAhEWmiC; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8-v6si33359373pgh.447.2018.10.22.05.25.49; Mon, 22 Oct 2018 05:26:05 -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=@gmail.com header.s=20161025 header.b=kAhEWmiC; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728658AbeJVUZ1 (ORCPT + 99 others); Mon, 22 Oct 2018 16:25:27 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35988 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727774AbeJVUZ0 (ORCPT ); Mon, 22 Oct 2018 16:25:26 -0400 Received: by mail-wm1-f66.google.com with SMTP id a8-v6so10050742wmf.1; Mon, 22 Oct 2018 05:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZsbZ57fCsmzw176SsPwxEiIqrGSAPMgNXx6xKcWDpBQ=; b=kAhEWmiCpjIDNGMC8dkcpT+4kPnx3eOXzKmR+5CABoflyoJGSWAVy0k8L1heZzUh0f pFOwTFEQAJDuG6b2vH1L2KlhYfwhVm18bhvXgO0kVip6LnXo88oc5eIjPwgl0n0/w3q+ a3J2anXE7t4RmrxLoofpXNl3Atvjg7YuMSLnCFQlHagV2Yy5/YE/rCVzHxIg2gkF4A76 MNRBNAHtQ3RifG7AlQvulMpPNRa/o/hQvXy36Rb86TbEtnrgvthJE+07vlDk/yQi8auA VOT5ofpJty4uZNbsBxkVkJPgE1RMpzjP+56jOLEJHroS7aQoa36RZH7zAc4YGm2j1LzW Rl8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZsbZ57fCsmzw176SsPwxEiIqrGSAPMgNXx6xKcWDpBQ=; b=FHPOurDIRnSWmzAmY/yUHadlMHP4M0k6//p7wUqKw/oyoSUBQGtGgsEqjEiq/WMa3z zLJniX8zXkktrPPgE9KNOU+7ZRPcuq+CjNwOgvt10u/AcfXOUbbS3TjCMmTfKR83lSit sqWeg287sEB2qQ+SXZz1z+yEGWs47/xO0Brj102Az91wqyZTvmJDQ2GAJ5RtKBzzHltp ZB3z4+rmLnaDy5GvF5mialQbR3GuOKYUoJ8P3+5kRnQimyRL0rfD+oGj72tm/68HUUMf w3Ta30bZNUVwl3g6qclEo6yl0m9p1FOfh6PX1o0PWnV8iBc1xjejtn0/UjPjFNavHco8 razw== X-Gm-Message-State: ABuFfohkibN53kHXoYXfOObCpyZ+PWILbotw8GR4VmYSJ4lgHuX0qZqO S7mZOkOq4tRh7KGuTW/qyrY= X-Received: by 2002:a1c:890:: with SMTP id 138-v6mr15058491wmi.128.1540210027473; Mon, 22 Oct 2018 05:07:07 -0700 (PDT) Received: from ltop.local ([185.7.230.215]) by smtp.gmail.com with ESMTPSA id g186-v6sm12093582wmf.19.2018.10.22.05.07.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Oct 2018 05:07:06 -0700 (PDT) Date: Mon, 22 Oct 2018 13:07:02 +0100 From: Luc Van Oostenryck To: Miguel Ojeda Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Dan Carpenter , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , "David S . Miller" , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Theodore Ts'o , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Nick Desaulniers , Andrew Morton , Linus Torvalds , linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1) Message-ID: <20181022120658.jm7dv7jiq7riuqci@ltop.local> References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021171414.22674-2-miguel.ojeda.sandonis@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181021171414.22674-2-miguel.ojeda.sandonis@gmail.com> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 21, 2018 at 07:14:13PM +0200, Miguel Ojeda wrote: > > While comment parsing is a good idea to deal with old codebases > that used such a comment as documentation for humans, the best > solution is to use the attribute: > > * It is a "real" part of the AST (=> better for tooling). This will create a problem for the recent versions of sparse which support __has_attribute() because sparse falsely pretends to support this attribute while, to play nice with -Wdeclaration-after-statement, it needs some adaptation to the parsing (it's actually seen not as a statement but as a declaration). I'll see to fix it this evening. Regards, -- Luc