Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp373284pxu; Tue, 1 Dec 2020 13:28:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6okXF1xdbm1GUFCCWjExrf54EZZPZhSeUVAGlXLHaM8f2769QDhGcRzP/gO4EH2TiT3P3 X-Received: by 2002:a50:a694:: with SMTP id e20mr1933421edc.261.1606858133563; Tue, 01 Dec 2020 13:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606858133; cv=none; d=google.com; s=arc-20160816; b=X2HaKVvU2unpgdDguKj+l7G6jcI87tSxGcs1dnMhxwmjBZFrSXhTAy5bXZFqnClS/n fnim6IVF36rPmKy6fvXOaaKDFasdMKYCc8hNwuaoM4/l+rP/+v6Qvgs9RUDzYT6QhjoU TES9LIdQUOOZxbxJPzj9kweAfGlas8nbNmU6jWFmNHbhegtQf8tetEvnQmB2tQJdd8Eh XiCBq0oE2mDFlCdHv3x+8q6If/wsF4Gs1Ja6nKJeEsREY5rGHA/EQdvT7Gq+HwLNozyK OQfBCy85GAVFONiT7ekBlBSEWhxVgEajJIMEt+xU9EH0V22cDZzesjPj7DpL0lYaA6I2 diVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3xUuywLmWJrQN8yX9HphrXE++DlNfPEnyAr36MB/JE4=; b=hKNoJTxoLRU2IwjX85y/exZWaV/pBJ0YikmGjKpPhsAkD8aoJKwr9AFlRX7ozvvwr+ q7TxMeeiq8wApx7xkDxtzVvwwtZFohYY25DyrhxABu5V15BKSqqkhiF5X26/UjtDG9gM RDoKDZj9oBCVsyB2pIuTSgr/bax35QOAdn/m/Mb5kweiMv9cob1P2oVmG0dm+ryJAqik RvX2UPaa6a5CAFMWRP2JgwrOhWnEpu628TTTxc/3SUuNraJjFnu8qG7+9iVG/MwqRfPu aPm+Wxg5hNm/oUa9Waxv4dTaofUfZ5cgTirHOK/dEa2Nd0e0kwl1WILftnKa4Rc/l7cS s4dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Je8esLdI; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si667855eda.110.2020.12.01.13.28.30; Tue, 01 Dec 2020 13:28:53 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=Je8esLdI; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728794AbgLAVZd (ORCPT + 99 others); Tue, 1 Dec 2020 16:25:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:48298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726099AbgLAVZc (ORCPT ); Tue, 1 Dec 2020 16:25:32 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 7AC1020870; Tue, 1 Dec 2020 21:24:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606857892; bh=a8TmdnafpKPz2vYTHBuzMrTq/A5YQubPVsJ7OheAx+8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Je8esLdICMSn6zhB2GK75o97wv3RooQh62AkF+yT2slmCk1PlyCMzz3C8Wz4BwZAa mSdu3CuUqKg+jom1EqryCwUjSorsizbVazjwNiVeWiayKII9VfCSV9tat1UuOjAt2K LX3gsFmaAiw0Bf6jy7KtdexbawJHGMxs+C+i6eRg= Date: Tue, 1 Dec 2020 22:26:03 +0100 From: Greg KH To: Michal Simek Cc: Zou Wei , rajan.vaja@xilinx.com, jolly.shah@xilinx.com, tejas.patel@xilinx.com, manish.narani@xilinx.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next v2] firmware: xilinx: Mark pm_api_features_map with static keyword Message-ID: References: <1606823513-121578-1-git-send-email-zou_wei@huawei.com> <65ea30eb-2595-4af8-09c2-6d352b9be509@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65ea30eb-2595-4af8-09c2-6d352b9be509@xilinx.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 01, 2020 at 01:03:59PM +0100, Michal Simek wrote: > > > On 01. 12. 20 12:51, Zou Wei wrote: > > Fix the following sparse warning: > > > > drivers/firmware/xilinx/zynqmp.c:32:1: warning: symbol 'pm_api_features_map' was not declared. Should it be static? > > > > Signed-off-by: Zou Wei > > --- > > drivers/firmware/xilinx/zynqmp.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c > > index d08ac82..fd95ede 100644 > > --- a/drivers/firmware/xilinx/zynqmp.c > > +++ b/drivers/firmware/xilinx/zynqmp.c > > @@ -29,7 +29,7 @@ > > #define PM_API_FEATURE_CHECK_MAX_ORDER 7 > > > > static bool feature_check_enabled; > > -DEFINE_HASHTABLE(pm_api_features_map, PM_API_FEATURE_CHECK_MAX_ORDER); > > +static DEFINE_HASHTABLE(pm_api_features_map, PM_API_FEATURE_CHECK_MAX_ORDER); > > > > /** > > * struct pm_api_feature_data - PM API Feature data > > > > The patch is good but I am missing fixed tag to get it to LTS. Why is this needed for any stable kernel release? It's a sparse warning, no one trips across those in stable kernels... thanks, greg k-h