Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7023791ybi; Wed, 5 Jun 2019 09:58:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2aP9lELzIuxlzTvNQZneirdGSv/cjtSPchVF1SpqD30a+hy5sqbo1y5BcTp+7ljUeSIEt X-Received: by 2002:a62:f201:: with SMTP id m1mr40950451pfh.217.1559753937103; Wed, 05 Jun 2019 09:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559753937; cv=none; d=google.com; s=arc-20160816; b=aS93kiH/9uu/5L77Yr5FGhQeIo7+xIS4bwTWAhy+wP+sBndRtnqVCakoDqVHze0TD+ TI9+q3fQ7nQPtFwp9yvHzPJiDHz6vRfAzilCtLVB0Q3Xl+l9Sy2ulozVa98ggls0I9vv bObe4dez4/3gRJRbKrFTwG4kh7ge0uy+vO1HUsqmpsKgl/GUPEAqp6VRULydDWrvvUJE BATil5C/MG2AkSGd/QAbeHrkV8E/fXrl6y9rxpuT6+XNTgx1SKHQ8iaELlU4jlVNWu1H lLo9ow8Fj27Sq5y2c7TaZ3c6f0UG91FoRmLu34mKwKTFxTvH9lLuNkmGZOH5P3B+mngw L8/w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=pECXoI9mTW1hJc73canZKynG9yEklj2tqwUD/NjQBTM=; b=GnGy6JWKBnp+KEIb7f77j2ea8pLQJ8H9v0TrokTc8eHSP8PHu6DlYR8X6pZ0Jaso52 KB92HsJopO+Tp2b7VFZb6IoxqZDRVkY32XhiBjt3+wASpDG54gdLuUpod3VQHycckFEm XIwRoAaxDm8W1OSKqjO3Oz12tUp+N5a8+4iJy7cd+uFgx0/rc5ePQYZ7qHjrh/mrotut I2GG4K0x5q7wr7Qew7rdpgy52D0R5Jxypl9G5RKe8KIUsTT5ncJnpL3sGNr1l06pVy2g hLIO0IfvjeC23IXNYvNNgmiMkXE38BoUnJGl5EcATGEDWuBR3LCYKvw07FWzJUgz5rE2 AUfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jvMEsKvN; 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 m9si29697576pgs.288.2019.06.05.09.58.41; Wed, 05 Jun 2019 09:58:57 -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=jvMEsKvN; 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 S1728909AbfFEQ4P (ORCPT + 99 others); Wed, 5 Jun 2019 12:56:15 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37035 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728753AbfFEQ4O (ORCPT ); Wed, 5 Jun 2019 12:56:14 -0400 Received: by mail-wr1-f66.google.com with SMTP id v14so2565146wrr.4 for ; Wed, 05 Jun 2019 09:56:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pECXoI9mTW1hJc73canZKynG9yEklj2tqwUD/NjQBTM=; b=jvMEsKvNdGnhLTvf306OqVW+t0WYHnHSqbpV+0OSXq1lKKUhVSqvWFKiIy4PqH1CQd UQwkGFrZbvX1rURMt2tOSeJfZlPhyJSIMww6qNpawgThaZJgCAL+qyk3rLTU5r1BiZh1 z4mj+V8Rvd0WasZTtEXcn+ky75wT6dcyup0rMtkJ0gsNiQhgnNsVN1EZJuTsRYBQGJDk yKYjdXCCc8MgwWhYaTI6dHS5SQwdUc1LFsSgG3vtuuF7hDvKZ7joDj3M1i+29Z+3CR6+ CU5Guxth0ffv3OCsTy5NFdKaNxw3NCCbGJ/WY8zGGAz4tx05CcqhIknAtmG1LE7zSA7Z BBWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pECXoI9mTW1hJc73canZKynG9yEklj2tqwUD/NjQBTM=; b=Jq93vh7rLh71P9GIWWVOpw6MNqO35QU3/A4AisPTdJ6Rmtx8CSG7j5xw0OpJj3Gwru HapfMitVTrxFOWUODv7dnUg22qtwiU49K/+PfHc6vI/OuwoHn8o7JWUqUKH8Zk8zhmWD RsTHKHlouJTI/SX7+MqyG68pHBuD6bpax8U0xu9pZON645MbyK1z8lX2Cggv7V41SPB0 9IkR3AS2JRKy+ITj9C5Qg0n7eCllWoZ11WpO1dhB3A5q5MDnchmboPuKVp9K9MIS48DZ I3trVjq30VJ1LSptEqVJdjIUd+/SHf8BcLTCYshbHdgcS568XcGkwpn4byfj36WhRyZE 02Fw== X-Gm-Message-State: APjAAAW/SB/GZ5ATb7rkVWiIoqMHtnaEM0hSEiV8OHrd4LMsMT+z9qxn /JunV5YECEUaPeUrqpneAaVB+er3 X-Received: by 2002:adf:eeca:: with SMTP id a10mr27572377wrp.266.1559753772883; Wed, 05 Jun 2019 09:56:12 -0700 (PDT) Received: from [194.243.128.228] (host228-128-static.243-194-b.business.telecomitalia.it. [194.243.128.228]) by smtp.gmail.com with ESMTPSA id y17sm45501773wrg.18.2019.06.05.09.56.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 09:56:12 -0700 (PDT) Subject: Re: [PATCH] staging: kpc2000: kpc_dma: fix symbol 'kpc_dma_add_device' was not declared. To: Greg KH Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <20190605155711.19722-1-valerio.click@gmail.com> <20190605161109.GA17272@kroah.com> From: Valerio G Message-ID: <50bb1c8e-29fb-4d70-3c87-22235fc9d4fd@gmail.com> Date: Wed, 5 Jun 2019 18:56:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190605161109.GA17272@kroah.com> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thanks for the feedback. I re-submitted the patch as v2. best, Valerio Il 05/06/19 18:11, Greg KH ha scritto: > On Wed, Jun 05, 2019 at 05:57:11PM +0200, Valerio Genovese wrote: >> 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; >> > > This is not how you fix this issue. > > Look at the warning given to you. Think about your C programming > knowledge and remember what the 'static' keyword is and does. > > Then fix the issue properly. > > thanks, > > greg k-h >