Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp401473ybm; Wed, 22 May 2019 05:16:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz60AGKTSC6sT1LwcQP6O6tChwUELOnQbiENLut2cIcAk0HUoKsLocE9gRmSOxp/FFM6ln X-Received: by 2002:a63:1726:: with SMTP id x38mr34617955pgl.365.1558527407820; Wed, 22 May 2019 05:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558527407; cv=none; d=google.com; s=arc-20160816; b=oM4O6Wbt6mDgRtO4BWb50y3pBG3bYdCFomFvviiJIdeDS/AroXQHcmK6a4cVbw8Ck0 bCwNlKBCzZpfg+Mmu3cqnWhU/ubcLlyRGSoC1pruMaNHuTLvH5/pXJ65ydqT2FeYdbKb tgZI5ANzKELGpaUAyT02b+9umpB3W1ppQkH6TvTsNj0xwxIaCaKYve9dRZlV3gnX3xfl di/kzafRdcN+x8A8Xf0fhrtKrbScrYRRZZWhuYNVxwyuTeQooPf5fr0WT9N9Q4cFLteZ CH77Rp5qaOCXVYGPRUo5cJzXv6U+MAtuA96nzhBKQ661MuvNOrOJsiXJK1BcmittJdsy 28Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H3+FUMVAtUNqd7joLB2Rr4otnxHNV1reLiziKgDKNcc=; b=nt89dgOuMwL1R11EEgEw0POeTZj3PDGXqKzuakCbMNZ+P7JLsYelxiEBi0yMKy82XM zIg7/NwSEM7jQ9pX1VXopMuJXHrGMTnkkHoNPhWBvVDfhTJkdwhyD83YcG+N67XSzDEw 6aK7ZxG83vHgU4CD+sgmvqrx8GO8Vm1hlkCC1J/BNwaLUjIrmW5hehp7PMsmRZE7UXHr W2qteH2L7ZBt/Rk8XbWIeYHwE786Mn3urb2xcMP5XSBYAoiq3WEIA4wvSDisADVVlbZz kDfDnDa4o0p9DiRtAh0bWSslaQjqXhW7SQXI0eYsViAc4b1/9+hPnZl/GQFe8X1EZRPX he3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X642QNn8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si5410778pld.335.2019.05.22.05.16.32; Wed, 22 May 2019 05:16:47 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X642QNn8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729394AbfEVMPA (ORCPT + 99 others); Wed, 22 May 2019 08:15:00 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:44517 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729357AbfEVMOz (ORCPT ); Wed, 22 May 2019 08:14:55 -0400 Received: by mail-qk1-f195.google.com with SMTP id w25so1254455qkj.11 for ; Wed, 22 May 2019 05:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H3+FUMVAtUNqd7joLB2Rr4otnxHNV1reLiziKgDKNcc=; b=X642QNn8QYxNHPLxyuUwWX3jFVIOC5grd48XSK+K2rm7nsZA0NKHsdh62xKTAegUcR yLyKdKFRWnUt/5giHEV4Io6UUxfweTlMVGGzP8BHkIymEEj1GsjeT3S0K9OrO6GwoLan BewYEaRcyb5MP6HEzfaKRcPUTb/7fsHV3gbKS9F0no9G+ZtWWBnfuZFR/eoKT+eECmK9 Z3/3u5EUwlurgr8nuuCVJW2CMuj/unUTmlp9lwaA8zOKpxP9SU461XckYuvbcJ8DMPGz 1sS848+UBa76icY11pQXbNYTDCKeWpj9+dD2M0gjVRmM3xR9+efEy0lJ+Ba/Q6pw8xLZ LaHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H3+FUMVAtUNqd7joLB2Rr4otnxHNV1reLiziKgDKNcc=; b=Nx97RcmlyCHcvsnwgYH8gsAYqb8ZYJIVPYcjytBgmNWC17zbx0GI1MArJz75lajO42 9ARkVTor3Jut3qIDyfg6BQ6ba2kBbHDciWNAJqxygRDb2g54bNvda6xg1pDW+nHot4hC YeLbb2Q7hOLAnm1cKuAVKl+TbOOcFLo/2EEDlXIw2Phu1L4OFjSzFtencRU4T1YsbfLW dS8A6hhNr4Jsi8Y0uga0vcmHUAW8I6z3QAKBVi2vmgaPRagIu/F0yAs1roSBMnygLw63 3bhnCBf/bQN0sC46sYhRMrzrt7e5MiGd7F4fkqzkRN6IHp9qzi0H/Bp4monNCV3j6RB9 P0zg== X-Gm-Message-State: APjAAAWOD+ZT1tu+WNcJ+SJ9NC5uLRBLsbgViHM6BRVgjisM18YSJeFf 4UIF7bkCbmDujASskxCq6XU= X-Received: by 2002:a37:7002:: with SMTP id l2mr68984568qkc.227.1558527294809; Wed, 22 May 2019 05:14:54 -0700 (PDT) Received: from arch-01.home (c-73-132-202-198.hsd1.dc.comcast.net. [73.132.202.198]) by smtp.gmail.com with ESMTPSA id w2sm8742070qto.19.2019.05.22.05.14.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 05:14:54 -0700 (PDT) From: Geordan Neukum To: Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Matt Sickler , Dan Carpenter , Geordan Neukum Subject: [PATCH 6/6] staging: kpc2000: kpc_i2c: add static qual to local symbols in kpc_i2c.c Date: Wed, 22 May 2019 12:14:02 +0000 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kpc_i2c.c declares: - two functions - pi2c_probe() - pi2c_remove() - one struct - i2c_plat_driver_i which are local to the file, yet missing the static qualifier. Add the static qualifier to these symbols. Signed-off-by: Geordan Neukum --- drivers/staging/kpc2000/kpc2000_i2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000_i2c.c b/drivers/staging/kpc2000/kpc2000_i2c.c index f9259c06b605..97e738349ba2 100644 --- a/drivers/staging/kpc2000/kpc2000_i2c.c +++ b/drivers/staging/kpc2000/kpc2000_i2c.c @@ -579,7 +579,7 @@ static const struct i2c_algorithm smbus_algorithm = { /******************************** *** Part 2 - Driver Handlers *** ********************************/ -int pi2c_probe(struct platform_device *pldev) +static int pi2c_probe(struct platform_device *pldev) { int err; struct i2c_device *priv; @@ -626,7 +626,7 @@ int pi2c_probe(struct platform_device *pldev) return 0; } -int pi2c_remove(struct platform_device *pldev) +static int pi2c_remove(struct platform_device *pldev) { struct i2c_device *lddev; @@ -644,7 +644,7 @@ int pi2c_remove(struct platform_device *pldev) return 0; } -struct platform_driver i2c_plat_driver_i = { +static struct platform_driver i2c_plat_driver_i = { .probe = pi2c_probe, .remove = pi2c_remove, .driver = { -- 2.21.0