From patchwork Wed Oct 26 09:32:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 79382 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp309051qge; Wed, 26 Oct 2016 02:33:18 -0700 (PDT) X-Received: by 10.99.135.200 with SMTP id i191mr2101393pge.18.1477474398474; Wed, 26 Oct 2016 02:33:18 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si1332425paq.284.2016.10.26.02.33.18; Wed, 26 Oct 2016 02:33:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1758420AbcJZJdO (ORCPT + 4 others); Wed, 26 Oct 2016 05:33:14 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:32769 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758115AbcJZJdL (ORCPT ); Wed, 26 Oct 2016 05:33:11 -0400 Received: by mail-pf0-f175.google.com with SMTP id 197so12967071pfu.0 for ; Wed, 26 Oct 2016 02:33:10 -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=Q7NXQKKEMqHi07suS80doyp0lJeL7VAHipGNXO0JNRw=; b=CqWyg7K6tUKrt4CEw4lCyLi/qyhLjj9QljNftt9+mXGMSkzdrpEjyppbp2jHtmWIWS +MESp49P1drulxP0Ne1U3BQxXylhwBAXxJhT1//Tiob47cSM1/6xR1OAwEMrRhBxAJ/H m9zSHgD98PSe4Xtowt39eWUPC1D2C1igiYfBU= 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=Q7NXQKKEMqHi07suS80doyp0lJeL7VAHipGNXO0JNRw=; b=f6W7TBfd14PLLk9vjsPcWMGOK+Maej8YBZ5Bk5WT1K3nGekzNmTg4A1wLZOdGZX/oo JhV1DivLKuBSjuVC9gcclUeeVFICXURYchiGkezkVOW0TT8JQo1Wr+6G21BnD/4Vkmf5 /Mq17HhR0u1sjjim1qmkoB1DUcAjBiqgoWqhMJc+6z0Bsf0E9id/1X1q98aSVzKlCClU LlKTCRCDBMJZXVVz35NdSUzw2v4h/0GNa+vyce0ouP9fuM9cu0rYG5IhJ49QJU5kdf2D nztFlPLn4uIlUca3AP9KpkPKHtk/C9mHGBM8EPiramj5zVvRdZv8Ae3L5udty1XuMoEd nzWg== X-Gm-Message-State: ABUngvcChzPEgFgkRXGor4Xnj8RD761Q41QR9U/75PZthHM7WrbN9eE8dLmdyHTyBcAeb+bx X-Received: by 10.98.138.219 with SMTP id o88mr2551843pfk.52.1477474390377; Wed, 26 Oct 2016 02:33:10 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.87]) by smtp.gmail.com with ESMTPSA id x16sm2749669pff.39.2016.10.26.02.33.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Oct 2016 02:33:09 -0700 (PDT) From: Baoyou Xie To: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH] rtl8xxxu: mark symbol static where possible Date: Wed, 26 Oct 2016 17:32:50 +0800 Message-Id: <1477474370-31383-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c:1557:6: warning: no previous prototype for 'rtl8192eu_power_off' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/net/dsa/mv88e6xxx/chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 883fd98..4d975f0 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -2701,7 +2701,7 @@ static int mv88e6xxx_setup_port(struct mv88e6xxx_chip *chip, int port) return mv88e6xxx_port_write(chip, port, PORT_DEFAULT_VLAN, 0x0000); } -int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) +static int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) { int err;