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: 102543 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2580366lbc; Wed, 23 Mar 2016 03:31:15 -0700 (PDT) X-Received: by 10.98.8.14 with SMTP id c14mr2969756pfd.42.1458729075393; Wed, 23 Mar 2016 03:31:15 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l27si3578869pfj.18.2016.03.23.03.31.15; Wed, 23 Mar 2016 03:31:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-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-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754276AbcCWKbM (ORCPT + 4 others); 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 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(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-media" 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/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,