Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6976327ybi; Wed, 5 Jun 2019 09:12:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9P6qyAD+VJdWg8ZjQc4l26jmZesTgDzqlib483YsnG/DsX8pVoeskUCfoVlAxWYApjtu1 X-Received: by 2002:a17:902:a607:: with SMTP id u7mr38934915plq.43.1559751172892; Wed, 05 Jun 2019 09:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559751172; cv=none; d=google.com; s=arc-20160816; b=rr0kfDMwXu0psMFxlOmKm8kM+ZR187nJFY6xXUr43Bj57He+KAw//xTJHUR20OyAuz xcqVZgxeAvNMdKHTRZgWL+tCk91hVYxixd34vW5O6oq45R4lx1ZF8qNPZ8G2KN5OeO3t 7dqObsTtrsvnG3hsdS7a9XqOvafannVCO2wuwLfqR2Znij/onI9LxbtHgKavHRSbrCBU 0U6WreqvU4JW9BxLVDV1OMtMlTchFi57IVTeDIeHLP4b7hsMteoWbILMuah/JhqIipi9 QJ/RLfHyi9N+54gHijN7uvUDzpK9Qpg8Qti9HKlPibyg0fR7+Vbh82x7g5wSrDM6pwsg VuKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=TZKjR+aKaM7SNkga57Y2V4cUixephsgLQnpwgpF+XlE=; b=fhAsIsXVNHWxvbnDOKT53Z3u4ahbEaf1UL8OusNvyoTNGY+Za67Dg+VtjUsdJbTKMy thuYaqU4bPtcnqaR3F2S1vvXAsTno2xIAmd+UepT6/Yu4dkEIzQVf7g0519z84P7rJuK 38fLCsAb6ql+v++foo7RjrTxeeo+8lpI+ziCREghAUAYkUYbvx23F0sQ5fJdLxK8XoEf TPqihE+NgaXT6PA/Kvq4qyCptFreldhYWKogl0+h/7cICWfWybd9EwnBVL1Q1iClX6Rx p8nllL/bxdug8XPdWqHT0uL0CpY/2qG3i6yLCijvptqh1iCau0Uh8y6dgGb6VXncVIJM /U+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@daktronics.com header.s=selector1 header.b=jcjDxpY+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo2si19761438pjb.58.2019.06.05.09.12.34; Wed, 05 Jun 2019 09:12:52 -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=@daktronics.com header.s=selector1 header.b=jcjDxpY+; 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 S1728630AbfFEQJs (ORCPT + 99 others); Wed, 5 Jun 2019 12:09:48 -0400 Received: from mail-eopbgr780058.outbound.protection.outlook.com ([40.107.78.58]:19008 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728263AbfFEQJs (ORCPT ); Wed, 5 Jun 2019 12:09:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daktronics.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TZKjR+aKaM7SNkga57Y2V4cUixephsgLQnpwgpF+XlE=; b=jcjDxpY+vi4Xz2YHElxLGIdwSfYWgrRxcmpMESbXQ9DAwoE7RhWFVjmpRLoC5mfqLYIQjD13Q12CbYP6ig9PfZKjT8Im/GpfZWxqyRq6jzOWXgiUpShCFl6RirGAfbwzhX2jTQoHKFuz6d3imhntG0IuH6YIujqUZZFgpFMEmp8= Received: from SN6PR02MB4016.namprd02.prod.outlook.com (52.135.69.145) by SN6PR02MB5200.namprd02.prod.outlook.com (52.135.103.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.12; Wed, 5 Jun 2019 16:09:41 +0000 Received: from SN6PR02MB4016.namprd02.prod.outlook.com ([fe80::f551:3180:ba2d:7c1f]) by SN6PR02MB4016.namprd02.prod.outlook.com ([fe80::f551:3180:ba2d:7c1f%6]) with mapi id 15.20.1943.023; Wed, 5 Jun 2019 16:09:41 +0000 From: Matt Sickler To: Valerio Genovese , "gregkh@linuxfoundation.org" CC: "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] staging: kpc2000: kpc_dma: fix symbol 'kpc_dma_add_device' was not declared. Thread-Topic: [PATCH] staging: kpc2000: kpc_dma: fix symbol 'kpc_dma_add_device' was not declared. Thread-Index: AQHVG7dilT2yYfZL10OphSiUIglSjqaNOn8w Date: Wed, 5 Jun 2019 16:09:41 +0000 Message-ID: References: <20190605155711.19722-1-valerio.click@gmail.com> In-Reply-To: <20190605155711.19722-1-valerio.click@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Matt.Sickler@daktronics.com; x-originating-ip: [63.85.214.4] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c80387fa-24d3-4d4f-751f-08d6e9d037a9 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:SN6PR02MB5200; x-ms-traffictypediagnostic: SN6PR02MB5200: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 00594E8DBA x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(376002)(136003)(39860400002)(346002)(189003)(199004)(478600001)(5660300002)(446003)(14454004)(11346002)(25786009)(6246003)(7696005)(229853002)(54906003)(72206003)(4744005)(99286004)(26005)(8936002)(8676002)(81156014)(81166006)(305945005)(186003)(76176011)(110136005)(2501003)(53936002)(86362001)(4326008)(102836004)(76116006)(68736007)(33656002)(66946007)(73956011)(6436002)(2906002)(6506007)(9686003)(66066001)(7736002)(486006)(476003)(55016002)(316002)(14444005)(66446008)(6116002)(256004)(3846002)(66476007)(66556008)(64756008)(52536014)(71190400001)(71200400001)(74316002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR02MB5200;H:SN6PR02MB4016.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: daktronics.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: VpFtRpfwXEQ3hgQbpDXhhh8r2BG5bJLEGpPo3HWR7VU/aDzsFahR2DHB9vRZg8Wsyj1vqd3iQCZbTlk10ENc3NcRmuGR/Tvj0QmWaEyKRhAwjsrc4hlM1RpIUEcpWQ8UGrMxPscDLm1vZZMVNDqy+cqfDvjX9gH0Givr4kzPAEJUck4zbucHqaaifvZW27hev43qFyU9pPPyQ30XdRKKZ5xvyU9WxhSkQDeF/mX6h3wC5D4KFjBUlxn/PEu/LpxFwJR+xpkdOS820yXKNoU7tnjlgkKKxC2SJGDfX4zWW/xmA1Od3GmvX1h/sMDGRCBdegGwzQ7RkNBYTOhUfG9PeeiLvWp2QPN+ZeOJ+CJHhNQvOuV2Eo2MaIhovYXmCNQxr63Eg39S/ZSiiy6HTVmp/BjO29YkCFNfV0zh3Cu+vMU= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: daktronics.com X-MS-Exchange-CrossTenant-Network-Message-Id: c80387fa-24d3-4d4f-751f-08d6e9d037a9 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jun 2019 16:09:41.4666 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be88af81-0945-42aa-a3d2-b122777351a2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: matt.sickler@daktronics.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB5200 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >This was reported by sparse: >drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.c:39:7: warning: symbol >'kpc_dma_add_device >' was not declared. Should it be static? > >Signed-off-by: Valerio Genovese >--- > drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h >b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h >index ee47f43e71cf..19e88c3bc13f 100644 >--- a/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h >+++ b/drivers/staging/kpc2000/kpc_dma/kpc_dma_driver.h >@@ -56,6 +56,7 @@ struct dev_private_data { > }; > > struct kpc_dma_device *kpc_dma_lookup_device(int minor); >+void kpc_dma_add_device(struct kpc_dma_device *ldev); > > extern const struct file_operations kpc_dma_fops; > Wouldn't it be better to mark the function static? It's only used in kpc_dma_driver.c which is where it's defined.