Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp623520pxk; Thu, 17 Sep 2020 11:35:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUjyIUYkPBamE28QTBKnfktudrXmn5X3EgIumqTIZBU831BI+X7PkJraFkYoIG9uRfuJ07 X-Received: by 2002:a17:906:4093:: with SMTP id u19mr32570319ejj.520.1600367753286; Thu, 17 Sep 2020 11:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600367753; cv=none; d=google.com; s=arc-20160816; b=ckBKwheaFMrjcZiRE5gwb89gsyL2Di3z+3HQqQeIjkA9PgmbPFF/PXiJwWBqXyg3bp HEme3OprV1FlJRSxRMKVQjPco0AdOyrLxGAudJF24jKMr1fjqyCVnUP5kPvvpvlgWbI6 bEXxPnTQDbKvKcvM94EZcEliH+V7kXbFA6p1Q4w/iu8D5StAwQX94o70eBYxB19pg8fd OQ7Ev9X5jcOxfS7MvYhg7JwdpmWMU95q1bfXHhO+A5hTJESqfdiYezxZ9hvCc+7BIyVu pSiCEj7AnRKW1NibSYIrFWTz7QSPF501nq7xkf+Xm4SOXCJ4QAhDjs5UxeQ5TGlx6KXP W2/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=D4umXhMGDrdzAnzKc6vIXFKm/g3CVvW/aWzwucsXLpA=; b=TVRkQEL8ICGLHYWQYpg25no7vYyh2jH7ajxI8H5HoxfGCIgMis6NS18/DcARlqjIDD 09CF19tnFhFZ6MRrSYTlDgM9vUeeCHVLx/efpoc39IVC76t1cto0q5XFrXKmL8Yumswy avHNcnX32Kg92NGsr6B2TxvdePbvVBbpKqU61OSaYp/n9Nux/HkrCvzbg2BpukMSEDom QubZn9Er7cZdChyjWXjK5lRZGUGilzvPfZp/fcpgf+OSE9GPvXu9SjDfOf8ic5EVAk3U 0s4nCbvQSIuszh3oVUJ9iotQNlauIX2BdEtXQlaBbL5ariFjf2QUFC/QhuSHs7JfVMBr LB0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si502588ejy.315.2020.09.17.11.35.29; Thu, 17 Sep 2020 11:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726614AbgIQSeF (ORCPT + 99 others); Thu, 17 Sep 2020 14:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgIQSdl (ORCPT ); Thu, 17 Sep 2020 14:33:41 -0400 Received: from saturn.retrosnub.co.uk (saturn.retrosnub.co.uk [IPv6:2a00:1098:86::1:1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 884ADC06174A; Thu, 17 Sep 2020 11:33:38 -0700 (PDT) Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id C83FF9E022B; Thu, 17 Sep 2020 19:33:03 +0100 (BST) Date: Thu, 17 Sep 2020 19:33:02 +0100 From: Jonathan Cameron To: Lee Jones Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Michael Hennerich , Barry Song <21cnbao@gmail.com>, Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH 12/30] iio: gyro: adis16080: Fix formatting issue and compiler attribute ordering Message-ID: <20200917193302.65e922c0@archlinux> In-Reply-To: <20200718155442.14c420db@archlinux> References: <20200716135928.1456727-1-lee.jones@linaro.org> <20200716135928.1456727-13-lee.jones@linaro.org> <20200718155442.14c420db@archlinux> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Jul 2020 15:54:42 +0100 Jonathan Cameron wrote: > On Thu, 16 Jul 2020 14:59:10 +0100 > Lee Jones wrote: > > > Kerneldoc expects attributes/parameters to be in '@*.: ' format and > > gets confused if the variable does not follow the type/attribute > > definitions. > > > > Fixes the following W=1 kernel build warning(s): > > > > drivers/iio/gyro/adis16080.c:49: warning: Function parameter or member 'lock' not described in 'adis16080_state' > > drivers/iio/gyro/adis16080.c:49: warning: Function parameter or member '____cacheline_aligned' not described in 'adis16080_state' > > > > Cc: Michael Hennerich > > Cc: Barry Song <21cnbao@gmail.com> > > Signed-off-by: Lee Jones > Hmm. You are going to have an awful lot of those ____cacheline_aligned ones. > > Might be worth thinking about whether we fix kernel-doc to cope with those. > > A quick grep suggests the vast majority of users of this have it after > the element name. > > @Jon Corbet : What do you think? Looks like there is special > handling already for ____cacheline_aligned_in_smp. Should we extend > that to this case? Applied with the ____cacheline_aligned bit dropped as Jon took the patch to stop kernel-doc complaining about this. thanks, Jonathan > > Jonathan > > > > > --- > > drivers/iio/gyro/adis16080.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/iio/gyro/adis16080.c b/drivers/iio/gyro/adis16080.c > > index 1b84b8e112fe1..f38f9abcccbb5 100644 > > --- a/drivers/iio/gyro/adis16080.c > > +++ b/drivers/iio/gyro/adis16080.c > > @@ -38,14 +38,14 @@ struct adis16080_chip_info { > > * @us: actual spi_device to write data > > * @info: chip specific parameters > > * @buf: transmit or receive buffer > > - * @lock lock to protect buffer during reads > > + * @lock: lock to protect buffer during reads > > **/ > > struct adis16080_state { > > struct spi_device *us; > > const struct adis16080_chip_info *info; > > struct mutex lock; > > > > - __be16 buf ____cacheline_aligned; > > + __be16 ____cacheline_aligned buf; > > }; > > > > static int adis16080_read_sample(struct iio_dev *indio_dev, >