From patchwork Wed Jan 13 14:36:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101178 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3402406lbb; Wed, 13 Jan 2016 06:36:55 -0800 (PST) X-Received: by 10.66.142.168 with SMTP id rx8mr196000723pab.16.1452695815781; Wed, 13 Jan 2016 06:36:55 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si2434284pfd.89.2016.01.13.06.36.55; Wed, 13 Jan 2016 06:36:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932597AbcAMOgx (ORCPT + 1 other); Wed, 13 Jan 2016 09:36:53 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:64317 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932577AbcAMOgv (ORCPT ); Wed, 13 Jan 2016 09:36:51 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0MZDVU-1ac0Nj22Q8-00KxZT; Wed, 13 Jan 2016 15:36:19 +0100 From: Arnd Bergmann To: gregkh@linuxfoundation.org Cc: Johnny Kim , Austin Shin , Chris Park , Tony Cho , Glen Lee , Leo Kim , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] staging: wilc1000: remove extraneous variable Date: Wed, 13 Jan 2016 15:36:17 +0100 Message-ID: <17929596.uVo1cdZGxo@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:9Y+SlxsuMSa9lrQdUufehMVozXlA2qr60Az5/M4hbvbo3vtScIr Iy2DmrjBt+kvjOL0f4uJ3lpZ5KrhowyQPaeQuDFh04YA8mHkwvm6dPRv+TLk9xuf8s5oZ+W hYmocqAIbNlSB5n24FDQcYJzRuBPeIdoYlAOLfLd6nJEiCeujxg8y+pimjRvqRxZ8C76bEB SWKRecOiPIEO8jjd+JzEw== X-UI-Out-Filterresults: notjunk:1; V01:K0:765kF6/fmtQ=:0xtiWZvp9Y4txlMO8hwE3B Q/ivBLuuY2v1Y4Icdw1b8I82OLQVBjZ+GvWslBJCjDAyIbM00Anlnjsi5bJgvTk80/kKUtnzq ig8x4MEEfmRZWW5NcCghO5u+pxpzdoTxad+70jnMWF0tw0anNaKDj598BeUFV5NYsDzwOBbr5 2u2CiYELXLAU0edDpRnvkjibLTjCAmPH+WxH/73cpXcc1tnuFWw0DKQNloqnctjmMgAp0jcp/ 6GnYCG5PznEmR5L46wuZITct9OtEc+I9bDxaxQCW0YJoEkccfR5OPDvsXKYIMUVOY4khmEHSk zu0uFMUbFZ0kSIFaRvlIUducBf5GTZ1y4FIh3BNEtVvJYMahSbJOkvnkVe7dmUy9cSxqvj+bv UOU94SwUn+RS86tSCXa5bqucHO+Ko1mHJmt4VrEtEN/Q48tGGWPYOI7omU/frpYNDFWcDtKKy 67oeefna7J9DHXGTHXdt59F2AykOuy69rezvOFfp9DEXRQAZHbB34JLR36i2PP7kmmCjrZ1vh jt0V3VLEBtsCIsgu//Erb5ZYphKuvCBQ3AXKv+XqZT3AqhTrWYBrVq4OOSxFC0LalvWKASo01 tN8Q5zhtBIeU10AaIKgigaFI3z1hY9Klkdde9AL+e7Lpg7VPsKCR90AFdkAXHIsaPEVFsVilL ftrbR6yVGfjNYPtINo0Oe1lvZ3xgSYFpsK2uBR7BUqVwjupXo/hqqcYjqEYHeFuOXKrhkZymf WGkG7Mm06VIJrTPM Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Building wilc1000 with clang currently fails in the staging-next branch: drivers/staging/wilc1000/wilc_spi.c:123:34: warning: tentative definition of variable with internal linkage has incomplete non-array type 'const struct wilc1000_ops' [-Wtentative-definition-incomplete-type] static const struct wilc1000_ops wilc1000_spi_ops; The reason is that wilc1000_ops was left behind after a recent cleanup, and is completely unused and also uninitialized and const and has an incomplete type. Removing the variable is obviously correct, and gets rid of the warning. No idea why gcc does not complain about it though. Signed-off-by: Arnd Bergmann -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 86de50c9f7f5..b3d6541b3896 100644 --- a/drivers/staging/wilc1000/wilc_spi.c +++ b/drivers/staging/wilc1000/wilc_spi.c @@ -120,8 +120,6 @@ static u8 crc7(u8 crc, const u8 *buffer, u32 len) #define USE_SPI_DMA 0 -static const struct wilc1000_ops wilc1000_spi_ops; - static int wilc_bus_probe(struct spi_device *spi) { int ret, gpio;