From patchwork Wed Mar 22 07:00:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Rothwell X-Patchwork-Id: 73255 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2198113wrt; Wed, 22 Mar 2023 00:05:14 -0700 (PDT) X-Google-Smtp-Source: AK7set/mj0DQicZ6wFf4aPrTiU9FncHiBv+mtElJ1/ebIJcyX+5R8igOHuS1Oi7yXrJcUNWecKaK X-Received: by 2002:aa7:9424:0:b0:623:cc95:e517 with SMTP id y4-20020aa79424000000b00623cc95e517mr1922573pfo.17.1679468714384; Wed, 22 Mar 2023 00:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679468714; cv=none; d=google.com; s=arc-20160816; b=MG7JQKcfYUg1we0bCxA9GRYW8Drz8BGlpifq31H2GEZn4JxrhJf2ADEXRI/5U0/B1v gMQsVsQbLhovXH7aypig5gljYxnsAw67hW55pLxzyQzMyh7yfGrdGHEgdD70pfFVD6R8 aOzJXL9YPpmHy8hz/j1pYj/H75chlzK+xQO0Cd6PajIflyvlr1F5igGcE4YmoD0WOo64 Tk48r0LfCbsIVpj/1C8XQOmVdkTwKcxRKcqSPywMhLp9kOacbIWPl2BDjEE/9hjEKjT3 V8g4VPQe2B0MgxBlbvtejy9ciBmsVyJK45F8TcwlcYOrVRFPQpR93s/2k4B3J1DdJTt8 Nv5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=9wIDFC5mj5dFd7HVU1rFGWEJ11xMt9XUE4oryouyBlg=; b=q/WbYHCKcf0RvDWcukNy3QekIwP9CkRSVdBUsTP0Sdx2tlHLSAwEbWpRr7RKwsjUGZ O5cU5KWx3kJJkIPowzZo10cBMOsQGZUMedZOQEqy7m6ic1pbPQz18WFKM+zseCtZR+aQ nJGmlUR5dWj0gF+IL/ZjJfRUNWMYHSgYghJVNamMJt+p784J6HGoLUuuy3zygU6qGzek x6Yc1nIqEKVO3ZmRkro4am3aFRUg6Uxg8bJgJO0xYqwLyyQWeWeVCGUUbqCWErJTLQZ8 7ZusRUbkzGxYSDzEAUJh37KsxejLJDVv4AzpwkK6K7j0DqRjZaFwnoyyerjXELQSPopF kz4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=b0Phw1Tr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=auug.org.au Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a056a00149400b00627ec836ef8si10728062pfu.235.2023.03.22.00.05.01; Wed, 22 Mar 2023 00:05:14 -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=@canb.auug.org.au header.s=201702 header.b=b0Phw1Tr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=auug.org.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjCVHAo (ORCPT + 99 others); Wed, 22 Mar 2023 03:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjCVHAm (ORCPT ); Wed, 22 Mar 2023 03:00:42 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C41F452929; Wed, 22 Mar 2023 00:00:39 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4PhK9t0r4Gz4xD8; Wed, 22 Mar 2023 18:00:34 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1679468434; bh=9wIDFC5mj5dFd7HVU1rFGWEJ11xMt9XUE4oryouyBlg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=b0Phw1Tr5SVQW5lhEZ/poUDb6TR8DhWWu9Q0FAe4LMpjEzSbTaPFg2YcWytBRohnD 2h7fmLYVt1ssDeVYQsJ2G32F9yrX8s18NUD9bucMZ0c84z/3VQWLutNya7dNgJJfFu Iw1fGpPzyXlmDP3rhLYRrR6IBDLv56LRg6YkQk/6gezW/GisXdHz69EBKjOWlXJDV7 onxE2vGzYRP9b++BhxZj9ycRQBEP8kNCglrehPOFnIJVIXb+MfKis16w8kfVKBu+ju gRjOU90FCU9MtJczZmwj8HzIJw8Bv4tt210xxa1o8by6N3S/3yejqMzGQ0lIgyHOaz NgybUyyHgMYPA== Date: Wed, 22 Mar 2023 18:00:32 +1100 From: Stephen Rothwell To: Rob Herring Cc: Frank Rowand , Linux Kernel Mailing List , Linux Next Mailing List , Randy Dunlap Subject: [PATCH] of: fix htmldocs build warnings Message-ID: <20230322180032.1badd132@canb.auug.org.au> In-Reply-To: <20230310113258.463f836c@canb.auug.org.au> References: <20230220163638.04e9d0c4@canb.auug.org.au> <20230310113258.463f836c@canb.auug.org.au> MIME-Version: 1.0 X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761050586537082077?= X-GMAIL-MSGID: =?utf-8?q?1761050586537082077?= Fix these htmldoc build warnings: include/linux/of.h:115: warning: cannot understand function prototype: 'const struct kobj_type of_node_ktype; ' include/linux/of.h:118: warning: Excess function parameter 'phandle_name' description in 'of_node_init' Reported by: Stephen Rothwell Reported by: Randy Dunlap Fixes: 39459ce717b8 ("of: dynamic: add lifecycle docbook info to node creation functions") Signed-off-by: Stephen Rothwell Reviewed-by: Randy Dunlap --- include/linux/of.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) Replaces "[PATCH] of: fix htmldocs build warning" and additionally fixes the new warning about phandle that Randy reported. diff --git a/include/linux/of.h b/include/linux/of.h index 9b7a99499ef3..d55dab9ad728 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -100,10 +100,12 @@ 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() - * @phandle_name: Name of property holding a phandle value * * On return the device_node refcount is set to one. Use of_node_put() * on @node when done to free the memory allocated for it. If the node @@ -111,9 +113,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)