From patchwork Wed Mar 23 10:30:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 8648941 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 991999F38C for ; Wed, 23 Mar 2016 10:31:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0DBF203B8 for ; Wed, 23 Mar 2016 10:31:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C5F5F203B1 for ; Wed, 23 Mar 2016 10:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754276AbcCWKbM (ORCPT ); Wed, 23 Mar 2016 06:31:12 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:58134 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbcCWKbL (ORCPT ); Wed, 23 Mar 2016 06:31:11 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0Letrj-1ZzPLr17uR-00qhwC; Wed, 23 Mar 2016 11:31:04 +0100 From: Arnd Bergmann To: Mauro Carvalho Chehab , Arnd Bergmann Cc: Patrick Boettcher , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [media] dvb-usb: hide unused functions Date: Wed, 23 Mar 2016 11:30:38 +0100 Message-Id: <1458729052-3008797-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:SuyO+UeKNRDF14LvrbZZ4FdVSCVguNB0mDAM/ERwmPFWjzubeRV vQxpifJhv8ES45kzNbSKWt365dINFWI6LNPgZoPn2/h0kqsE9sD+xYI0GrQ3b1ehZTKkX7/ /hMuaZcLhEdtX/nCyttsD+3R0GAF2hCjPJXyEnk9D8Xn32Q6PO52Ap6HbgWEJqysJyR2trs Y4AlDDc89KSv7t4zpXZ0g== X-UI-Out-Filterresults: notjunk:1; V01:K0:cCPoyySR9xI=:N7T2+YkG5wbowvjDlKhDEj yWSP8WcDN+HBvTfOEMGW30xaSWl3WjfT4P6TG8xPBMhkfZcPSPH15rHvylQu8yQ3+UuYNMXrW T66pkPUEJKl3JDmtW59mSlP89wrrUvQCpUj9ur6F8EJqCfL2ZAtLndIpQQEmW6OoiN3BTrLwY Os22pf6tSmNsE0c/xhQouFPNExNPvwnqm8OZpByD+VF07BlMs2meVQPFMZL6aLGLKDFLeXagO JtReGpVzE+RyJtqJYqI75wotkeo5N7hAMqxFHAcUAJsdT8aBVl4qVwEjy+d0eq2Mm23iHcCY4 KSsEUJaw38cXuiSf0cgW8xcoEMntK2kEj+GiWxoiLZmq7YU3JJ0JML7hu04USpiIE+/gXtyWI 3aihUM+Vle9tUe5Wbz1tkl09bCjAwP736vJnYJRW0WRq87e2D6T8bUqyHwgVXN8WWmh2f1SDz zcE80LnxJkH1Q1dk9AAbBFaNJHgG4ykkiFwWvSh0Z1cukcz0eDgKRPa9R1Xn6C3XXDyL0o5Zu 2z1EZvglgvYylwqkPZ2MFEgAph8ZETOzK/LTbboMtzhqIhoeOUp2+nfMvH576irJCpE3qrHJM 3/o3Lo2IstA+DPGaUvTYJRDoxkQxCUYEHKwmGNdgrDrM6bZzkt6vJ1JFoqRdYELaVvfcPVMjz Fr6po71j+jsPuY/zVDJAGmBM4i92Vb62lhxbVCp2rmz1dlhZYRGqsQ4G+dyVlam/bGqE= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A couple of data structures in the dibusb-common file are only accessed when CONFIG_DVB_DIB3000MC is enabled, otherwise we get a harmless gcc warning: usb/dvb-usb/dibusb-common.c:223:34: error: 'dib3000p_panasonic_agc_config' defined but not used usb/dvb-usb/dibusb-common.c:211:32: error: 'stk3000p_dib3000p_config' defined but not used This moves the existing #ifdef a few lines up to correctly cover all the conditional data structures, which gets rid of the warning. Signed-off-by: Arnd Bergmann --- drivers/media/usb/dvb-usb/dibusb-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/dvb-usb/dibusb-common.c b/drivers/media/usb/dvb-usb/dibusb-common.c index 35de6095926d..6eea4e68891d 100644 --- a/drivers/media/usb/dvb-usb/dibusb-common.c +++ b/drivers/media/usb/dvb-usb/dibusb-common.c @@ -184,6 +184,8 @@ int dibusb_read_eeprom_byte(struct dvb_usb_device *d, u8 offs, u8 *val) } EXPORT_SYMBOL(dibusb_read_eeprom_byte); +#if IS_ENABLED(CONFIG_DVB_DIB3000MC) + /* 3000MC/P stuff */ // Config Adjacent channels Perf -cal22 static struct dibx000_agc_config dib3000p_mt2060_agc_config = { @@ -242,8 +244,6 @@ static struct dibx000_agc_config dib3000p_panasonic_agc_config = { .agc2_slope2 = 0x1e, }; -#if IS_ENABLED(CONFIG_DVB_DIB3000MC) - static struct dib3000mc_config mod3000p_dib3000p_config = { &dib3000p_panasonic_agc_config,