Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1871428rdb; Thu, 7 Dec 2023 10:56:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEs+/6Nb/oZSR0k1XdEIHtLYGswoD3gdn2PMylKvHBCFXzLO0whcgnAiTuCIDVm0SOs4P/z X-Received: by 2002:a17:902:ea0a:b0:1d0:6ffd:837f with SMTP id s10-20020a170902ea0a00b001d06ffd837fmr2856518plg.138.1701975401750; Thu, 07 Dec 2023 10:56:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701975401; cv=none; d=google.com; s=arc-20160816; b=bNTZUjngoeawTYxl8el0FnjmQjp6qs9XnTz7ihCQmKFOhF8yq+ddDTTLzOJfbbFV9w X6xqNAaGc+Yt0LE31D81MPAKlLByopSqq0gzXoHjLg6AJHMxSl/21qcPCHndeY/kJ+SB z9plEHuozg1HohWH7oDiYtfN+3L0zKnCDISBHgT3zQT+wF5EfHQigEjL3gk5K2QDYRpj vU8hb2xJpuf2gaZvR24Py8bY/COvcJWR7vRyynhcJhZ7proqOYC6EIjiylbtMLqZb3rJ l4HLGEgZLda9Gc0byN9Mueb9vtKMl3/jwXzl/LesUbJ1cPyxMapZTb5Irn6I+Tjo8/Mr 6a/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=B9iuOWRzedEYHxu9/L8wshxx/nWb+i9DEz1RpHNDk9o=; fh=r4whK/hmqGwSqrIR0RlroTMhaO7e0di0Jmc2eSACNs4=; b=hA+8EEQwI+q0S5yvUEDmuH3KQvtyjpQl64gtKg4lGk48f22/XpBPBqugLEPlhAQGpy 6KiNwSFv/BK49ljq/KZs/8JEpTGDb+WNgOATLqam8uplCwhC7XApsQwpdo12vmswKip5 DK6FN7Peza9nyupmYD6QAfyLbK+29LrdK+d/r7Rnj/ytTVOn3jNBVBOJiGkvvIexWIfw hEKxZIkWI/RX37EiO2F/eOIPM436IwUxJEeqZF5bk03bnA/0zwpApWsy0yarNphDfA/+ cJxk1rFoNUj8WIZWjZ51AWvqiHrL8BMoapxZVyC12cEsjbSyk1q8jPAf0mCP+U5SDkNA 4aRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d16-20020a170902ced000b001d09aec8a00si177976plg.371.2023.12.07.10.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9831F8028BAB; Thu, 7 Dec 2023 10:56:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443286AbjLGS4U convert rfc822-to-8bit (ORCPT + 99 others); Thu, 7 Dec 2023 13:56:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233073AbjLGS4T (ORCPT ); Thu, 7 Dec 2023 13:56:19 -0500 Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB05E1703 for ; Thu, 7 Dec 2023 10:56:25 -0800 (PST) Received: from omf17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id C679B401F9; Thu, 7 Dec 2023 18:56:22 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA id 3B73B1A; Thu, 7 Dec 2023 18:56:18 +0000 (UTC) Message-ID: Subject: Re: [PATCH v3 01/13] scripts: checkpatch: Add __aligned to the list of attribute notes From: Joe Perches To: 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, marcelo.schmitt1@gmail.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 07 Dec 2023 10:56:17 -0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Rspamd-Queue-Id: 3B73B1A X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Rspamd-Server: rspamout02 X-Stat-Signature: uc1ruosambyhhk1jej9gqi9e1oaeh155 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX188AVrchA8Q6aSf2ubwLQwytSUKZZesA8Q= X-HE-Tag: 1701975378-987312 X-HE-Meta: U2FsdGVkX1+CjSoSgA4ZE8tPllT47ZdAoJmXNslwU/RdfB9ysc18qu5HDv/6UxcleLmTGK/xkn9Crk4a0B67WkHfmt5oOKGXXZandu+E/HzSP+oWthr6rm6yzoYJmAA7i5VALJXVA3n4Y36OKkM62KcwWVxY4XGB6CeA9rYvioQ1Gl6DVSBzE8NuJGpwpv74aCXVlhLG0WnOdaU5RE8Kqwz2ja6pUMPtmiGEB2xR6/EOLrBPmq/zTGR5nqcJh6DYGk1/Iv7YN85Ep1EuFNhKNfPeZ9kZgiEqWOP/3OC7YR5LfPStgN5p1Rpq+gvkEg+5CbJINLb08STI2YpAOkWEv7WNHylca8Hiyg3x4z2SgBS+tvm0qIoZgggs5kBujoLD X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 10:56:38 -0800 (PST) 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));