From patchwork Tue Jul 17 10:09:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10041 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 438F223F08 for ; Tue, 17 Jul 2012 10:10:26 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 0C428A18609 for ; Tue, 17 Jul 2012 10:10:25 +0000 (UTC) Received: by yhpp61 with SMTP id p61so186409yhp.11 for ; Tue, 17 Jul 2012 03:10:25 -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:x-gm-message-state; bh=stWy2HwHWyhAel9lQZI22NJViGwOOBG2uxTpgeBWHzM=; b=CNJNkKJJIm0N79X3aOf8U9X9rWxVfp6SJD3yJQql5A9ZoGmC0ZUyvz+eCqe+l04Ktk 15+o1MuJx36GzKEDkv94sND/VUhkIAfHNkPpr8koXURr/t1VtiGvx2iSaSz78EEovrP2 1Cbz0ipOeh34lwzI1Dwv4j30KbG3+BCBH0hISnAAOLn2EISomRqT7Vz0R5Im8/MUyNFp OcnU85qOQoIGGdY+0IWeuqinkxoB8IKusuaPHbDaI875a7ZcG6CXH4V1n0ICbJa22cxC uQH6/8qyaJz/ub7gWjL4x1hjBAd93oEEK+q+LxCT/iNuWndtVW8Bt5hpfE9De/qNbcN9 4KmA== Received: by 10.50.203.39 with SMTP id kn7mr768237igc.53.1342519825287; Tue, 17 Jul 2012 03:10:25 -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.231.241.2 with SMTP id lc2csp17299ibb; Tue, 17 Jul 2012 03:10:24 -0700 (PDT) Received: by 10.68.201.9 with SMTP id jw9mr5909775pbc.28.1342519824464; Tue, 17 Jul 2012 03:10:24 -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 go9si32805136pbc.127.2012.07.17.03.10.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 03:10:24 -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 pbbrr4 with SMTP id rr4so708948pbb.37 for ; Tue, 17 Jul 2012 03:10:24 -0700 (PDT) Received: by 10.68.227.198 with SMTP id sc6mr4985496pbc.138.1342519824025; Tue, 17 Jul 2012 03:10:24 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id wf7sm13772428pbc.34.2012.07.17.03.10.21 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 17 Jul 2012 03:10:23 -0700 (PDT) From: Sachin Kamat To: linux-pm@vger.kernel.org Cc: rjw@sisk.pl, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/3] PM: Add missing static storage class specifiers in main.c Date: Tue, 17 Jul 2012 15:39:54 +0530 Message-Id: <1342519796-19324-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkjdb05JDbKvKz4nwunz4Pcup/+bQVKU0uY+rZ2GmGLLl/km88jDtZZqxn7MnejPDKaX3qI Fixes the following sparse warnings: drivers/base/power/main.c:48:1: warning: symbol 'dpm_prepared_list' was not declared. Should it be static? drivers/base/power/main.c:49:1: warning: symbol 'dpm_suspended_list' was not declared. Should it be static? drivers/base/power/main.c:50:1: warning: symbol 'dpm_late_early_list' was not declared. Should it be static? drivers/base/power/main.c:51:1: warning: symbol 'dpm_noirq_list' was not declared. Should it be static? Signed-off-by: Sachin Kamat --- drivers/base/power/main.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index d791950..61a891d 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -45,10 +45,10 @@ typedef int (*pm_callback_t)(struct device *); */ LIST_HEAD(dpm_list); -LIST_HEAD(dpm_prepared_list); -LIST_HEAD(dpm_suspended_list); -LIST_HEAD(dpm_late_early_list); -LIST_HEAD(dpm_noirq_list); +static LIST_HEAD(dpm_prepared_list); +static LIST_HEAD(dpm_suspended_list); +static LIST_HEAD(dpm_late_early_list); +static LIST_HEAD(dpm_noirq_list); struct suspend_stats suspend_stats; static DEFINE_MUTEX(dpm_list_mtx);