Re: drivers/acpi/acpi_pcc.c:34:22: sparse: sparse: symbol 'pcc_ctx' was not declared. Should it be static?

From: Sudeep Holla
Date: Wed Jan 12 2022 - 13:03:50 EST


On Wed, Jan 12, 2022 at 11:18:49PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: daadb3bd0e8d3e317e36bc2c1542e86c528665e5
> commit: 77e2a04745ff8e391ad402e2d2d1157a5d3a7ebc ACPI: PCC: Implement OperationRegion handler for the PCC Type 3 subtype
> date: 8 days ago
> config: i386-randconfig-s002 (https://download.01.org/0day-ci/archive/20220112/202201122308.6u2N4BuL-lkp@xxxxxxxxx/config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce:
> # apt-get install sparse
> # sparse version: v0.6.4-dirty
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=77e2a04745ff8e391ad402e2d2d1157a5d3a7ebc
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 77e2a04745ff8e391ad402e2d2d1157a5d3a7ebc
> # save the config file to linux build tree
> mkdir build_dir
> make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/acpi/
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>

You have already submitted the fix[1] which I have reviewed and added the tag[2]

--
Regards,
Sudeep

[1] https://lore.kernel.org/lkml/20220105174554.GA29945@1e936cf764ba
[2] https://lore.kernel.org/lkml/20220106141230.qddcwyycefxlbrma@bogus