From patchwork Thu Mar 18 10:40:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403964 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp356765jai; Thu, 18 Mar 2021 03:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww5YXFlojfNMOLfCdvjqOR9V+7NzYJyiDwR6C0nRqqjeXTN19ePH54Y8m9Tz3AUdsothmC X-Received: by 2002:a17:906:b318:: with SMTP id n24mr28435436ejz.372.1616064097584; Thu, 18 Mar 2021 03:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616064097; cv=none; d=google.com; s=arc-20160816; b=k07qasl4o1ARf0VtGTgpEJ02lUls985ga4aMHCkJwQJCd1v5T8D7lW+6EUIukLUnYE 1lJUH9D9y54M6t7s8KWl973WVFh6RBM3Dsa08WEyUJ0uhVDfNDQo1yJF3zU0e6HVjjY2 VK9TotL54ZVSVG79PEpZ+ydv7TAIefrDaco7/VuWKlnXjuK58GuL8M5Ie4ZgPDJ4WZtr Nn9nYsSdJGfmhUcTTWJyX79xixuQfUCnEHlWuRsyr5SiMCLlg0xbbfm2j5PVDBoxGAV/ ctXGi/IWoJS/aBnSUSAji66igdUgPJNEzIvtu45Pi7iXPDvxLgZcfvqmHs3vDqu5Q/8J W5KA== 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:date:subject:cc:to:from :dkim-signature; bh=YeqXEpROOp+iMp8r4X/XCNvaZ1Q9W0JDqwahteeA6AI=; b=CyGNCaeGqkuaw+stq0OXrYHngLE6H/p6llKXmp0OVjZooVhKjGDdCEEtxBJP446EG0 uztIdCG5+RMBOe2nAZz4HT0GYolAo1VNKabOU0awGSnVXlDlQ9gok1ZMIjXU2hV/fD2G 3F3BboFL7TtEorVQ/E9+TeMw+euZaNSYYDAyTStk8kbD+GevN3rfhi+iYKK0wpZzNcg9 6+OydKB2N8eud7UVkf+LqRvCEaxl0iD/FIHSdlIJoPV+jJivgCZbz/8jUsNmeXespjwJ kKEuHQ9gEuuYObp4Mlz6buf2mz+a8z16/ozdOvzYL+Z21F9Us5UJBujFXix1H7P4zP+S VdMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MzKuC6Yn; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si1279805edx.180.2021.03.18.03.41.37; Thu, 18 Mar 2021 03:41:37 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=MzKuC6Yn; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230268AbhCRKlD (ORCPT + 8 others); Thu, 18 Mar 2021 06:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbhCRKkx (ORCPT ); Thu, 18 Mar 2021 06:40:53 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A303EC061763 for ; Thu, 18 Mar 2021 03:40:52 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id y124-20020a1c32820000b029010c93864955so5094927wmy.5 for ; Thu, 18 Mar 2021 03:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YeqXEpROOp+iMp8r4X/XCNvaZ1Q9W0JDqwahteeA6AI=; b=MzKuC6YnZurZf0L4f2hzTY8fKELqD9l8PjwaxpCOd9JxaDHWDQE/qpt74TPeOPX2Zn Xk//2XeHA0jI2tcWPiftkGf/8iIiPCQCkcmy5JUEbThY6pFjrUkd0nLGTdeO0pH0aSNF znJ6A7t8Z84suozRc6yHxZDiDMqnQNTG4kFlsaustDOuSqoNQ26psemHCBK4oqY8lhEL D6eU6CwBtD8pLRPlV2P15XgfgM5qVNHyLs67wDnvRwkyEQSA8WgnFFmdtwwD1qYaSnUJ rKP5KPZVkjN/S415+Bp8p+KNQb/txxip2PgRXmjni5DCv8oGfqZFV95yuUAGCBPqbZPS /z7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YeqXEpROOp+iMp8r4X/XCNvaZ1Q9W0JDqwahteeA6AI=; b=rIwjKKUHGu+pkUx+5IE4AzxouDYsK/DyhJLsC1+2AKncfeGyby0y1jOq8y5pBGF+zs 2yZ737u/sVkoVkepj7hN0U+TgizT65AT2U7cIV1kWgGlt+9b3UYDkJ6jmGe9AUkdDY9J rwvfRNfrWyha+iS2xOdo+gXO8Eor9vFH3KagxD1djlR4XQuSaQEcOhdcZCSPFWG+Mku1 hOLHtIVo4AT49/jZmaRDCqK+W3hBSdFPgFlUK1bv9Aq1pZRgqtIqZC1Zmx7XW2V2sOrS o3APITaC6sr+q/dWUXvHdmt5rFwrbjg2jZTJDshGAgm9Vofw3o08oJQIgO2fxUITWrVB uD6A== X-Gm-Message-State: AOAM533DySs65KAhQ0NgobN0Nko4VtSqZlO4xLhPBRweEKD5zdBvjNp2 DSssuxKOXESxR4SjpRJoVoiFBg== X-Received: by 2002:a1c:bac2:: with SMTP id k185mr3044552wmf.148.1616064051464; Thu, 18 Mar 2021 03:40:51 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id z1sm2426033wru.95.2021.03.18.03.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 03:40:51 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King , Rob Herring , Frank Rowand , netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 08/10] of: of_net: Provide function name and param description Date: Thu, 18 Mar 2021 10:40:34 +0000 Message-Id: <20210318104036.3175910-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210318104036.3175910-1-lee.jones@linaro.org> References: <20210318104036.3175910-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/of/of_net.c:104: warning: Function parameter or member 'np' not described in 'of_get_mac_address' drivers/of/of_net.c:104: warning: expecting prototype for mac(). Prototype was for of_get_mac_address() instead Cc: Andrew Lunn Cc: Heiner Kallweit Cc: Russell King Cc: Rob Herring Cc: Frank Rowand Cc: netdev@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: Lee Jones --- drivers/of/of_net.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.27.0 Reviewed-by: Andrew Lunn diff --git a/drivers/of/of_net.c b/drivers/of/of_net.c index 6e411821583e4..bc0a27de69d4c 100644 --- a/drivers/of/of_net.c +++ b/drivers/of/of_net.c @@ -79,6 +79,9 @@ static const void *of_get_mac_addr_nvmem(struct device_node *np) } /** + * of_get_mac_address() + * @np: Caller's Device Node + * * Search the device tree for the best MAC address to use. 'mac-address' is * checked first, because that is supposed to contain to "most recent" MAC * address. If that isn't set, then 'local-mac-address' is checked next,