From patchwork Tue Jan 18 22:24:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1581562 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Jdjy85McMz9sRR for ; Wed, 19 Jan 2022 09:25:02 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2C94A830DE; Tue, 18 Jan 2022 23:24:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 23E6783103; Tue, 18 Jan 2022 23:24:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 732F482F73 for ; Tue, 18 Jan 2022 23:24:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tom.rini@gmail.com Received: by mail-qt1-f175.google.com with SMTP id y17so425149qtx.9 for ; Tue, 18 Jan 2022 14:24:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=YmAH9/TTJR8xzQfWftnAzvKJX5IfbabkCDh9GIAY7ck=; b=08b4kdsDI+/1dO/WFTTP57EOJ/OL0yMrQ+/tPx0PFvK9z5ppH7uSoAkrB6SLkJtBZo 1q5b/XREYqvlqd+05fOoyyRObXw4IKUwCaRjdP6MB9zoLQcSZWRoGniTLAy4MP1F3jXH f4UJMRxsR1EhjUqxUx2M51gfaH/vf51kQaHEIoHfXeZpIL/bwsXcfsGjG7x0VaskOF32 gtTMABHTjz7OA0UU9DYBKmTGRHaOrhaH07ZCmFMY3WEZYee9i6igs1K3w8ik1KLgOMq5 G/ymN9ko1szVZoyF4DZy4VFPxluyuJbt/Ny1AeYur1NHzuOpNKFTociaz2fBf6Z2/l1I OSYw== X-Gm-Message-State: AOAM531CWUvQ2ldtYHkZMLOo9nn2TC/46/a2IH3M/RrCm+zcSkNHpNrN gzlP0fxttS/GY8bAVokNHqZSOuEfgw== X-Google-Smtp-Source: ABdhPJzino+XmbaDUuKWEKXpwJqvrENS6+pFuum8spiamgPw5nbRzDP+45nWABkE3aWNmdJKwBPpoA== X-Received: by 2002:ac8:5217:: with SMTP id r23mr21940367qtn.238.1642544683967; Tue, 18 Jan 2022 14:24:43 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b01-cbda-ec5d-c40e-552f-ed0c.res6.spectrum.com. [2603:6081:7b01:cbda:ec5d:c40e:552f:ed0c]) by smtp.gmail.com with ESMTPSA id m8sm4671824qkp.93.2022.01.18.14.24.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 14:24:43 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 1/1] miiphy.h: Remove CONFIG_DM_xxx guards Date: Tue, 18 Jan 2022 17:24:40 -0500 Message-Id: <20220118222440.3057250-1-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Function prototypes must not be guarded with ifdef tests. Doing so prevents us from doing: if (CONFIG_IS_ENABLED(FOO)) func(); as that results in a warning when CONFIG_FOO is not enabled. Signed-off-by: Tom Rini --- I forgot that I had this applied when pushing before, as it's required by the aspeed mii changes. include/miiphy.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/miiphy.h b/include/miiphy.h index 8b77bac01e6a..77a00359587b 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -126,8 +126,6 @@ int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg, #define ESTATUS_1000XF 0x8000 #define ESTATUS_1000XH 0x4000 -#ifdef CONFIG_DM_MDIO - /** * struct mdio_perdev_priv - Per-device class data for MDIO DM * @@ -185,10 +183,6 @@ struct phy_device *dm_mdio_phy_connect(struct udevice *mdiodev, int phyaddr, */ struct phy_device *dm_eth_phy_connect(struct udevice *ethdev); -#endif - -#ifdef CONFIG_DM_MDIO_MUX - /* indicates none of the child buses is selected */ #define MDIO_MUX_SELECT_NONE -1 @@ -206,5 +200,3 @@ struct mdio_mux_ops { #define mdio_mux_get_ops(dev) ((struct mdio_mux_ops *)(dev)->driver->ops) #endif - -#endif