Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp899921ybm; Wed, 27 May 2020 10:38:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyfrZnSFKXnrjvIVYtD3/gnVLsY/Ov/nXNBk4P5ej7K6/gjY2S7/XfsWrw/cjomPiNL3dW X-Received: by 2002:a05:6402:155:: with SMTP id s21mr24457744edu.144.1590601120577; Wed, 27 May 2020 10:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590601120; cv=none; d=google.com; s=arc-20160816; b=wqPOPeyHHUMz3o60bsHQTm+bm9hdte+/HCZ8z/eNPcvPp9EzLaVADKAn/QFfJqVRXh Y/bjCT5xPnXidwUgooNfj87e8Pqjp/N53LFYa2tPUbPSTxuhi7U8J9FkChkeY7dqP7D+ GXXfPtnmZTxiNchVnKDwUN7QIa8JeGM6KdYHC2djRNJTV9jMhfNyRasA+nkILG5PZ14L WoGgvmTX+8US3IHy2c9PTe3OS0plAG+BtNSCAfGh3kcMiofLlSvX2W69VTK8bJsGqPFl KgVmtClqTevwA0VCo4TQ6Ve1xgb6C5SFstHXiRid5jsyxhZcJcwI9ViuBCIqvFR7r/i6 DK3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=K5fHO02+PN/2Q6ZCPK4dYN19pxbY+Th3EZc6EUW67vk=; b=rrxvfULR62m0fNfJgKugUtuz6QarDYNlZRg2XDWHvKpAfkpafvilJRoI3YabaRyHYZ YhjXH/dOexch128vpg2XDmO7AosAYUOIaxguEmVfrxWosW9xQtt5rAbHTJqixd91yxiQ 4D5LncUFwRazy5Nwop5W2eMF/JLiLQcSbtMNixNDZ6dJKyGwMoYFmUzCxrjMJ9QQ0x7G XIuQuh82Wk4fXTf0yj2Rr1Lr3dlZ+IDaQkpTtl+TNKCJWdgNSfzmsZmQhTSjPBSaKg75 k1oPT1GvjYFOeRKYtPutno2JJDzvU6c1jlTL3kmRK2DIwvHSCBZXLAqubJyJ55Qk8wYv 1FnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=D9iYOTuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si2256953edl.566.2020.05.27.10.38.17; Wed, 27 May 2020 10:38:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=D9iYOTuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388426AbgE0Nhx (ORCPT + 99 others); Wed, 27 May 2020 09:37:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387682AbgE0Nhx (ORCPT ); Wed, 27 May 2020 09:37:53 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A86BC08C5C1 for ; Wed, 27 May 2020 06:37:52 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id z1so7020607qtn.2 for ; Wed, 27 May 2020 06:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=K5fHO02+PN/2Q6ZCPK4dYN19pxbY+Th3EZc6EUW67vk=; b=D9iYOTuJuftIfysOzhwmQ0vn4d/vsEei6RY106AsYqM+lY2JkboSBXkTeZABIrmuxA 767ViAm38EWF6tO26zBKiyf6W+hmOrYxdHQBw4nEUtjSeqYWHHXf/kXKzamdnyqE+B0/ NcN6NfN9X+hx601WT5qZpx844inwztmEtCS5m3mE2eThHgNWjuM7Cjlr61cosLwzjU84 bfVc91qe0YOmWi/Oeb+6nLrWWrGErBHH26EzrhxqM7p0pCb8MaMuVOxX7aEgBjhO4l/p rQrt4YogqHaPQJSlS86Uiw3CtXzfIQnRG8unL3g8T/mG4LMJUi/6R7d2NEiR8Kn45trT YiJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=K5fHO02+PN/2Q6ZCPK4dYN19pxbY+Th3EZc6EUW67vk=; b=uYOvz6lCZ9R/dxpmZvQZCddVKtgCvhEp6+Cy/ztHGkPdDbA0kY/1pj7N1cKLQDOr7s 3YoGFJNAQeeziyWSnnhd+By8SyhJpnrKKcY1UjtBqJnp64mNgyJXGzmQES3Qi2hhAFMZ lUp0AXmHnBv4MFbo24qsbrdTj1AfqP2heukb9Mhsip7ur7RlcYTvvFCr6O2f8ufl0AFV +PUYxs+ZBmAXqWrWc1Vv8n5CdtHcfZnPlDmfjsAhYIGqCuFstvIciNWnc2H0oMEegIJh Vtit/ZtdN4/cbDmSzBQUA/6NMjp+YlpzBOQMxlcsml5o3pBgsft+2J9nLO0oHOzShHMd Frsg== X-Gm-Message-State: AOAM5306mKVbRHEF8seYRZajBQCRffqwTbdfHXP4h40azVH31yyeYO+L RoIp1t2OA+3slgtG2qFw0tJB1fwu5uAolfBJ3SL/C+Z5 X-Received: by 2002:ac8:2242:: with SMTP id p2mr4052242qtp.27.1590586671749; Wed, 27 May 2020 06:37:51 -0700 (PDT) MIME-Version: 1.0 References: <20200527133513.579367-1-arnd@arndb.de> In-Reply-To: <20200527133513.579367-1-arnd@arndb.de> From: Bartosz Golaszewski Date: Wed, 27 May 2020 15:37:41 +0200 Message-ID: Subject: Re: [PATCH] [net-next] mtk-star-emac: mark PM functions as __maybe_unused To: Arnd Bergmann Cc: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Jakub Kicinski , Matthias Brugger , netdev , arm-soc , linux-mediatek@lists.infradead.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 27 maj 2020 o 15:35 Arnd Bergmann napisa=C5=82(a)= : > > Without CONFIG_PM, the compiler warns about two unused functions: > > drivers/net/ethernet/mediatek/mtk_star_emac.c:1472:12: error: unused func= tion 'mtk_star_suspend' [-Werror,-Wunused-function] > drivers/net/ethernet/mediatek/mtk_star_emac.c:1488:12: error: unused func= tion 'mtk_star_resume' [-Werror,-Wunused-function] > > Mark these as __maybe_unused. > > Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver") > Signed-off-by: Arnd Bergmann > --- > drivers/net/ethernet/mediatek/mtk_star_emac.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/mediatek/mtk_star_emac.c b/drivers/net/= ethernet/mediatek/mtk_star_emac.c > index b18ce47c4f2e..3223567fe1cb 100644 > --- a/drivers/net/ethernet/mediatek/mtk_star_emac.c > +++ b/drivers/net/ethernet/mediatek/mtk_star_emac.c > @@ -1469,7 +1469,7 @@ static int mtk_star_mdio_init(struct net_device *nd= ev) > return ret; > } > > -static int mtk_star_suspend(struct device *dev) > +static __maybe_unused int mtk_star_suspend(struct device *dev) > { > struct mtk_star_priv *priv; > struct net_device *ndev; > @@ -1485,7 +1485,7 @@ static int mtk_star_suspend(struct device *dev) > return 0; > } > > -static int mtk_star_resume(struct device *dev) > +static __maybe_unused int mtk_star_resume(struct device *dev) > { > struct mtk_star_priv *priv; > struct net_device *ndev; > -- > 2.26.2 > Acked-by: Bartosz Golaszewski