From patchwork Sun Sep 4 06:38:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75344 Delivered-To: patch@linaro.org Received: by 10.140.29.8 with SMTP id a8csp1666890qga; Sat, 3 Sep 2016 23:39:08 -0700 (PDT) X-Received: by 10.67.22.39 with SMTP id hp7mr42749353pad.19.1472971148404; Sat, 03 Sep 2016 23:39:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 75si12658114pfv.149.2016.09.03.23.39.08; Sat, 03 Sep 2016 23:39:08 -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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752781AbcIDGjF (ORCPT + 27 others); Sun, 4 Sep 2016 02:39:05 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:35008 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbcIDGjE (ORCPT ); Sun, 4 Sep 2016 02:39:04 -0400 Received: by mail-pa0-f53.google.com with SMTP id hb8so52513115pac.2 for ; Sat, 03 Sep 2016 23:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=T67IpA751c8yEGdKJN8g5fI+BCoB+i65s1NlIkpLPSA=; b=VepySuNTkerFKE8/49/YWQ09DbqhwJ+aFETMl8Seg+iWfk6WGat5Xgfk+edVenNEK8 3raCVImqj/Ya3mzmFss59Wc77A0IH9NP6v16y9Y5esu9AJoCYs4deq3Oqglp/1UD47Eb H62n86gDf9Pfw7niN0BH94Us1TDJ5rBmXkjWA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=T67IpA751c8yEGdKJN8g5fI+BCoB+i65s1NlIkpLPSA=; b=gr/pmCIGe51V93+LeglGJTecExSp0FwcnYdu0u6kjUHQdOeuFoAu/Q25EgDiA12hSl MxlN6fUmAcSZTDB+adjncR205/qJfBX/aCAJByF9ciHdyFXQJsB1RECmiR/+siZoRoxb HQ5UeL0V8Cc1LAh7kOWUEhMAsNlB61MLVeaBf86QXMJoNpu7keBHQ2XlF47ODipgDljD DQbLpR6nDZz2gAZEeKG51Jt3rldwp6d4BjE6CXGacldGc7vVvguXEJg+oUSB9gzXjDza 38AuCdu3sNXBbZHpijxBjxnAKVHYBwERDT2PU03x2BWcGSqg6BV8SvoPq2AlvO4Qo0wX hjtQ== X-Gm-Message-State: AE9vXwM4c95NjAIWDRuLqf2IPKi9n6BUJkP5VIeyV2S9O8aCs2SzpNEHmSOpLVFyoJ0cOkxm X-Received: by 10.66.131.48 with SMTP id oj16mr51263595pab.126.1472971143873; Sat, 03 Sep 2016 23:39:03 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.154]) by smtp.gmail.com with ESMTPSA id g24sm25397199pfk.56.2016.09.03.23.38.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Sep 2016 23:39:03 -0700 (PDT) From: Baoyou Xie To: gregkh@linuxfoundation.org, wsa+renesas@sang-engineering.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] staging: ks7010: mark symbols static where possible Date: Sun, 4 Sep 2016 14:38:39 +0800 Message-Id: <1472971119-4560-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 2 warnings when building kernel with W=1: drivers/staging/ks7010/ks_hostif.c:72:6: warning: no previous prototype for 'ks_wlan_hw_wakeup_task' [-Wmissing-prototypes] drivers/staging/ks7010/ks_hostif.c:1508:6: warning: no previous prototype for 'hostif_infrastructure_set2_request' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. so this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/staging/ks7010/ks_hostif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 Acked-by: Arnd Bergmann diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c index a8822fe..71b6ba2 100644 --- a/drivers/staging/ks7010/ks_hostif.c +++ b/drivers/staging/ks7010/ks_hostif.c @@ -69,7 +69,7 @@ inline u32 get_DWORD(struct ks_wlan_private *priv) return data; } -void ks_wlan_hw_wakeup_task(struct work_struct *work) +static void ks_wlan_hw_wakeup_task(struct work_struct *work) { struct ks_wlan_private *priv = container_of(work, struct ks_wlan_private, ks_wlan_wakeup_task); @@ -1505,7 +1505,7 @@ void hostif_infrastructure_set_request(struct ks_wlan_private *priv) ks_wlan_hw_tx(priv, pp, hif_align_size(sizeof(*pp)), NULL, NULL, NULL); } -void hostif_infrastructure_set2_request(struct ks_wlan_private *priv) +static void hostif_infrastructure_set2_request(struct ks_wlan_private *priv) { struct hostif_infrastructure_set2_request_t *pp; uint16_t capability;