From patchwork Tue Jun 1 00:33:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 12290193 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.8 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,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 5E663C47080 for ; Tue, 1 Jun 2021 00:33:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3EE026135C for ; Tue, 1 Jun 2021 00:33:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232515AbhFAAfW (ORCPT ); Mon, 31 May 2021 20:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbhFAAfP (ORCPT ); Mon, 31 May 2021 20:35:15 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2CECC06174A for ; Mon, 31 May 2021 17:33:33 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id l3so18974463ejc.4 for ; Mon, 31 May 2021 17:33: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=nkiW4cgqcNA2wnsGokaWDqLEeknOpooJwCUovxh3/t0=; b=n6m2XrTmYtWZPyl1/P3/cR/z7//XuhCe/q3TRsnkCPezT8DxFgwv/3CL5CTpYvnBI2 egGvm5KvhH/dB/1RlO0WKVQpoz/VptjRGCsnasVuvwl0h38etplYvW6B/Fj+a/zccPLq /G+Z01DqXBwadzDbLHMMVwABz1cOn26OXvs0HL08prgl+50dQsZUqn0cUB+plia6S4jJ 43npgqmWv2TQrAd2pa4ZU3y18BcAfRJg29GbqvV3y4c4Y8uANefkaADUurR7EglE/bm2 5FwytQbVl9zaSD7RlZHVEK3YSUnWhbP2Sz3Ky09dVFB4IthANo3Ilbj97FWgjSFJudUb /jBQ== 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=nkiW4cgqcNA2wnsGokaWDqLEeknOpooJwCUovxh3/t0=; b=sr1cZiOXcHRxFUvmz+wTyxjUGv6SRqnecB2jcfam3RpJ6nWOjX37mfI3LHuOMSr2ZW 4DZrPPu5b9q+T1k3uPNi3eE67ZKeaEStbfNJIQzoeUpKzFhEu7jOhooFn0zaWUOkHg89 gwX2Eu0yQZn01Hnx2T53nts/7g00LmIVl/LibIpl1tuAoDZNJAK7Nk/wzeRvHo+DBUtq XqGv2r5Xf/NeQVQ9EgRA3wudwUR/U2qc+3gQiUVYtApsEi//CmgBr8Q0R6XFv9gVMK4l e3s9LvWSCtdpONIvQDKax8PJHmY0/UWLndwWZRu1ljZRfxEnqNQpihTQuLzd1LGiwGps jzNw== X-Gm-Message-State: AOAM533j5u+eRZa56KN57Ni7wqc2qk/qHgtl798sqwgZeTdlJe2z3pTk /PM6xp6SWCmdPufSNm7Ah8U= X-Google-Smtp-Source: ABdhPJwO9uQLiu2GkV4CtaEggt3sWUDSZKvcUbGB6QP4ZuBin8SqeYGmAsGACL1bAgy+QKhbntV9uA== X-Received: by 2002:a17:907:970f:: with SMTP id jg15mr4821340ejc.59.1622507612543; Mon, 31 May 2021 17:33:32 -0700 (PDT) Received: from localhost.localdomain ([188.26.52.84]) by smtp.gmail.com with ESMTPSA id g13sm6510521ejr.63.2021.05.31.17.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 17:33: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 , Maxime Coquelin , Heiner Kallweit , Russell King - ARM Linux admin , Florian Fainelli , Andrew Lunn , Vladimir Oltean Subject: [RFC PATCH v2 net-next 1/9] net: pcs: xpcs: delete shim definition for mdio_xpcs_get_ops() Date: Tue, 1 Jun 2021 03:33:17 +0300 Message-Id: <20210601003325.1631980-2-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210601003325.1631980-1-olteanv@gmail.com> References: <20210601003325.1631980-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 X-Patchwork-State: RFC 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 --- 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 */