From patchwork Thu May 27 20:45:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 449311 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 0E0C3C47089 for ; Thu, 27 May 2021 20:45:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D6AD5613E2 for ; Thu, 27 May 2021 20:45:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235760AbhE0UrR (ORCPT ); Thu, 27 May 2021 16:47:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235379AbhE0UrQ (ORCPT ); Thu, 27 May 2021 16:47:16 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1606FC061760 for ; Thu, 27 May 2021 13:45:42 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id e24so2274995eds.11 for ; Thu, 27 May 2021 13:45:41 -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=Z4oTJB5Y74wha5BkSsO7Ho0Udg0OuV7TlLRz/9wZZ1TLuBpkCD3K7yFSKzB4NNmBI8 Gu3LzaUkgsjBf001vHgVrrddG6liaV/R9IepZFN/5j4ICE8LuVAhIwK2rQW0SqaMmp3t gPsynwyX2DaqlqJ2D20/DkF96P6HT9i0JS8IaMil86Is8v0Dww4Q1s11naTj+/kQ2SEn T3CCO9c+JjDNkZ1LfUE89bUenZv4XKoB89xBFwDPsdqHkqxgazi35qiv0SU7+rViw9e2 rsD/I+xB52ODKE7BGkAPfTNR+UbRoKcHy8K2GEnVJGs6knvhOUCRn1jGq0p89z3jk4uJ cpsA== 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=UhlfOK2YkVRllEQD45IpR7/ZaYHi5C9EA5uJsYkWyRaBGDZhVbvNCyjvZHdD9cMvIi xvgPOr9w71rHWANmlTOy01NlXs+6ayKK9zrECKb/W81nyCfUavWXMWV3J5XaFk9TCjyG dU1g+BvTtxaLXbZt5ITqBdobqB0YCQeIZG39QxfnUWOZYoNs6DfzH3dZ8AjjQPn6pPhi OUGJ/yUPUggPWfNfOhVJ0TCwQMoYafOVSMfV6FsNdXNMAllCQUrE3PIPlzQ1q3eb6/iQ VgRbVOqRJHT3bW3rhxksmokBU5RnYfoHMOkr3T57Z4AhJ94oFtHsdwrl4UAR1kPFtg1s Ag7g== X-Gm-Message-State: AOAM531ynFOFVvhVL6nuULyMTXOhl7nhj/YulnguyNcNBx4wLNPJUA0K 18UIR2CJnZPmuSFW+7hxPRc= X-Google-Smtp-Source: ABdhPJyYByVl7G+keupLijkhy1dJY61aYv505FjG03VqtvoMIxDHTl0kXTm+v+je5fEhmwUVW5zeNg== X-Received: by 2002:a05:6402:14d2:: with SMTP id f18mr6478692edx.259.1622148339318; Thu, 27 May 2021 13:45:39 -0700 (PDT) Received: from localhost.localdomain ([188.26.52.84]) by smtp.gmail.com with ESMTPSA id g11sm1654145edt.85.2021.05.27.13.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 13:45:39 -0700 (PDT) From: Vladimir Oltean To: Jakub Kicinski , "David S. Miller" , netdev@vger.kernel.org Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Heiner Kallweit , Russell King - ARM Linux admin , Florian Fainelli , Andrew Lunn , Ong Boon Leong , Michael Sit Wei Hong , Vladimir Oltean Subject: [RFC PATCH net-next 1/8] net: pcs: xpcs: delete shim definition for mdio_xpcs_get_ops() Date: Thu, 27 May 2021 23:45:21 +0300 Message-Id: <20210527204528.3490126-2-olteanv@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210527204528.3490126-1-olteanv@gmail.com> References: <20210527204528.3490126-1-olteanv@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.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 --- 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 */