Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3950426pxv; Mon, 28 Jun 2021 17:31:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpEsQwZgpBOxtRdHMFWAREWDSykw6aQHg30VFBGYDFjI4z6hQ+FFDbpjOZ92ENia7o2AcF X-Received: by 2002:a6b:720c:: with SMTP id n12mr1642124ioc.57.1624926704629; Mon, 28 Jun 2021 17:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624926704; cv=none; d=google.com; s=arc-20160816; b=HWDk+nys8Am5A4pHipuxXb2hak3UVRbpQSfSBWdfROXZw2qNKWZIlFqpZdpbhZYFyT yPqt0BkpvOxTyyutneRyKlfyRa7B86p3o+s+VankOdtLA+qMTUIYnw/V26MK3NmAMR4L aONk44Q3cCn2QX5oMaL5Z/xomMJqz9pT9TzIM/YwRUKxsPGTm3MEzBVeAh5YATwt89XA R1WTd0oJlgvZX8LhrW46L9zAaLuZrZwmYCteFIOqKPKVGbvtYufKOcbU5JX+cnPeDjbu 2aCoLl+MITs2oACsKE6AR5ASk7ufjl5Mka7cXWvEbLbcVxzVNEcrTvQUSyzcb3NQaYml KANA== 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=uVkWJJEgVMmv/VM+/tI0X/gn1Id+AayZLOfLG6sl0S4=; b=E54N6SZS6aYQyGG51cLnkrExCsxlo5b99Z77t7Pe33f6NEmDcTqz3AjZxczts8vtea D2m1XnzVguzejEoRkSzVDZuZbKOt3PKdLY14cACTHNaeOPgCOcTrL1QEhM6mnuuuwYAF B9orlhAygX4aHgzI/ailQlO169B/5P3ldBYjCeURFP8ZEBc+JUfkHGstw+sErNwcoayY g3XThfJH1us+mGI/CSw0lWKXhLZ4UPyAqu5xEtUzGHJn410TRkvlK3Hxrl9290qkHqyr wgGKcJaFXZr02AMRTYfAaH2JTQTaqdtEcl8jfLIMWLADBvCRqKZNGgot3NiG/9ExX1R+ NJwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=CDP8AVKZ; 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 7si18044253ilz.34.2021.06.28.17.31.32; Mon, 28 Jun 2021 17:31:44 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=CDP8AVKZ; 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 S237557AbhF1VHz (ORCPT + 99 others); Mon, 28 Jun 2021 17:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236768AbhF1VHu (ORCPT ); Mon, 28 Jun 2021 17:07:50 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84116C061574; Mon, 28 Jun 2021 14:05:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=uVkWJJEgVMmv/VM+/tI0X/gn1Id+AayZLOfLG6sl0S4=; b=CDP8AVKZWHj5qu1qJuoZQy6xvf E/ETdygnAZKz9/ak8vzKNKy3dWD60Vy9xb1d61vJcF61s/m0+L0wuehv6QKQq99zxvuR5Kev4LJYv OaFjTdOdgmugsZKKANSwqs3ocRK9nImAYuy6W9EPLIcCviLNqj3Kyhmq1R2/WMkadG+vR7BsOmmQm PeJPc/RGtuf0kpQ8mr8x+4ShABS0rRIv1KdeNUuk/20oDOQhkgJ4vU2/lilA+3gaRKHb+RsokJhJk d0MlEuskP7VzHcQzqIKjwcil+qzjTUvN2p33TxivyTVlEWnvTvZiMqHTPgPlvL/mbP0JztnlMmgeK S3POwxhw==; Received: from [2601:1c0:6280:3f0::aefb] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lxyRV-009Boc-Ps; Mon, 28 Jun 2021 21:05:21 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , "William A . Kennington III" , Mark Brown , linux-spi@vger.kernel.org, Lukas Wunner Subject: [PATCH v2] spi: : add missing struct kernel-doc entry Date: Mon, 28 Jun 2021 14:05:20 -0700 Message-Id: <20210628210520.5712-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix kernel-doc warning in spi.h by adding the missing kernel-doc entry and also correct the original comment so that they both indicate the correct polarity of the flag. ../include/linux/spi/spi.h:673: warning: Function parameter or member 'devm_allocated' not described in 'spi_controller' Fixes: 794aaf01444d ("spi: Fix use-after-free with devm_spi_alloc_*") Signed-off-by: Randy Dunlap Cc: William A. Kennington III Cc: Mark Brown Cc: linux-spi@vger.kernel.org Cc: Lukas Wunner --- v2: correct both comments for @devm_allocated to indicate the correct polarity (thanks, Lukas) include/linux/spi/spi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- linux-next-20210628.orig/include/linux/spi/spi.h +++ linux-next-20210628/include/linux/spi/spi.h @@ -339,6 +339,7 @@ extern struct spi_device *spi_new_ancill * @max_speed_hz: Highest supported transfer speed * @flags: other constraints relevant to this driver * @slave: indicates that this is an SPI slave controller + * @devm_allocated: whether the allocation of this struct is devres-managed * @max_transfer_size: function that returns the max transfer size for * a &spi_device; may be %NULL, so the default %SIZE_MAX will be used. * @max_message_size: function that returns the max message size for @@ -511,7 +512,7 @@ struct spi_controller { #define SPI_MASTER_GPIO_SS BIT(5) /* GPIO CS must select slave */ - /* flag indicating this is a non-devres managed controller */ + /* flag indicating if the allocation of this struct is devres-managed */ bool devm_allocated; /* flag indicating this is an SPI slave controller */