From: Colin Ian King Date: Wed, 20 Feb 2019 10:49:08 +0000 Subject: Re: [PATCH -next] hwrng: make symbol 'optee_rng_id_table' static Message-Id: <8a3ff7ae-9257-82f1-70e2-91cc77aa7377@canonical.com> List-Id: References: <20190220093458.159208-1-weiyongjun1@huawei.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ard Biesheuvel , Sumit Garg Cc: Wei Yongjun , Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , kernel-janitors@vger.kernel.org On 20/02/2019 10:37, Ard Biesheuvel wrote: > On Wed, 20 Feb 2019 at 11:34, Sumit Garg wrote: >> >> On Wed, 20 Feb 2019 at 14:51, Wei Yongjun wrote: >>> >>> Fixes the following sparse warning: >>> >>> drivers/char/hw_random/optee-rng.c:265:35: warning: >>> symbol 'optee_rng_id_table' was not declared. Should it be static? >>> >> >> I haven't observed this warning during my normal Linux build using >> gcc. Is there any specific configuration you are using? >> > > This is a sparse warning, not GCC. You need to install it separately > and build with C=1 (iirc) > It's useful to may these symbols static just to reduce the scope and there is on-going work to fix these symbols up across the entire kernel