Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5487624rwl; Tue, 21 Mar 2023 20:25:15 -0700 (PDT) X-Google-Smtp-Source: AK7set+LaGrn3JSamgl69MnkTRYX1S7CgUQutakTMU0o3k2HmySVDImfmjcRSDWKv1LS3s3mpdsK X-Received: by 2002:a17:90a:7acb:b0:23d:158c:a60c with SMTP id b11-20020a17090a7acb00b0023d158ca60cmr1858189pjl.44.1679455515331; Tue, 21 Mar 2023 20:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679455515; cv=none; d=google.com; s=arc-20160816; b=V/0DJA5Ox1RCHN6kJ9Uat5u7/9TTYsCqOqoeIuDK9WnKTTzOhEs+vr+MoX1pKXW8FA 1g7ZvBIxWvCNXhrVSgaZWLAI+ACRI1ZrogvSHjpxNbDsHNloQxOfLbpCXy1QhRGkTvN6 NkkmS57dx49Ks73omXG4e1E1YEfaK1b8Diw1eo61JM6EpwT8kEBq0nqzoAmTORqw54OM yna80RJW6A8QIJcT6LBRtEAnMb+ooxiCD/HGnRazss2OUf4Hop+iyl5m3PaGWk92e4HY bwRXHnM+9OuBL+EJouOGk9XOWoYSLRoCUK7XKU5L1KNuTUzl8FXHB9+VFMwoAJR1+Pzx u+rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=DSyI8L5oT8eOqUOSX8aSXNDzQ40wNn5rmXBNbP1Vl/I=; b=ztFKd7QRLMhMCr0j5IZOH/slxhPJXT3WgJ5X4KWGcF9IGVyVIX5TerfFebyAovVS3m 0gUMfHGEmwOry1q1IR3Vf+gaBZFXsVcnQgt2CTHVuRmM52ov/nfo9ImtwSMwivKbi6AH ABmAX+F2XGPToZOg8ffo6sV94Z4nxtCpqqsBQOpEqcexiRQJ/A4OEaFW/GCDSssXNtju VworjkMiBa44IYjLLT4JYY0CTo3gTd/iTzu/roze8TWxMsC9O1BAlp/2J39ESws3tb3k JECcn3W3oEZlKbX3UjWd3TgMbfDEsrogSajbD6D4+gePx8B9UHU/YUEBcS3Juqk86B7M YCEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=f97vUw9N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me7-20020a17090b17c700b00237e1d2c666si15995560pjb.140.2023.03.21.20.25.03; Tue, 21 Mar 2023 20:25:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=f97vUw9N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbjCVDVm (ORCPT + 99 others); Tue, 21 Mar 2023 23:21:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbjCVDVk (ORCPT ); Tue, 21 Mar 2023 23:21:40 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57630559FC; Tue, 21 Mar 2023 20:21:39 -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: Content-Type:In-Reply-To:References:Cc:To:From:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=DSyI8L5oT8eOqUOSX8aSXNDzQ40wNn5rmXBNbP1Vl/I=; b=f97vUw9NR76Vf9DY8rj3DhncTg 1dk9JXIvIaYWwy06I4CWh6DY5f6k/R3dHsBaKsD9RvY0PeEvla3Oj+oDyQouT1vnJ69la57Z950nh qnOcCudCmroTgtmwaYOnwvVvAWnXawpCHiBYh1VPsTOYk6ssdoW0GkC/j0M5zEN15pOwojjnCCOWl i4Hdu1bohsa+3kBRcGG0n9rO6/gKWrPeDE71dJQ7nY6+ulN+dyI+L3XYSU849i9MtJoQlSzy1In/t oO/8q/n9SmB8DdZgSdkzdFWI8/GDsLC2KPju1+juadsV85QXbv91OxwyK2310+Ha994xVePUG7ZVd nVsb63AQ==; Received: from [2601:1c2:980:9ec0::21b4] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pep2d-00EQDw-1m; Wed, 22 Mar 2023 03:21:35 +0000 Message-ID: Date: Tue, 21 Mar 2023 20:21:33 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] of: fix htmldocs build warning Content-Language: en-US From: Randy Dunlap To: Stephen Rothwell , Rob Herring Cc: Frank Rowand , Linux Kernel Mailing List , Linux Next Mailing List References: <20230220163638.04e9d0c4@canb.auug.org.au> <20230310113258.463f836c@canb.auug.org.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=unavailable 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 Hi-- On 3/9/23 20:52, Randy Dunlap wrote: > > > On 3/9/23 16:32, Stephen Rothwell wrote: >> >> Fix this htmldoc build warning: >> >> include/linux/of.h:115: warning: cannot understand function prototype: 'const struct kobj_type of_node_ktype; ' >> >> Reported by: Stephen Rothwell >> Fixes: 39459ce717b8 ("of: dynamic: add lifecycle docbook info to node creation functions") >> Signed-off-by: Stephen Rothwell > Can we get Stephen's patch merged, please? Thanks. > > Acked-by: Randy Dunlap > Tested-by: Randy Dunlap > Thanks. > > After this patch, there is another warning for this function: > > ../include/linux/of.h:118: warning: Excess function parameter 'phandle_name' description in 'of_node_init' > >> --- >> include/linux/of.h | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> This is actually untested, but seems pretty straight forward. >> >> diff --git a/include/linux/of.h b/include/linux/of.h >> index 0af611307db2..814d33f3835a 100644 >> --- a/include/linux/of.h >> +++ b/include/linux/of.h >> @@ -100,6 +100,9 @@ struct of_reconfig_data { >> struct property *old_prop; >> }; >> >> +extern const struct kobj_type of_node_ktype; >> +extern const struct fwnode_operations of_fwnode_ops; >> + >> /** >> * of_node_init - initialize a devicetree node >> * @node: Pointer to device node that has been created by kzalloc() >> @@ -111,9 +114,6 @@ struct of_reconfig_data { >> * whether to free the memory will be done by node->release(), which is >> * of_node_release(). >> */ >> -/* initialize a node */ >> -extern const struct kobj_type of_node_ktype; >> -extern const struct fwnode_operations of_fwnode_ops; >> static inline void of_node_init(struct device_node *node) >> { >> #if defined(CONFIG_OF_KOBJ) > -- ~Randy