Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2640930iof; Wed, 8 Jun 2022 09:02:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUI+6+dv0HbeMq76kPGG8bqK2ACp7PuUlJg2KEQZBIYPFCHxBVR51TXYf7eT3K3kUClaTo X-Received: by 2002:a63:2bc8:0:b0:3fe:22d6:bdb2 with SMTP id r191-20020a632bc8000000b003fe22d6bdb2mr5369867pgr.474.1654704163740; Wed, 08 Jun 2022 09:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654704163; cv=none; d=google.com; s=arc-20160816; b=BeEFNjqRLrvfGN0SF0pY6+E5meZl/2WwZuneK0oHD1av7FsrOSqMUfETskFV2xrfBz XJihZe2NVS2Ux3HVK7qKs5n5il8Rs5Tlaw2Kam+YNDwPo3fDLUJT/8cMAEO+F++7sWwy H3nAkttytIpYSd9klT3DjP388xnpGyNj94pruz48lV5q3OT3wy+DCanCQNduCanLyBXk XEv1UfbdtFN70g8AdvEsKRHGZ9bB+HkyURRrZWznVpos1XGOghyRAWzFczfyJ5ZotFQq KlPxQ9QlzVl9sLE+axqioV+GWCRMfK8J6bBqdwvIoXIXCcK8BZH3IefZQvdT1J/4N7YY WfaA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=sgOi0wZt64PvzV9T5wbU6JWnzoPTwGt8hGmYzxvQxks=; b=gVwdAbUQihjSw2xhOen9ibN6sUlLCSIjKIWBtQqlVK2gchifFuNyJJGk2hBrrtEkbR prruJKo469E0f64kD28Xmu25Yy+pzNfVnJM0+RI43zqYwUDBg5FyjXUmdYhY1nF1wXjk mmWvf2RG9A7VJaHjlqr1raBmRvo1amQDbq+8i9ixMhERrLYktKVrBWGcCeNDawanb5so pZfLCszVynsKDwQFgv1bu4ohdhKfTxfa/lFm46YZcfaOBx8c/ucQz922gw6YaQ48eJ5M w9UIKErxkWxuMDW5qgy0xTN6HbDtdQllGR2zqbNqbBf87Ix+EX4W3qK/eCzWqLXOuksi sABQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonic.nl header.s=202111 header.b=XhApxaLi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v4-20020a626104000000b0050dfedd9c62si26645849pfb.292.2022.06.08.09.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 09:02:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@protonic.nl header.s=202111 header.b=XhApxaLi; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1353649275; Wed, 8 Jun 2022 08:34:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244050AbiFHPdw (ORCPT + 99 others); Wed, 8 Jun 2022 11:33:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244443AbiFHPdp (ORCPT ); Wed, 8 Jun 2022 11:33:45 -0400 Received: from smtp15.bhosted.nl (smtp15.bhosted.nl [IPv6:2a02:9e0:8000::26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E958D266C for ; Wed, 8 Jun 2022 08:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:message-id:date:subject:cc:to:from: from; bh=sgOi0wZt64PvzV9T5wbU6JWnzoPTwGt8hGmYzxvQxks=; b=XhApxaLiOKxmY7hz7GCGsdSFSBwfcy172V0MF8dc3NEUeoWVLgLHjCsguV4DEXCaSRcf/E1VadzjN qGknx8qlia51glFKSXpDO2rRf3KY+uij7yYXwDptqaWRL9ZxJFZPDhJxT6eeCDTOtBob6Lwfu0Aco8 c6MB3JV2S7dXkDh8j6NrR7/SvQPutEIo1lCk8L+bObgEE2m0mRSqucQC3p4CRXY/AIf8XFQLzq3E0b MbRznsiP9w+F2VFRZ/dAVDqRNQxIv25kVwS1WWzfWs94A93FADRvpF6Ts6/oqUKp7fsmF1o2SHaeU0 VrCZM+z9UyBhWL/KFIWkCUeoqGtzVrQ== X-MSG-ID: 5f31577c-e740-11ec-b450-0050569d3a82 From: David Jander To: Mark Brown Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Linux Next Mailing List , Stephen Rothwell , Andy Shevchenko , David Jander Subject: [PATCH v2] spi: : Add missing documentation for struct members Date: Wed, 8 Jun 2022 17:33:09 +0200 Message-Id: <20220608153309.2899565-1-david@protonic.nl> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes these "make htmldocs" warnings: include/linux/spi/spi.h:82: warning: Function parameter or member 'syncp' not described in 'spi_statistics' include/linux/spi/spi.h:213: warning: Function parameter or member 'pcpu_statistics' not described in 'spi_device' include/linux/spi/spi.h:676: warning: Function parameter or member 'pcpu_statistics' not described in 'spi_controller' Fixes: 6598b91b5ac3 ("spi: spi.c: Convert statistics to per-cpu u64_stats_t") Reported-by: Stephen Rothwell Signed-off-by: David Jander --- v2: - Correct patch subject line style - Add the text of the actual warnings that are being fixed - Add a Fixes: tag --- include/linux/spi/spi.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index eac8d3caf954..2e63b4935deb 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -35,7 +35,8 @@ extern struct bus_type spi_bus_type; /** * struct spi_statistics - statistics for spi transfers - * @lock: lock protecting this structure + * @syncp: seqcount to protect members in this struct for per-cpu udate + * on 32-bit systems * * @messages: number of spi-messages handled * @transfers: number of spi_transfers handled @@ -155,7 +156,7 @@ extern int spi_delay_exec(struct spi_delay *_delay, struct spi_transfer *xfer); * @cs_inactive: delay to be introduced by the controller after CS is * deasserted. If @cs_change_delay is used from @spi_transfer, then the * two delays will be added up. - * @statistics: statistics for the spi_device + * @pcpu_statistics: statistics for the spi_device * * A @spi_device is used to interchange data between an SPI slave * (usually a discrete chip) and CPU memory. @@ -439,7 +440,7 @@ extern struct spi_device *spi_new_ancillary_device(struct spi_device *spi, u8 ch * @max_native_cs: When cs_gpiods is used, and this field is filled in, * spi_register_controller() will validate all native CS (including the * unused native CS) against this value. - * @statistics: statistics for the spi_controller + * @pcpu_statistics: statistics for the spi_controller * @dma_tx: DMA transmit channel * @dma_rx: DMA receive channel * @dummy_rx: dummy receive buffer for full-duplex devices -- 2.32.0