From patchwork Wed Jan 20 10:40:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101154 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3093547lbb; Wed, 20 Jan 2016 02:40:42 -0800 (PST) X-Received: by 10.98.93.131 with SMTP id n3mr46622071pfj.9.1453286442480; Wed, 20 Jan 2016 02:40:42 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id iu1si1888624pac.43.2016.01.20.02.40.42; Wed, 20 Jan 2016 02:40:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935137AbcATKkk (ORCPT + 29 others); Wed, 20 Jan 2016 05:40:40 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:51626 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934498AbcATKke (ORCPT ); Wed, 20 Jan 2016 05:40:34 -0500 Received: from wuerfel.localnet ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0MSJlD-1aj7hl2n75-00TYNb; Wed, 20 Jan 2016 11:40:06 +0100 From: Arnd Bergmann To: gregkh@linuxfoundation.org, Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Hurley , Jun Nie Subject: [PATCH] serial: amba-pl011: mark vendor_zte as __maybe_unused Date: Wed, 20 Jan 2016 11:40:03 +0100 Message-ID: <1973012.CU51qOk9Kt@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:cKLcsErwLM1fE9q1FXImG8CrCxoLsNRHblmIUCIvKPucILYgUnn MwuDAgBeJaqWdsTxTNagY83J8Oy+FwL/kyfLTuIJdOrrf8kBYYlePQj6JZzrgtMPAsrlQTz Ud/c+FIuMVCxE5kO6bgxGsCYr7KPh5BVyTyNlxBNlG+SsS9niBgJonmBGa9In+1FaCPuPLw 9544eV97s/jimHKIWXakQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:MYeADHrndQs=:elxYbsPpoiuTYp90v0IkCf myQ+inVepi3jXp/5oGHZ4iNKdO+yiB3bdM+NKT1devOXkv4DwKydji/BiGeNePoA0BZKhtRCa NKwQpBWXYq8T2Q7I/JwaCUCE9tx9iL1Oj7CjMjme+gP8cYJvUeL0Ppq6YAQsnYJ2Uvr0ovokp 5R08ZsZGCP2Dty3rukj77V8A1eaU5/3Fo5PsLc/sQzaMNBg3Q9B1gyrxoE/CIMnzaSnYtIkJG ZIZVnhsQA84X2UeejLthBKEPSb3J5ghlNavZRycdTPEkwuv1rhGrpcHc/zDl2e2s1vxakeNZZ bcoB1HhuK6u/a+J2GPtR/tfb3H8gd2QQvDNMjz9/KaX6SJNG9AKK/LYnS9aemOPUxFn8H7dMN TtC/wRW/fVw183hrr+Gkb2qGbwBahZR8iIt5YjSrMoJT/86S8gyJgmxezyRBhl3OMwheY/EG0 eaiVbB1geMg86pex+nBSiIVVHkJVU3p2p+7fSKfo0N9CZ4oBaOex8OqF1YUbakNNjZGOonlGw 1qJsqqQp7UuaHsw9Io3MELI/BcHqwaysbI43LbsA+6yJwbCY/jwp7uENBKpPPN3S3RIpJJPyt vPA0vB3jMlSdhPI9ro82lmOS23mHF9UEkOeF93cievWwj2hspsGQtrBFeNxy1Iq6ImDfOLaDg auXilznXrqCEDF3tKBN7+4HuWogEOAFJld2EVE+1hdSj+AhE01s7j0uNXIJc614IRBaHFYh13 M3JgX08A6w4X6F/t Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pl011 driver has gone back and forth on the definition of the ZTE specific variation of the hardware definitions, but the current state is that the vendor definition is left in place yet unused: drivers/tty/serial/amba-pl011.c:190:27: warning: 'vendor_zte' defined but not used [-Wunused-variable] I don't know what the plan forward is to get this code to work, but the current behavior is a bit annoying as we get a warning whenever we build this driver. This patch does not help us to make it work, but at least shuts up the warning. Signed-off-by: Arnd Bergmann Fixes: 7ec758718920 ("tty: amba-pl011: add support for ZTE UART (EXPERIMENTAL)") diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index c0da0ccbbcf5..4cdfe8f806df 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -187,7 +187,7 @@ static const u16 pl011_zte_offsets[REG_ARRAY_SIZE] = { [REG_DMACR] = ZX_UART011_DMACR, }; -static struct vendor_data vendor_zte = { +static struct vendor_data vendor_zte __maybe_unused = { .reg_offset = pl011_zte_offsets, .access_32b = true, .ifls = UART011_IFLS_RX4_8|UART011_IFLS_TX4_8,