Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1048455ybm; Wed, 27 May 2020 14:53:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiJnJHWro0qwMvpBNvr9EUnUkTR7nOZZISCWlUWYbfZ1RA7SdAyY4zswCHHNelVkPfzVVy X-Received: by 2002:a17:906:dbef:: with SMTP id yd15mr330917ejb.5.1590616390725; Wed, 27 May 2020 14:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590616390; cv=none; d=google.com; s=arc-20160816; b=lfcc+XeQopLGlBRsSaQX4la+1Fm9LGXXlhRArhG8YpbpCXP/CkLFdQz4WnOaA+QDbh GVan8rJWqIZyg1PpLEsieYnzUegSQMnxVxtvxr5rkvg4bs2jtXYeiESlIG3SMwRn72IV uA3yMthRWhwCl1si0FcNe8u+KhUCjn1P6+yc3JGxYCsh/GlpouMUjsRm5Wgty1bLKmUE 3W3o1Z92NcAzMGaQE4hLbokKI8t+BG6BN7ADn1uREtNOkomFGfeDUGbiVx45YjEZ1zYi XLYepuwEvGU5Q5WUHcVsRfj1HQTUlKM52Ax6xxjXt9cyZbkIq2jCs0QeWK6Ef/MJ7o71 mpmw== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=S26XMK4bMSioIjYbFL2vg5tnIyTts9G9OaAjTT3Hz2Q=; b=tQhEUgBUPnKSAmvjJpjixDpOn8kvNaaBXmtiru0F8lPwBC3wmz4SJfAyVkp+atcQU6 mAelZXdD6iKadVX1lpxit5e4GtAFsfq/NGyojtJYkadurGwQPKYUycpQH1odH9XpBBT7 gu6swxBrPwrSrnvialzRfFd26aEr1GDf1iGsY03R9dvBydyXskQL5KMOHLo/IPLfHK7p c782UngXrSs6zeRssHaA5fo9/XYaerVXoYgDqQE7YMJQ+GwkEdxwBfvgAX/kqcyJe7nq 07wa/EEvtOHO6ihM18/zvp/HOat4uSlDqsSmdRpaG6zcwYYNNcSrWQ8Lw3xHKvmiBTHP i4Xg== ARC-Authentication-Results: i=1; mx.google.com; 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 q6si2440863edr.270.2020.05.27.14.52.48; Wed, 27 May 2020 14:53:10 -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; 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 S1728264AbgE0Swh (ORCPT + 99 others); Wed, 27 May 2020 14:52:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725320AbgE0Swg (ORCPT ); Wed, 27 May 2020 14:52:36 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEA4BC08C5CA; Wed, 27 May 2020 11:33:06 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id CD85F128B2F5F; Wed, 27 May 2020 11:33:05 -0700 (PDT) Date: Wed, 27 May 2020 11:33:04 -0700 (PDT) Message-Id: <20200527.113304.2239513103439192680.davem@davemloft.net> To: arnd@arndb.de Cc: nbd@openwrt.org, john@phrozen.org, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, kuba@kernel.org, bgolaszewski@baylibre.com, matthias.bgg@gmail.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [net-next] mtk-star-emac: mark PM functions as __maybe_unused From: David Miller In-Reply-To: <20200527133513.579367-1-arnd@arndb.de> References: <20200527133513.579367-1-arnd@arndb.de> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 27 May 2020 11:33:06 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Wed, 27 May 2020 15:34:45 +0200 > Without CONFIG_PM, the compiler warns about two unused functions: > > drivers/net/ethernet/mediatek/mtk_star_emac.c:1472:12: error: unused function 'mtk_star_suspend' [-Werror,-Wunused-function] > drivers/net/ethernet/mediatek/mtk_star_emac.c:1488:12: error: unused function '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 Applied, thank you.