Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2213298ima; Mon, 22 Oct 2018 06:17:21 -0700 (PDT) X-Google-Smtp-Source: AJdET5fwdZKHrGbzOnocccBwP8vsbqrVRnP4dEzWGUCyYScXvIxhIFrF56uXPrP6nXwcbs/QQ4XH X-Received: by 2002:a63:588:: with SMTP id 130mr1189657pgf.273.1540214241902; Mon, 22 Oct 2018 06:17:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540214241; cv=none; d=google.com; s=arc-20160816; b=UvlH4tLt/Jarqh4t43EPb3DAe/d8xpYa0LQHQSJgRys76iLv/Ldb/bsnDVJnsHDGt8 lOXkQ3xv0DFhNXwIw9b0F0oNFHIdrKSMYxz3pm8y9tvHQVKri0R58z79H6hm8EEc6nlx 5YkgifqNJDicNvHvN1kvf3yQktkCvstdrIPs9qeeTIDllFEgYtpsrlHag+jbQJMqQs/P 3U6QJ56udBLw0hTeDr+i7so8gvN2mOxMUo1ImPk7g16jagttM/DfpSL59gOH8UJqgQ7/ KUsWY4hT0GpPXNDaWlzDRv760GVT4MHjicOk4LRqlKxFLOU5wmuGRMiPp3AWPvF+KVDn vciQ== 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=tsC82Pn18BUvYoVQ5QXsun6v8FM5FlJT/C013tOgF/o=; b=fY1HPImkgU8H96O/d/S6TZRqigVTKt1wLf4O29Y7b51B0tZmDEZR5aCSORF3gssYyo ygQjQH8kMxXPie2ydU3zQgpv154a6ttOTWKl90w4oMK55EAev52ph3/7eCTwFxEBjKYS uEYQKsi/gckeUbmjmrQuBYFcTIr7EOsqLpdL8D2LZUhDv6/pOKBwTG2PZmISjaO5hDZb grQA6UaiG1WNwJ6bH6ofPU1vcwAaVgcPAycVSXM4oZWHbI+3FObN3X9DRPUSz3a0/Hch UsuTIV1T9TzhjR4pOE9ls+ZcYOtuahEAWiHOBWCnsh1gpiqz7c37IeEWkraQqAWDCj2R vfQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="o95/UgPC"; 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 w3-v6si2646312plz.68.2018.10.22.06.16.55; Mon, 22 Oct 2018 06:17:21 -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="o95/UgPC"; 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 S1729025AbeJVU20 (ORCPT + 99 others); Mon, 22 Oct 2018 16:28:26 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36955 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbeJVU20 (ORCPT ); Mon, 22 Oct 2018 16:28:26 -0400 Received: by mail-lf1-f66.google.com with SMTP id a82-v6so30156929lfa.4; Mon, 22 Oct 2018 05:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tsC82Pn18BUvYoVQ5QXsun6v8FM5FlJT/C013tOgF/o=; b=o95/UgPCL/aOEAHxnH4pT3MX+nsaNMYrnY2r8RIiDUNzkw9up40ToPTBwiETpZ2ArN +Qr5wHwSyV2MRinPnD6LHJzfEyb1ZFA3lIc1AUR/RAENfj2yb/e4B24lsVe91Aalkix2 CDRbb46yQrQ4a6Vz11WZOJDvDty7XPXUDuE+e0PeI639FpKmzUInOaMOQ8WMByTRic0d 5W5Zf+DrYds2cFR/RYKgJEra1j7uR2bN5suqslt7NEKu/sgSVmO4Xqoop26XsyeEvDQ6 Kkj6trFeg4P4iPQtJKY6QIwQOFvxShjD1Vl5uZhIjBC9bZQZk+XB2jtJCkyydlE5Hgu0 d9iA== 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=tsC82Pn18BUvYoVQ5QXsun6v8FM5FlJT/C013tOgF/o=; b=nNt33b+NEsjcu13zrFCxRF3BNfscDjAO+V83JQpWG14XvmYml1rRCAFAETYEVFqWMt /RhRq6qtGF6sJRNzq8Q6Fca7IIRBc/RefbUjFGu/600X8fVtau6Tr7NJ/OK9SbxYwZqJ H8tPm+8B0yQhYkpf4KNY5tMqnNQbSIwFRt3ADyAvzvo0yPE0rLMqZzZ9OHeUtAHAfMBu IQaCgOD3CogMN2rYMFuBM4TxYfNYW1vb+sbrAv+8tV304kLFWjQPPJ1vYIE4bkM4sszt oliRWcFCVxdBXT3xlq2xv/BlU6+ZbqtGqB7Z1EF5BgxclgN3D99y0RS9KWni+rioXqzJ cYEQ== X-Gm-Message-State: ABuFfoiQZxlVfs2/lY1UcTq9Gptfh6yqqFLupTB/9Ht4RZKpbsQTiQtg nP4+eEQxIl3VRCAZ1frje2WKgi6Ieg1YgRTpayE= X-Received: by 2002:a19:4e9a:: with SMTP id u26-v6mr8928414lfk.91.1540210205638; Mon, 22 Oct 2018 05:10:05 -0700 (PDT) MIME-Version: 1.0 References: <20181021171414.22674-1-miguel.ojeda.sandonis@gmail.com> <20181021171414.22674-2-miguel.ojeda.sandonis@gmail.com> <20181022120658.jm7dv7jiq7riuqci@ltop.local> In-Reply-To: <20181022120658.jm7dv7jiq7riuqci@ltop.local> From: Miguel Ojeda Date: Mon, 22 Oct 2018 14:09:54 +0200 Message-ID: Subject: Re: [PATCH 1/2] Compiler Attributes: add support for __fallthrough (gcc >= 7.1) To: Luc Van Oostenryck Cc: Greg KH , linux-kernel , Dan , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , David 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 , "Ted Ts'o" , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Nick Desaulniers , Andrew Morton , Linus Torvalds , Linux Doc Mailing List , Ext4 Developers List , linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org 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 2:07 PM Luc Van Oostenryck wrote: > > 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. No rush Luc! (I have sent the PR to Linus without this two patches for the moment). And thanks a lot for having being so quick to improve sparse to support all these series! Cheers, Miguel