Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp948872ybe; Thu, 19 Sep 2019 06:28:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzodkBnKoYqwPbjQajnf3Hl1pVgbZd/rT7UhSja5U62CfSBpQrg0Vis8wbWkU3/Tm2rwfsO X-Received: by 2002:a17:906:4a5a:: with SMTP id a26mr14375422ejv.154.1568899680293; Thu, 19 Sep 2019 06:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568899680; cv=none; d=google.com; s=arc-20160816; b=qiEeO/zu8zhU31/22ICpEnqrm1aJgcM3KT52QyPhRZHQSpBKEbM4g6EyXe/dN1hUfm 64ZA9EmSad61hH+oRA1zgUCP3Np1521OSqSZY4Ekck551h+LzYD0A8DC7glZRVKyzisu +e7zBJx9LSm0sGxpOVQiQOEjbecgaFkPiAVvWqooAgFcuvPwoP/wYUQXLML0Lgbq64Dd FalWyvOp7raMVkKMxiOPpoxtpbue5K/YaldRg/5MstNWJxRqNCvUmHLY6jbj1JTsPiKM D7fTF8XQcs7bx5DlMYLvUevzLhX0RfkzEoW+jxTE9JbY8nkJReqfEjtI7J9OpF76lA7u NCpw== 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; bh=KVMbhT7QQ4M5ENqJkj1COZVVxpx1oCTUCfLFvEUBkpk=; b=YJ6PiM9kCd9isZ4SDSm87yXVZ7KgAUdq+e+C81wXsRN02zsT5gN8Lu2Xqx6DfAmaGm WAnsL4mxlV0MPHMixdBG13g0DZ2bpDVSxyMaOZ0CFi4PDDKJZIWHBotP9j/3cCRVRub8 SzrTX9qb9Tyg/bJz4GAknL/Qb6jK4Is2JDqbZBCdnPVjv6/E1jHSTc9KPUSI5Fb0Hn35 hIC33DfQj5zPFYz6AqN1Kdwq0Qu7JPa3REhIjQUI/lVM2AQBg2kVwwJ/D2XZm2z8CGxk gO/7iyimVu8TgKs113TKZFweS5CfD38XaVH42WipcViMy2JqIsz4oIYz5cUXjDOmzn4y JJqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si4402745ejc.337.2019.09.19.06.27.36; Thu, 19 Sep 2019 06:28:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388726AbfISMK7 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Sep 2019 08:10:59 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36454 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388551AbfISMK7 (ORCPT ); Thu, 19 Sep 2019 08:10:59 -0400 Received: by mail-qk1-f195.google.com with SMTP id y189so3097767qkc.3; Thu, 19 Sep 2019 05:10:59 -0700 (PDT) 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=Rfjil+Gq/luy5INXzAP+YSY4vFtchBGrxw5c+694d1c=; b=ceVXQyGNSLMr5yEULRJK+2srb0yNaT7KzQEhFO1XymeRmKLgB0+G7sghWVKF3CXI6a OWSLh/3+sZkCwGZc6THoIpNJUAX8GKf1xvwIbClzNk78GkKpTsIdZ1U7N8WK4VDYC2ta DB8XumBx+zY4plY+0JRXHYGRBiNq/bB3CpkMIZq0Xb5gZuaALqGeq843jltvL/6Cqbxj AQin3b2FpvUhvILIuMooQNvCG6yznhAUt1+VAEO8z8y934w+gynnPF1qXOcfthQkH/KP sHhJuhqTy0FN+qxN3XZVwKUYxhRFXGXHirAYbeGxR0L7iROrSJ90zYVkoKTjAhPLGIDp Cc2w== X-Gm-Message-State: APjAAAWw+I4sPIe8Jhzp8oZ1PpQ3tR9JvhNRuf183lfxfSmRY+2zUmFl Zxu5SZJnX0fQYjG6oys2kbhl66eu+gDwJ4AstK8= X-Received: by 2002:ae9:c110:: with SMTP id z16mr2567279qki.352.1568895058438; Thu, 19 Sep 2019 05:10:58 -0700 (PDT) MIME-Version: 1.0 References: <1568870297-108679-1-git-send-email-decui@microsoft.com> In-Reply-To: <1568870297-108679-1-git-send-email-decui@microsoft.com> From: Arnd Bergmann Date: Thu, 19 Sep 2019 14:10:42 +0200 Message-ID: Subject: Re: [PATCH] Drivers: hv: vmbus: Fix harmless building warnings without CONFIG_PM To: Dexuan Cui Cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "sashal@kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Michael Kelley Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 19, 2019 at 7:19 AM Dexuan Cui wrote: > > If CONFIG_PM is not set, we can comment out these functions to avoid the > below warnings: > > drivers/hv/vmbus_drv.c:2208:12: warning: ‘vmbus_bus_resume’ defined but not used [-Wunused-function] > drivers/hv/vmbus_drv.c:2128:12: warning: ‘vmbus_bus_suspend’ defined but not used [-Wunused-function] > drivers/hv/vmbus_drv.c:937:12: warning: ‘vmbus_resume’ defined but not used [-Wunused-function] > drivers/hv/vmbus_drv.c:918:12: warning: ‘vmbus_suspend’ defined but not used [-Wunused-function] > > Fixes: 271b2224d42f ("Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation") > Fixes: f53335e3289f ("Drivers: hv: vmbus: Suspend/resume the vmbus itself for hibernation") > Reported-by: Arnd Bergmann > Signed-off-by: Dexuan Cui I think this will still produce a warning if CONFIG_PM is set but CONFIG_PM_SLEEP is not, possibly in other configurations as well. Arnd