From patchwork Thu Sep 6 08:18:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 11206 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1420223EFE for ; Thu, 6 Sep 2012 08:22:08 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 1E143A18421 for ; Thu, 6 Sep 2012 08:21:12 +0000 (UTC) Received: by ieak11 with SMTP id k11so2386910iea.11 for ; Thu, 06 Sep 2012 01:22:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=+eHWOTmIaGL/tqlhABBbWgpWhZSlj7I5WHCtQIDLC+Q=; b=Opx+6sWBj6o2U+VN0p0Rh7ezF4gSM7hENL3X4ZzcrQQZYRyPFULcQgO5hZBBXf9SER KOlvZsQX7BxoWedlFBU2bYEkxUC4J9ScxUFdkUKwl2w2AoFNvOjJhnyIVzly2KqJvXGl Sgq1QRux/hMQq4U+X6anCwIKxom3BFs2R2a5c5rylpeUtY1tsqhKAn2puBU7y6s4HEK4 i4Z7DZege69Y1pZEz/2WaFJaj1q3OJ2cWNUdLhCMvqdhE0ioRhQqTT5Ka3tIVOAp7Vje UWPFmor5GQE+PjuDWWp1jMCITrbhgx4n1p8OyB//ICDBL0Tm6oBitYJwS5Y+7E6BAyW7 l/6w== Received: by 10.50.242.3 with SMTP id wm3mr9344528igc.0.1346919727091; Thu, 06 Sep 2012 01:22:07 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp303786igc; Thu, 6 Sep 2012 01:22:06 -0700 (PDT) Received: by 10.68.204.169 with SMTP id kz9mr3898943pbc.39.1346919725979; Thu, 06 Sep 2012 01:22:05 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id gk6si2524312pbc.305.2012.09.06.01.22.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Sep 2012 01:22:05 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbcmd12 with SMTP id md12so2388101pbc.37 for ; Thu, 06 Sep 2012 01:22:05 -0700 (PDT) Received: by 10.68.132.194 with SMTP id ow2mr3899730pbb.36.1346919725416; Thu, 06 Sep 2012 01:22:05 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id gh7sm961758pbc.29.2012.09.06.01.22.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Sep 2012 01:22:04 -0700 (PDT) From: Sachin Kamat To: linux-pm@vger.kernel.org Cc: rjw@sisk.pl, gregkh@linuxfoundation.org, len.brown@intel.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] PM/Domains: Fix compilation warning Date: Thu, 6 Sep 2012 13:48:57 +0530 Message-Id: <1346919537-13794-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQldMN6exhjo81fPUUGhs8Mt51HsFUZqbXSzXGF0L5/NqN/JU2qooNX7Oo4qKnGKVp3qTwAk Function genpd_start_dev_no_timing was accessed inside CONFIG_PM_RUNTIME macro but defined outside it. When the above macro was not defined the compiler gave the following warning: drivers/base/power/domain.c:96:12: warning: ‘genpd_start_dev_no_timing’ defined but not used [-Wunused-function] Signed-off-by: Sachin Kamat --- drivers/base/power/domain.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 12ad070..c22b869 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -93,12 +93,6 @@ static int genpd_start_dev(struct generic_pm_domain *genpd, struct device *dev) start_latency_ns, "start"); } -static int genpd_start_dev_no_timing(struct generic_pm_domain *genpd, - struct device *dev) -{ - return GENPD_DEV_CALLBACK(genpd, int, start, dev); -} - static bool genpd_sd_counter_dec(struct generic_pm_domain *genpd) { bool ret = false; @@ -296,6 +290,12 @@ int pm_genpd_name_poweron(const char *domain_name) #ifdef CONFIG_PM_RUNTIME +static int genpd_start_dev_no_timing(struct generic_pm_domain *genpd, + struct device *dev) +{ + return GENPD_DEV_CALLBACK(genpd, int, start, dev); +} + static int genpd_save_dev(struct generic_pm_domain *genpd, struct device *dev) { return GENPD_DEV_TIMED_CALLBACK(genpd, int, save_state, dev,