Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4285297imm; Mon, 8 Oct 2018 19:08:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV62EbpQb/c/CsJM9YR+nwmcJ4lVeOAf/FXBlaage36F6v33VHP1MCFoTcI/40aAknBfwQ1Uo X-Received: by 2002:a17:902:7b94:: with SMTP id w20-v6mr26452263pll.56.1539050903228; Mon, 08 Oct 2018 19:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539050903; cv=none; d=google.com; s=arc-20160816; b=oQDmcvtpE6S1gQ6+ZupHoXMdNC49BiDEQ3pnD99pmqhvH+BcnVHQ27FlikFZkngsMd 6unoN9zvbm1Gcw/sJgAkYD3GAIh52GqcW66+z9fUOqK3275A/5KZhi+dnK+8OK7YrUuc THeSnpFiMyepXhwzyRSMqSSMuNGuu2pB8m9ntIfOYN/SQnRRX4pO4/fLfEEgoA2mSmjA nzt0wiERxeVfJyMWCfqOWtwnZua0A9AcmXvc5iQbFj/6QmDvaU128KSy54OHBTFeh98B SbREKqZeb7OCqAPGL3k8cB3o0Gmk9Ftyww6mjGx7kP95KqLM+YPc5yfVigxOpR41Fi34 FFCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=UoCZc+m7y1T21nw7p3qw+4leUUTagOUUymX5o6yKYIg=; b=g7kq2a+gPJWxRNn8D7AzfsQDNikE0wsutEnAGVDu8EvvJv1jrf/cklKZtz1iLSJdJb 4iwHG3mnfcZ2nqbPcTns0D1wtu23RRrLakPNlKh0nP2jUiYtzUQnh2uPZ/XuyFaSRz84 /mC4LjbdVTMAoYjub2F7fZUDk59vyTlP805hj/7pC6Ro6jQ0GxjADUq8BlqEfSmE8gYK v4fRGy0hf5Qd8DOmVyXZXTAGoYFTd2jsy/3MwOhveRn5TZUTUaIW7JpvEDumCf9Rgz1f jKArhIddvNdy/YdFm1voXsNGbbhw+imJBR/dSfNd6DK+qxTYPN9hkhngZmqc8i3tzf6j SRKQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16-v6si20032732pfi.279.2018.10.08.19.08.08; Mon, 08 Oct 2018 19:08:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbeJIJWH (ORCPT + 99 others); Tue, 9 Oct 2018 05:22:07 -0400 Received: from smtprelay0114.hostedemail.com ([216.40.44.114]:42276 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726452AbeJIJWH (ORCPT ); Tue, 9 Oct 2018 05:22:07 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 3A121180A8877; Tue, 9 Oct 2018 02:07:32 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2692:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:4184:4250:4321:4605:5007:6119:7903:7904:10004:10400:10848:11026:11232:11658:11914:12043:12296:12663:12740:12760:12895:13069:13095:13138:13231:13311:13357:13439:14180:14181:14659:14721:21060:21080:21433:21451:21627:21740:30012:30029:30054:30060:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: tiger54_7be7e4fa4ec45 X-Filterd-Recvd-Size: 1786 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Tue, 9 Oct 2018 02:07:31 +0000 (UTC) Message-ID: Subject: Re: CHECKPATCH: strange warning on alignment modifier From: Joe Perches To: Igor Stoppa , Andy Whitcroft Cc: Linux Kernel Mailing List Date: Mon, 08 Oct 2018 19:07:30 -0700 In-Reply-To: <15d77776-0551-5b7d-935e-16496c3800e2@gmail.com> References: <15d77776-0551-5b7d-935e-16496c3800e2@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-10-08 at 10:56 +0300, Igor Stoppa wrote: > Hi, > > I have the following fragment of code: > > +struct my_struct { > + atomic_long_t l __aligned(sizeof(atomic_long_t)); > +} __aligned(sizeof(atomic_long_t)); > > > triggering this warning, when fed to checkpatch.pl: > > WARNING: function definition argument 'atomic_long_t' should also have > an identifier name > #19: FILE: path/to/file.h > + atomic_long_t l __aligned(sizeof(atomic_long_t)); > > > gcc [(Ubuntu 7.3.0-16ubuntu3) 7.3.0] seems to be happy about it > > I am using the HEAD from mainline. > > My intent is to specify the alignment of both the field and the > structure (yes, probably redundant in this single-field case). > > If I am doing something wrong, I can't figure out what it is, but I > don't understand why the WARNING is mentioning a function definition. It's a defect in checkpatch. For now, just ignore the message. I will work on it later.