Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp755343imm; Fri, 31 Aug 2018 12:20:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaArs+341sQVTYRYY4RawNrbJxQIMaLpCaWl9nE2x/PKmqhzUsg0znLKyWnk+EQ/0dEAsur X-Received: by 2002:a63:2701:: with SMTP id n1-v6mr8000832pgn.146.1535743212637; Fri, 31 Aug 2018 12:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535743212; cv=none; d=google.com; s=arc-20160816; b=HlkuQ8n0kAyXqUVjJQeWI90gQbYTMh1GgPSb1uxk8ZNwScrZqVXUHH8NzW4N/1+elW eAEbVjqAMIEJB3EqaWScs40sYd6I3h7U51O1iU/iEHwvwKZNO7zVK2jkxd7ZBkvcBVPd QWHniTDsI6KrjJILXgZjMzeiFQa8KEBLQ0AwtwNw7BHGTG7qNinUgSd/Ne5LXOkMzLt9 fXefAzYtVv1LdlJ0OPxuWL+dwPvv53q7YpY/WPCG3iEWj4BuGZW0DmmGAJfxx7Vy0qYB 9g7ptRoH+dkh+nlQMHbzDdRF0FSEwfT+jrXjdYd3Du+1xPZasn0j074NY6+DpqvoG4h1 IbPg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Xxsknbdg6ezpXaImPpBrSueOhH88nsn7E5TIwN+Fe+s=; b=OUO0WIsGmtm5dB7jlzoT+jcfdRAqlPE4+uiXt3fhgZ0IHmRSi13mwak6hp/1FOY9MW WZILVZSXTdhJKK5lLXXleOq2aN0sPtbYAbC5fCaurRC900r6Z1IJuyLX5puWY0aHM1bD NIanlKF5rX5Te7RQDGp5oX/I1AkUNyYADcVMlts6LgmX+L5DvnYPygtwdf4fs24ZGthg ebd9YMWi7EpyKZ+lBkPjM/yAFPT8gsfXUvzGLGVN89Z4cS0OPc5V8BKpWKFY2xIk2l0z pNOwYIgkjvrDoQgfGVLlW1ppBODuN/s+KawOvJwMdi1Vgw9xqgnvSXjG2jlLxsiw6HkU ZbSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B9eq72w2; 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 u26-v6si9409601pge.590.2018.08.31.12.19.57; Fri, 31 Aug 2018 12:20:12 -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=B9eq72w2; 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 S1727514AbeHaX1C (ORCPT + 99 others); Fri, 31 Aug 2018 19:27:02 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36842 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbeHaX1B (ORCPT ); Fri, 31 Aug 2018 19:27:01 -0400 Received: by mail-qk1-f195.google.com with SMTP id 93-v6so2103816qks.3 for ; Fri, 31 Aug 2018 12:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Xxsknbdg6ezpXaImPpBrSueOhH88nsn7E5TIwN+Fe+s=; b=B9eq72w2NAtUuzbtIervui6AGcftF8IdS3Mvf9gq0ThicAytuQBozYjhTVTuQwryUL siBsZPqqpAwwE5LSEEnghUR2G2fJF9E0ffjqaxNVdt9n0BIvei2WY3Z6eR7EOABO+T1Y XxO1316730nsz7z6KpUTqHUUkF5uffWkhMUkke3acW3D6Afwwg4xVEjvUlI4YjAUtO/y 4pDYXn4tzfz2gzjpi/+0sl96JCj4QWHZsL4vIn9If1fc1/FMT6lCNBLTvw/vgshm7xxB KAiB9AszC+fQS79Bc/cuXod4yMiH0HV/ZKyMIyxCtrPIChF/YJYlobKDkqyxxvQubVqr JGqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Xxsknbdg6ezpXaImPpBrSueOhH88nsn7E5TIwN+Fe+s=; b=K5Op1rPbRqDDO7EeuabUE88vGFZt+MCrQdcI/egAHkawg6bnKeaNMPW8NE3YKN3Dki ZitZtaEtRhHr4HsWzqisx0lBCNZDEX97aXrtbtW1oexEenPsksZ7PKzeZQF/JMsTS4HD 7ks5PZos2oC0CwUpAkWmVw+jMw/izPv8LEroU/5kad/mMUJV1d2pUB8WkLlcLr+OIdD1 cIqptda33OvuTnWq7fZXJM75wsdNoTSGJpzcqOBw7nW+NsOqs0qfpare5z2+M4FWjx7d 9R4J40g44UyNxXTVTaj1i4CZ691yqzdmNLTxF4qF/ls2QxlAsPnPGFOq046CyEnueeuW QQ/w== X-Gm-Message-State: APzg51Cjl/oHgi7AdZ9IlsSSOmfWEeKFLYI3pBaM+s6JDvBn/UToLvdi G2eyJF7T/dR2E8Ti/CCSPnf+p04ZLrgmqYot2J0= X-Received: by 2002:a37:1383:: with SMTP id 3-v6mr16352955qkt.129.1535743088604; Fri, 31 Aug 2018 12:18:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:2291:0:0:0:0:0 with HTTP; Fri, 31 Aug 2018 12:17:48 -0700 (PDT) In-Reply-To: References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> <20180831170514.24665-2-miguel.ojeda.sandonis@gmail.com> From: Miguel Ojeda Date: Fri, 31 Aug 2018 21:17:48 +0200 Message-ID: Subject: Re: [PATCH 2/7] Compiler Attributes: use the no-underscores syntax To: Nick Desaulniers Cc: Linus Torvalds , LKML , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg KH , Masahiro Yamada , Joe Perches , Dominique Martinet 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 Hi Nick, On Fri, Aug 31, 2018 at 8:51 PM, Nick Desaulniers wrote: > On Fri, Aug 31, 2018 at 10:05 AM Miguel Ojeda >> diff --git a/include/linux/compiler.h b/include/linux/compiler.h >> index 7c0157d50964..e0e55eb3f242 100644 >> --- a/include/linux/compiler.h >> +++ b/include/linux/compiler.h >> @@ -23,7 +23,7 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, >> #define __branch_check__(x, expect, is_constant) ({ \ >> long ______r; \ >> static struct ftrace_likely_data \ >> - __attribute__((__aligned__(4))) \ >> + __attribute__((aligned(4))) \ > > Can this be __aligned(4)? As in make use of the newly feature detected > attributes? I was thinking of doing this in a full conversion over the full kernel tree in separate patch(es) after the 7th (maybe for v3?). In particular, aligned and section have a lot of them: * 349 ((aligned * 66 ((__aligned * 76 ((section * 48 ((__section As well as others like: * 218 ((unused * 14 ((__unused But indeed, good catches! These ones I can do it directly here since I am editing them anyway. > > With the above changes requested (or follow up patch added to the series): > Reviewed-by: Nick Desaulniers > > Also, > Series looks great, trying to provide reviews one by one, just very > busy today (and Monday off). Thanks a lot! Cheers, Miguel