Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1326743ybt; Tue, 7 Jul 2020 12:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6p5txikT8z5l+pBlswZUkFzRaUyiIF3j4RlRGCB0bHpc/YmHcur0JZjh0dumQ/rLHc7Nv X-Received: by 2002:a17:906:c285:: with SMTP id r5mr47745570ejz.153.1594151922484; Tue, 07 Jul 2020 12:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594151922; cv=none; d=google.com; s=arc-20160816; b=u12ganiqzsLi88so2aPODROktYsH8SF5Q7thuCRs29HSXCJpLNmci5oUc960d/F2PA 7/1NSqWdatpaZTZMDjo9jMe9kV7QT6n3k8sJ7EHh/X3Qpk0KbrQLqk2UqP29LuEyyraR rcNPjGgJdGhmy/0Hxw+D5DL36w+X522pprBYlPXl2SA+PqRNwOqy/xnuYkFdLQy89cMn Uk4EuY+SUxvY2BVh4XXb4Le7lXpVbk6FOYa4+wO/D+Uc8/OtN6QBOXHNm7H5/ZcY2SLS ddnfbe5b5NAmsJCtVkdW8QgcnYhCWzkIbo4RIAyOkSjsAq0hL6HYuTL7t2iTf8PulhK6 Y7Zw== 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=T5mVGBNjKeIm4Gsdz7S7KAhiR3LrD1nClM2V1s4uXbU=; b=u67MNCeBQAXJbfwWviWjxvYS5zxrJAzp4D5RsCFLJH5rVhaO0rMMAIQjasaRcjxcSN hChtEVmZKMQy+pqsswWPDuFQ5D7jgypjOq6z1M+HJC4t/DO39qIdyPC2cndaNmN+v/fW kwRhdCeVbwUaxEX+zQzYwwlx+lLdaWrW9YkSNh2msZ4xTr4rmFuoSmz7GaU9b3em9bKB igjjU2gr8A2iid0sMhYTN7aTZ2Xqtss3TC+8/eZ48szHLbzMdkfCQ9yt1OrLLpyDLE1l PPHm1549ikt4nNIzKsBEhIZ/YPNQsccK5b40opsCcDvPcjp9UGoR0xz5ZrQfiz7aZr+h T6aQ== 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 v10si15704221edy.595.2020.07.07.12.58.18; Tue, 07 Jul 2020 12:58:42 -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 S1728777AbgGGT5Z (ORCPT + 99 others); Tue, 7 Jul 2020 15:57:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728523AbgGGT5Y (ORCPT ); Tue, 7 Jul 2020 15:57:24 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2916DC061755; Tue, 7 Jul 2020 12:57:24 -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 0BCD9120F93E0; Tue, 7 Jul 2020 12:57:23 -0700 (PDT) Date: Tue, 07 Jul 2020 12:57:22 -0700 (PDT) Message-Id: <20200707.125722.100914573433329091.davem@davemloft.net> To: vaibhavgupta40@gmail.com Cc: helgaas@kernel.org, bhelgaas@google.com, bjorn@helgaas.com, vaibhav.varodek@gmail.com, kuba@kernel.org, sfr@canb.auug.org.au, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: Re: [PATCH net-next] sun/niu: add __maybe_unused attribute to PM functions From: David Miller In-Reply-To: <20200707074121.230686-1-vaibhavgupta40@gmail.com> References: <20200707074121.230686-1-vaibhavgupta40@gmail.com> 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]); Tue, 07 Jul 2020 12:57:23 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vaibhav Gupta Date: Tue, 7 Jul 2020 13:11:22 +0530 > The upgraded .suspend() and .resume() throw > "defined but not used [-Wunused-function]" warning for certain > configurations. > > Mark them with "__maybe_unused" attribute. > > Compile-tested only. > > Fixes: b0db0cc2f695 ("sun/niu: use generic power management") > Reported-by: Stephen Rothwell > Signed-off-by: Vaibhav Gupta Applied.