From patchwork Tue May 16 19:45:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp671463vqo; Tue, 16 May 2023 13:04:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BjU+8T/1KNqxCRwILQzHpHLiNZ9qHkOzr6P3kZLpLEEK/mLLN7Ar4E0UThyKo3jZjfr68 X-Received: by 2002:a17:90a:d988:b0:24e:20d9:4e5b with SMTP id d8-20020a17090ad98800b0024e20d94e5bmr40215416pjv.9.1684267484940; Tue, 16 May 2023 13:04:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684267484; cv=none; d=google.com; s=arc-20160816; b=04eU6XgU5/7+ES30F0K32zxL5R5XIrfhbEszd8MaxxoUYuObgDa5B423f9Ay+8HpCB zG0oBPdPanp+pd9aYOj3wXM917Jv2XJjCKlGF0NfFTrnnxKrZmQ6GI4jVe/7Fg8Q5s2f c5/CcIbceP1klUpqr8fP3ZNwqnX9xp/FMexARaNoRzxJ9sGJgY21x093Niol5fNcZ3Tn P+z7QSEKmVdw1MuiEqlB9nxRWUxjFuxivOjZYqt6TzXTi9N3l2obEvdLVi/D+MGEKy3Z tk+gpN7nPPvtOLHE79MYuugVhO1Xn8OT2WIpeEsa9/Ax3QSoPi1jr+ZgsEbOZFAZWP7Y /01A== 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=GOfAk4TsO3LJElyrTiCRwCLim4zL2ianNqmw9RGri0w=; b=aUsRpP4LahWyUBLRaR6B/Aw0OP6jmb/LztDOmDJvYGh6j5Fwg7pOHVQi2Vyggt7VfY Ay1LgJVrdNN3zInWKjsKhMxM4jQiP1Mf/mJNt0ZZhIJlzealZ3F/82tcatcWHuKAub4x PWrkT3YE/MeN/2b3ICna18psfRwHIFG+GGg06zWOFPAfqHL6w5zFMfSDNX+PYHMmzZqd ZeQLBFqrzmfA724nEyrnzhcXTdULon3Jb1SNNCAAeU2XjAiK5EtCR2FmWVZ46X+acsja AnOstJ8Wn+jCjEtrXYnFWvHA+K24VBhgmmg0KlnpdmgSjJ09YfSPQOqSZP4BtnC/O0Cv zUsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ScBp9XTf; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t188-20020a6378c5000000b0051b7f451cc6si18571997pgc.539.2023.05.16.13.04.21; Tue, 16 May 2023 13:04:44 -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=@kernel.org header.s=k20201202 header.b=ScBp9XTf; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbjEPTrm (ORCPT + 99 others); Tue, 16 May 2023 15:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbjEPTrk (ORCPT ); Tue, 16 May 2023 15:47:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F05751BE6 for ; Tue, 16 May 2023 12:47:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8480163DB9 for ; Tue, 16 May 2023 19:47:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82409C433D2; Tue, 16 May 2023 19:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684266445; bh=WJ7zJ8wKo3Z+xOwBRYH0RqKqN+ywQ2CmZE2kNKIwXgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ScBp9XTf1mm/fEQERYAAs/zBoK/nbDJ0uqqFSmni2XihRGPIdvbwY3lfhG/YoV7Wk J5ctZDxpFI4vdvE84yROlQOdZt++NmUbf0ePCEcq3gAf4W0ER+QCu1TjjKdJMg8zwy XzcERynrFL0aWUV/od/4XdAGFFJAP1P/a3abFTGixVQcJ33obSRvsNIjuk5Dh9YzUq XlqokYWCIuxrYW2FM0CBvyrojG4GVxKaasDcH4rVYv3DL3b4MDus35EXkiWnSsy/9o GadEdoq7H/lLC2q01zg2HgZH0AXVtKEimojnWjMKwIvD36ya3ynPySjY3QcVIeXoGG XJY5mD3O5V5rQ== From: Arnd Bergmann To: netdev@vger.kernel.org, Andrew Lunn , Heiner Kallweit Cc: Arnd Bergmann , Russell King , "David S. Miller" , Jakub Kicinski , Oleksij Rempel , Paolo Abeni , Maxime Chevallier , linux-kernel@vger.kernel.org Subject: [PATCH 4/4] mdio_bus: unhide mdio_bus_init prototype Date: Tue, 16 May 2023 21:45:36 +0200 Message-Id: <20230516194625.549249-4-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516194625.549249-1-arnd@kernel.org> References: <20230516194625.549249-1-arnd@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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?1766082462434804520?= X-GMAIL-MSGID: =?utf-8?q?1766082462434804520?= From: Arnd Bergmann mdio_bus_init() is either used as a local module_init() entry, or it gets called in phy_device.c. In the former case, there is no declaration, which causes a warning: drivers/net/phy/mdio_bus.c:1371:12: error: no previous prototype for 'mdio_bus_init' [-Werror=missing-prototypes] Remove the #ifdef around the declaration to avoid the warning.. Signed-off-by: Arnd Bergmann --- include/linux/phy.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/phy.h b/include/linux/phy.h index c5a0dc829714..6478838405a0 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -1900,10 +1900,8 @@ void phy_package_leave(struct phy_device *phydev); int devm_phy_package_join(struct device *dev, struct phy_device *phydev, int addr, size_t priv_size); -#if IS_ENABLED(CONFIG_PHYLIB) int __init mdio_bus_init(void); void mdio_bus_exit(void); -#endif int phy_ethtool_get_strings(struct phy_device *phydev, u8 *data); int phy_ethtool_get_sset_count(struct phy_device *phydev);