From patchwork Fri Jul 21 11:06:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 9856579 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C5BF4601C0 for ; Fri, 21 Jul 2017 11:06:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B1DC1286D4 for ; Fri, 21 Jul 2017 11:06:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A4C1A287A1; Fri, 21 Jul 2017 11:06:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 331CF286D4 for ; Fri, 21 Jul 2017 11:06:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750818AbdGULGi (ORCPT ); Fri, 21 Jul 2017 07:06:38 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:52351 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbdGULGi (ORCPT ); Fri, 21 Jul 2017 07:06:38 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1dYVlU-0003H7-7H; Fri, 21 Jul 2017 11:06:36 +0000 From: Colin King To: Daniel Scheller , Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][media-next] media: dvb-frontends/stv0910: make various local variables static Date: Fri, 21 Jul 2017 12:06:35 +0100 Message-Id: <20170721110635.23610-1-colin.king@canonical.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Colin Ian King The list stvlist and arrays padc_lookup, s1_sn_lookup and s2_sn_lookup do not need to be in global scope, so make them all static. Cleans up a bunch of smatch warnings: symbol 'padc_lookup' was not declared. Should it be static? symbol 's1_sn_lookup' was not declared. Should it be static? symbol 's2_sn_lookup' was not declared. Should it be static? symbol 'stvlist' was not declared. Should it be static? Signed-off-by: Colin Ian King Acked-by: Daniel Scheller --- drivers/media/dvb-frontends/stv0910.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/dvb-frontends/stv0910.c b/drivers/media/dvb-frontends/stv0910.c index 7e8a460449c5..bae1da3fdb2d 100644 --- a/drivers/media/dvb-frontends/stv0910.c +++ b/drivers/media/dvb-frontends/stv0910.c @@ -34,7 +34,7 @@ #define BER_SRC_S 0x20 #define BER_SRC_S2 0x20 -LIST_HEAD(stvlist); +static LIST_HEAD(stvlist); enum receive_mode { RCVMODE_NONE, RCVMODE_DVBS, RCVMODE_DVBS2, RCVMODE_AUTO }; @@ -207,7 +207,7 @@ static int write_shared_reg(struct stv *state, u16 reg, u8 mask, u8 val) return status; } -struct slookup s1_sn_lookup[] = { +static struct slookup s1_sn_lookup[] = { { 0, 9242 }, /*C/N= 0dB*/ { 5, 9105 }, /*C/N=0.5dB*/ { 10, 8950 }, /*C/N=1.0dB*/ @@ -264,7 +264,7 @@ struct slookup s1_sn_lookup[] = { { 510, 425 } /*C/N=51.0dB*/ }; -struct slookup s2_sn_lookup[] = { +static struct slookup s2_sn_lookup[] = { { -30, 13950 }, /*C/N=-2.5dB*/ { -25, 13580 }, /*C/N=-2.5dB*/ { -20, 13150 }, /*C/N=-2.0dB*/ @@ -327,7 +327,7 @@ struct slookup s2_sn_lookup[] = { { 510, 463 }, /*C/N=51.0dB*/ }; -struct slookup padc_lookup[] = { +static struct slookup padc_lookup[] = { { 0, 118000 }, /* PADC=+0dBm */ { -100, 93600 }, /* PADC=-1dBm */ { -200, 74500 }, /* PADC=-2dBm */