Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp813189ybh; Sat, 18 Jul 2020 23:14:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzMjGgCMwUmo0IuHdFydqPlwvI/zK7k9wPPdxV9r86+tSL8WtswWWPK53n9FglkCEtmBSR X-Received: by 2002:a05:6402:8da:: with SMTP id d26mr16533091edz.109.1595139245007; Sat, 18 Jul 2020 23:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595139245; cv=none; d=google.com; s=arc-20160816; b=n6ppHUAMYNFUFkoSBs37ErF4ec0S7uqMl4XgWbdyW5FdDUUGVo9r9tA2AgE0ayKAKx WuWCX6IrP6usMxrJIfaBKEHef742HENjo8GHxpPYvAT+zZGoipS49d8u8cwavyL+HSSA 87hVpQwUscTIy0F6R8K559i+BBbuOuJpvzuREZ4n/Fh/1C7DcF4Vzxq1rPVDa/mm9q6Y 61tyyeamBbIdM5yUMzV7fqrDHib7x5zLaYlC9Rl+0dBNnb8X0CtGwTQi+vDGrvH6Hu9V gEKV2oPVc3b17AtRcBKDE7L6b+DUODhdyyI/ajoZjgMGcMk+uTV4RE5lq4h5HChOVbW+ AkYw== 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:subject:cc:to:from:date :dkim-signature; bh=r9JdAq9MNYG6EdUmaLc1XVGtGZfVEWjlTUJdJs0pZhg=; b=rkt37Zhfx2hqcJ/aW8BlBERIEtya3owuhIxULt7Nk3Eu5hsqNqkvBFnHBWzB7YyjB5 K27f2J6HfGW8bibn+KooCJqpA9/C8bGUwi68zzs4HSMiA4ciIdpziwk8S5uwUonD7+v+ FzEK0L0MCEzfT29lFE9JOU3ejcrKkXCcb4S9F+1DDuG/bqfkd5vEeLXuevqnvSzUtnBY PMF0vtg9TE6RqY8WV0xFQtU37rzYGWxeY3kAXflt1UIuEt1Is8inQtXtc4afFxH6HAVt QHSrSRsVRIdp16RGOmCtENxtzbilkzc/EFKY3jCb4UowxyyKGkhSgdX9GzJ7n2o88OTM wC7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IKwz6zoi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si8903498edn.520.2020.07.18.23.13.41; Sat, 18 Jul 2020 23:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IKwz6zoi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726463AbgGSGK6 (ORCPT + 99 others); Sun, 19 Jul 2020 02:10:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:50670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgGSGK6 (ORCPT ); Sun, 19 Jul 2020 02:10:58 -0400 Received: from coco.lan (ip5f5ad5c5.dynamic.kabel-deutschland.de [95.90.213.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BEAEF2073A; Sun, 19 Jul 2020 06:10:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595139058; bh=v+tBQTFsBwAbo1jkBKxGAaOodtQy54tKEIs8raoBUpo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IKwz6zoityKzRAm8cn5VH9j055zpzXNgsntvnyoyaojNiWglYYi4npceclHpdQufy e9kDiL99STu2HoX0jJg3PT8d9jrSO7EV9p15kh5wzx1DKGo84iK0eFKQozqgCG4n+u PDn/e1wYyoMDWeBFXHFvuzKKj90H2b52KXKVkn0A= Date: Sun, 19 Jul 2020 08:10:54 +0200 From: Mauro Carvalho Chehab To: B K Karthik Cc: Sakari Ailus , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: staging: media: atomisp: pci: css_2401_system: host: csi_rx.c: fixed a sparse warning by making undeclared symbols static Message-ID: <20200719081054.7915a8ae@coco.lan> In-Reply-To: <20200714132350.naekk4zqivpuaedi@pesu-pes-edu> References: <20200714132350.naekk4zqivpuaedi@pesu-pes-edu> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 14 Jul 2020 09:23:50 -0400 B K Karthik escreveu: > changed symbols N_SHORT_PACKET_LUT_ENTRIES, N_LONG_PACKET_ENTRIES, > N_CSI_RX_FE_CTRL_DLANES, N_CSI_RX_BE_SID_WIDTH to static because they > were not declared earlier. This patch is broken: ERROR: modpost: "N_CSI_RX_FE_CTRL_DLANES" [drivers/staging/media/atomisp/atomisp.ko] undefined! ERROR: modpost: "N_LONG_PACKET_LUT_ENTRIES" [drivers/staging/media/atomisp/atomisp.ko] undefined! ERROR: modpost: "N_SHORT_PACKET_LUT_ENTRIES" [drivers/staging/media/atomisp/atomisp.ko] undefined! Please test your patches before submitting them. I suspect that the header declaring them weren't included at csi_rx.c. Regards, Mauro > > Signed-off-by: B K Karthik > --- > .../media/atomisp/pci/css_2401_system/host/csi_rx.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx.c b/drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx.c > index 8e661091f7d9..4d2076db1240 100644 > --- a/drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx.c > +++ b/drivers/staging/media/atomisp/pci/css_2401_system/host/csi_rx.c > @@ -15,26 +15,26 @@ > > #include "system_global.h" > > -const u32 N_SHORT_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID] = { > +static const u32 N_SHORT_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID] = { > 4, /* 4 entries at CSI_RX_BACKEND0_ID*/ > 4, /* 4 entries at CSI_RX_BACKEND1_ID*/ > 4 /* 4 entries at CSI_RX_BACKEND2_ID*/ > }; > > -const u32 N_LONG_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID] = { > +static const u32 N_LONG_PACKET_LUT_ENTRIES[N_CSI_RX_BACKEND_ID] = { > 8, /* 8 entries at CSI_RX_BACKEND0_ID*/ > 4, /* 4 entries at CSI_RX_BACKEND1_ID*/ > 4 /* 4 entries at CSI_RX_BACKEND2_ID*/ > }; > > -const u32 N_CSI_RX_FE_CTRL_DLANES[N_CSI_RX_FRONTEND_ID] = { > +static const u32 N_CSI_RX_FE_CTRL_DLANES[N_CSI_RX_FRONTEND_ID] = { > N_CSI_RX_DLANE_ID, /* 4 dlanes for CSI_RX_FR0NTEND0_ID */ > N_CSI_RX_DLANE_ID, /* 4 dlanes for CSI_RX_FR0NTEND1_ID */ > N_CSI_RX_DLANE_ID /* 4 dlanes for CSI_RX_FR0NTEND2_ID */ > }; > > /* sid_width for CSI_RX_BACKEND_ID */ > -const u32 N_CSI_RX_BE_SID_WIDTH[N_CSI_RX_BACKEND_ID] = { > +static const u32 N_CSI_RX_BE_SID_WIDTH[N_CSI_RX_BACKEND_ID] = { > 3, > 2, > 2 Thanks, Mauro