Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2296193rdb; Fri, 8 Dec 2023 04:21:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+4GJmthunWsWkwzbiON2qrFHGIDI9dLArxoMQ5NY5HukLXJ/YKKpjtaYclhZ487IlCYdY X-Received: by 2002:a05:6870:fba1:b0:1fb:75b:2fdd with SMTP id kv33-20020a056870fba100b001fb075b2fddmr4842563oab.116.1702038090407; Fri, 08 Dec 2023 04:21:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702038090; cv=none; d=google.com; s=arc-20160816; b=vYJQPlGzR4EtALKb3D/7I8Bhj6yIVMDynZ2BGQL1wjgW+6c4dR3VPJ7oxzYjFSzNVo xvLql7bfdOWY3t1f+fvWog5tHtQsTU9kXtXjvWEgCoAySclzerx96mzJL3JqyM9wVEdK vTPpZfuBXuozPjmUWm09ekjhDhcPjuEtSGwgUdjiCHNdNGrcWg2nDKKw7EsjWWgoVVVd gnLr4SHLlPNBzsdscOVQK5BddPxlb2X8JQVjKEl5P5hckTmbXyICA03UMoY6wQ3J+Z6n sZ9lZMCJiFbFRkcvZPr1SSABEagk2wxmvYS11HEQE32vZmOEk47BOdr4TjHhDPXZDx5e AEDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HBylJguRLtCHJTwufQYDaqjtAAVjosYGjLO6kCTyNVk=; fh=1LuzFSb9SC86etZ8nAlgajS3HqIxARrHkVoXmbPtopY=; b=eVsObsCHAte9MzWrUO/vUb7r9HYRY7P4Amd7qdrZIXGmealuoyyFjS9N/1UVh3WJgO F4wVha4tvGgpXG6LASodSyVsRfHfx+6Mj22gWYfLvBZQxmCFrs2iyAmq9Odwoo3iosCj 1KqVZQ9vyGQuy9JVMOQth+aUIVMHu3frWQoiXBsXDuJkDoGflJKVFh1A3Kqb3XCozdqO QXkIOc+04u0IaC2ldDof+adKte3Varrl0sKNKoufiCtwb4wlRZdYXUs0VZ3IyXalUO9E UFIgrMnqk7r/ddSK1xdD901MewZCJ0jgK9D36nL/NJvxSVRHCkwIz/sCvftASpIunusX JtIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="LuT/58I1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bo7-20020a056a02038700b005c637e836cfsi1563330pgb.885.2023.12.08.04.21.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 04:21:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="LuT/58I1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8C58A8080E04; Fri, 8 Dec 2023 04:21:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbjLHMVL (ORCPT + 99 others); Fri, 8 Dec 2023 07:21:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235881AbjLHMVH (ORCPT ); Fri, 8 Dec 2023 07:21:07 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60E9719A5; Fri, 8 Dec 2023 04:21:13 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6ce26a03d9eso1511475b3a.0; Fri, 08 Dec 2023 04:21:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702038073; x=1702642873; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HBylJguRLtCHJTwufQYDaqjtAAVjosYGjLO6kCTyNVk=; b=LuT/58I1mwKjxmk524Z8WM/1YmKuvxHt5/LbppJYNCas+jLMgwmdz8/R+4QMU2V+VM 5iFLbYqhWAvF2BPhglGA2VeUN6ai1WAggcP3eL7N0CTc8dViW00xIRmZ7bZslZUBx/G6 IlgPQ5Op1k2M2nLRFVqRtUnx7pm8rVs9cEJREwRzYEhSeFvipBnhVYb9MwcatPpx3VeH uZiq/gNxdCcgIBU2xYd+fvzVNzDxuynBS4sKKGxkf+iTklF1mrERABEZ3+JyUSWdGPU/ +M+LEGxAT5Wn3IrxMFOcgaUh2ITm3OC4fao9wiYmTT7AjioHRmJxGB1ciw2fh7+d4VHs On+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702038073; x=1702642873; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HBylJguRLtCHJTwufQYDaqjtAAVjosYGjLO6kCTyNVk=; b=AKN2P5o80cybba3rMd8mU3hRtD6kDnsXyePROwYQuslyB29yEtzhBJUiPv9Yuv/hv4 Grx9rGTVVfE3PxHLzYT9hzZ4iaixneJ4lOwz27zVbysKA68uqvufEk1tLTj8XVuoC35e 4J1khic2r54sUOJgdj2kWs9AudP+5PR6udWl7Z8OGHLLvJdIsF2tPQJop+qIDpJPl1qR 7mY2Ml2jzyIFxNXwtc3xuhRz1KRekNDQdtCSvyEpmLxf2Y5ZL5O59Dzj5x3IsPccu0/p 7Aw9Bb2luRgmfiSv2Q61/EQCU86ITC3rcEpJspdZizATV5n5tfViJDz+AgaXPBC4/unN 17/A== X-Gm-Message-State: AOJu0YxqbCP51TXmlU4dKKQXqZw7Px/USgr1sunHCj/Mt0t4gn/AM/nD iyi1nX6Pfh8FxlqRhCcU0nY= X-Received: by 2002:a05:6a20:2618:b0:18b:31eb:8b66 with SMTP id i24-20020a056a20261800b0018b31eb8b66mr3058841pze.50.1702038072764; Fri, 08 Dec 2023 04:21:12 -0800 (PST) Received: from localhost ([2804:30c:95c:8600:5b2d:e35b:5f45:dc84]) by smtp.gmail.com with ESMTPSA id e14-20020a056a001a8e00b006ce6bd9703csm1436765pfv.194.2023.12.08.04.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 04:21:12 -0800 (PST) Date: Fri, 8 Dec 2023 09:21:00 -0300 From: Marcelo Schmitt To: Joe Perches Cc: Marcelo Schmitt , apw@canonical.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, paul.cercueil@analog.com, Michael.Hennerich@analog.com, lars@metafoo.de, jic23@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dan.carpenter@linaro.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 01/13] scripts: checkpatch: Add __aligned to the list of attribute notes Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 04:21:27 -0800 (PST) On 12/07, Joe Perches wrote: > On Thu, 2023-12-07 at 15:37 -0300, Marcelo Schmitt wrote: > > Checkpatch presumes attributes marked with __aligned(alignment) are part > > of a function declaration and throws a warning stating that those > > compiler attributes should have an identifier name which is not correct. > > Add __aligned compiler attributes to the list of attribute notes > > so they don't cause warnings anymore. > > > > Signed-off-by: Marcelo Schmitt > > --- > > The patch that would trigger the mentioned checkpatch warning in this series is > > patch number 12 (iio: adc: Add support for AD7091R-8). > > > > scripts/checkpatch.pl | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > > index 25fdb7fda112..e6773ae0ad08 100755 > > --- a/scripts/checkpatch.pl > > +++ b/scripts/checkpatch.pl > > @@ -512,6 +512,7 @@ our $Attribute = qr{ > > __ro_after_init| > > __kprobes| > > $InitAttribute| > > + __aligned| > > __aligned takes an argument so I think there needs > to have something like the use of __alloc_size below > this addition > __alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) > > maybe > > __aligned\s*\([^\)]*\) > > though even that would work well with most uses it > would not work with things like > > drivers/crypto/inside-secure/safexcel_hash.c: u8 cache[HASH_CACHE_SIZE] __aligned(sizeof(u32)); > Will think of something that may work for all cases and include in v4. Thanks