From patchwork Wed Jun 2 16:20:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12295255 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AD83C47083 for ; Wed, 2 Jun 2021 16:21:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12B2B61953 for ; Wed, 2 Jun 2021 16:21:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbhFBQXS (ORCPT ); Wed, 2 Jun 2021 12:23:18 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:46898 "EHLO mail-ed1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbhFBQXR (ORCPT ); Wed, 2 Jun 2021 12:23:17 -0400 Received: by mail-ed1-f49.google.com with SMTP id r11so3589367edt.13 for ; Wed, 02 Jun 2021 09:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=je7P0/kj9dkI/ARzdpLfXpbx3wW6XGZB976ubUlH0yw=; b=uYtgtHqKmYC3Md3nzN9DdbIQy+TVjJt2HANSXW+FAXy+bUGbUOIj08qmZDQRJ6ioxB +e+FOHuZJhwNry2KZgAYBcc5J0YWCrUp341yJVSTnEvxa+qclyhPXk3C9Jk1TgfRb3wC wrs/8gumjcYzTmQp9h5z9fLVj4eb/mOoomQIdlLRfN9TQzGUxkkFsUdkJmMaBA8dkD9J xfEgaJ+El3+VjcfaDGO20mPwOCPMC3jq4/f+NtRUZqVBRrMK2xKyiRZJEff7PVgyCE/u YT2zeVUTUyNcbLb3IInVr/MG58sluDvT6ev9g+BRDQKe3TU83oxNbciZhHtbEuObf7nm a8DA== 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=je7P0/kj9dkI/ARzdpLfXpbx3wW6XGZB976ubUlH0yw=; b=uRDzvi59NM26/0EbjSEqfB3291B50RwVKx+CDa6GII5o1d3EhnEY0bekaxRmBPNfkj DFu9DiZawgYjK0d+PTDU1Xgm90C8hEXD1VilsrVeBFjIBHL/huf2tJerP6XDQp0ENvQF gCQcAaZ4yvu1e7AHeQDJwrhV5Vt7XLtMVrC9twg4QuhrhhS3ip9mZl2tcv5Gygd2b4MT Zq25a1H9ehPZ2UiYC3TuSW+8WIfDqpfP9I1AijiGW80BLo88jKFb/O3KuzmdNowKt9vh jLDhEu5srYr6aBYkJlyrHW5ZoAiE41ChAiNUVOY9NXeCWJVzQpK05Sdwb+mX5I6rVtA1 6h5g== X-Gm-Message-State: AOAM532qI1zvmmFxc0oIks1zDzeN1wkvXe2+0bCOjlAEhgjPCgKrtbR3 5zbbzdIztUc8HhgtyPLXyQIAr3uphoM= X-Google-Smtp-Source: ABdhPJx97gGZMN/nDz742EkP/FnQIPewnJyHPlLjia2AhXU2maHzDZhY5bJ1NOJtDTBXcvtLDsM46w== X-Received: by 2002:a05:6402:2049:: with SMTP id bc9mr19684863edb.298.1622650833111; Wed, 02 Jun 2021 09:20:33 -0700 (PDT) Received: from localhost.localdomain ([188.26.52.84]) by smtp.gmail.com with ESMTPSA id m12sm228078edc.40.2021.06.02.09.20.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 09:20:32 -0700 (PDT) From: Vladimir Oltean To: Jakub Kicinski , "David S. Miller" , netdev@vger.kernel.org Cc: Wong Vee Khee , Ong Boon Leong , Michael Sit Wei Hong , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Jose Abreu , Maxime Coquelin , Heiner Kallweit , Russell King - ARM Linux admin , Florian Fainelli , Andrew Lunn , Vladimir Oltean Subject: [PATCH v3 net-next 1/9] net: pcs: xpcs: delete shim definition for mdio_xpcs_get_ops() Date: Wed, 2 Jun 2021 19:20:11 +0300 Message-Id: <20210602162019.2201925-2-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210602162019.2201925-1-olteanv@gmail.com> References: <20210602162019.2201925-1-olteanv@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Vladimir Oltean CONFIG_STMMAC_ETH selects CONFIG_PCS_XPCS, so there should be no situation where the shim should be needed. Signed-off-by: Vladimir Oltean --- v1->v2: none v2->v3: none include/linux/pcs/pcs-xpcs.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/linux/pcs/pcs-xpcs.h b/include/linux/pcs/pcs-xpcs.h index 5938ced805f4..c4d0a2c469c7 100644 --- a/include/linux/pcs/pcs-xpcs.h +++ b/include/linux/pcs/pcs-xpcs.h @@ -36,13 +36,6 @@ struct mdio_xpcs_ops { int enable); }; -#if IS_ENABLED(CONFIG_PCS_XPCS) struct mdio_xpcs_ops *mdio_xpcs_get_ops(void); -#else -static inline struct mdio_xpcs_ops *mdio_xpcs_get_ops(void) -{ - return NULL; -} -#endif #endif /* __LINUX_PCS_XPCS_H */