* [freescale-fslc:pr/434 15241/20850] drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_mc_fe.c:324:15: error: variable 'writePtrReg' set but not used
@ 2021-09-04 15:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-04 15:45 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 19639 bytes --]
Hi Jason,
First bad commit (maybe != root cause):
tree: https://github.com/Freescale/linux-fslc pr/434
head: 79c30f58ebe34942bb109d786cefbd5e93fa54aa
commit: 5bb09de3044acf91e6f8c712c026d5a4bc53b563 [15241/20850] MLK-24874-1: include: uapi: fmd: fix the UAPI_HEADER_TEST/install failure
config: arm64-randconfig-r032-20210903 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/Freescale/linux-fslc/commit/5bb09de3044acf91e6f8c712c026d5a4bc53b563
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/434
git checkout 5bb09de3044acf91e6f8c712c026d5a4bc53b563
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_mc_fe.c:324:15: error: variable 'writePtrReg' set but not used [-Werror,-Wunused-but-set-variable]
gctUINT32 writePtrReg;
^
1 error generated.
--
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_waitlink_fe.c:335:1: error: no previous prototype for function 'gckWLFE_InvalidatePipe' [-Werror,-Wmissing-prototypes]
gckWLFE_InvalidatePipe(
^
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_waitlink_fe.c:334:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_waitlink_fe.c:686:1: error: no previous prototype for function 'gckWLFE_DoneInvalidatePipe' [-Werror,-Wmissing-prototypes]
gckWLFE_DoneInvalidatePipe(
^
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_waitlink_fe.c:685:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
2 errors generated.
--
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:355:1: error: no previous prototype for function 'gckPARSER_Parse' [-Werror,-Wmissing-prototypes]
gckPARSER_Parse(
^
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:354:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:400:1: error: no previous prototype for function 'gckPARSER_RegisterCommandHandler' [-Werror,-Wmissing-prototypes]
gckPARSER_RegisterCommandHandler(
^
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:399:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:411:1: error: no previous prototype for function 'gckPARSER_Construct' [-Werror,-Wmissing-prototypes]
gckPARSER_Construct(
^
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:410:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:434:1: error: no previous prototype for function 'gckPARSER_Destroy' [-Werror,-Wmissing-prototypes]
gckPARSER_Destroy(
^
drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_recorder.c:433:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
4 errors generated.
--
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/freescale/gc_hal_kernel_allocator_cma.c:56:
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:
In file included from include/linux/mm.h:99:
In file included from arch/arm64/include/asm/pgtable.h:14:
arch/arm64/include/asm/tlbflush.h:200:16: error: variable 'mask' set but not used [-Werror,-Wunused-but-set-variable]
unsigned long mask = (1 << 20) - 1;
^
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/freescale/gc_hal_kernel_allocator_cma.c:577:1: error: no previous prototype for function '_CMAFSLAlloctorInit' [-Werror,-Wmissing-prototypes]
_CMAFSLAlloctorInit(
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/freescale/gc_hal_kernel_allocator_cma.c:576:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
2 errors generated.
--
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta.c:188:1: error: no previous prototype for function 'gcTA_MapMemory' [-Werror,-Wmissing-prototypes]
gcTA_MapMemory(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta.c:187:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta.c:242:1: error: no previous prototype for function 'gcTA_UnmapMemory' [-Werror,-Wmissing-prototypes]
gcTA_UnmapMemory(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta.c:241:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta.c:259:1: error: no previous prototype for function 'gcTA_StartCommand' [-Werror,-Wmissing-prototypes]
gcTA_StartCommand(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta.c:258:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
3 errors generated.
--
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_hardware.c:211:1: error: no previous prototype for function 'gctaHARDWARE_SetMMUStates' [-Werror,-Wmissing-prototypes]
gctaHARDWARE_SetMMUStates(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_hardware.c:210:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_hardware.c:574:1: error: no previous prototype for function 'gctaHARDWARE_MmuEnable' [-Werror,-Wmissing-prototypes]
gctaHARDWARE_MmuEnable(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_hardware.c:573:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_hardware.c:608:15: error: variable 'timer' set but not used [-Werror,-Wunused-but-set-variable]
gctUINT32 timer = 0;
^
3 errors generated.
--
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_mmu.c:142:1: error: no previous prototype for function '_MtlbOffset' [-Werror,-Wmissing-prototypes]
_MtlbOffset(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_mmu.c:141:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gctUINT32
^
static
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_mmu.c:150:1: error: no previous prototype for function '_StlbOffset' [-Werror,-Wmissing-prototypes]
_StlbOffset(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_mmu.c:149:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gctUINT32
^
static
>> drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_mmu.c:526:1: error: no previous prototype for function 'gctaMMU_Enable' [-Werror,-Wmissing-prototypes]
gctaMMU_Enable(
^
drivers/mxc/gpu-viv/hal/security_v1/gc_hal_ta_mmu.c:525:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
3 errors generated.
--
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:56:
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:
In file included from include/linux/mm.h:99:
In file included from arch/arm64/include/asm/pgtable.h:14:
arch/arm64/include/asm/tlbflush.h:200:16: error: variable 'mask' set but not used [-Werror,-Wunused-but-set-variable]
unsigned long mask = (1 << 20) - 1;
^
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:84:5: error: no previous prototype for function 'gc_info_show' [-Werror,-Wmissing-prototypes]
int gc_info_show(struct seq_file* m, void* data)
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:84:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int gc_info_show(struct seq_file* m, void* data)
^
static
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:128:5: error: no previous prototype for function 'gc_clients_show' [-Werror,-Wmissing-prototypes]
int gc_clients_show(struct seq_file* m, void* data)
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:128:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int gc_clients_show(struct seq_file* m, void* data)
^
static
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:171:5: error: no previous prototype for function 'gc_meminfo_show' [-Werror,-Wmissing-prototypes]
int gc_meminfo_show(struct seq_file* m, void* data)
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_device.c:171:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int gc_meminfo_show(struct seq_file* m, void* data)
^
static
4 errors generated.
--
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:
In file included from include/linux/mm.h:99:
In file included from arch/arm64/include/asm/pgtable.h:14:
arch/arm64/include/asm/tlbflush.h:200:16: error: variable 'mask' set but not used [-Werror,-Wunused-but-set-variable]
unsigned long mask = (1 << 20) - 1;
^
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:266:1: error: no previous prototype for function '_AllocateIntegerId' [-Werror,-Wmissing-prototypes]
_AllocateIntegerId(
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:265:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:353:1: error: no previous prototype for function '_QueryIntegerId' [-Werror,-Wmissing-prototypes]
_QueryIntegerId(
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:352:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:393:1: error: no previous prototype for function '_DestroyIntegerId' [-Werror,-Wmissing-prototypes]
_DestroyIntegerId(
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:392:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:6198:1: error: no previous prototype for function '_TimerFunction' [-Werror,-Wmissing-prototypes]
_TimerFunction(
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:6197:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:6963:31: error: variable 'timeline' set but not used [-Werror,-Wunused-but-set-variable]
struct viv_sync_timeline *timeline;
^
6 errors generated.
--
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c:56:
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:
In file included from include/linux/mm.h:99:
In file included from arch/arm64/include/asm/pgtable.h:14:
arch/arm64/include/asm/tlbflush.h:200:16: error: variable 'mask' set but not used [-Werror,-Wunused-but-set-variable]
unsigned long mask = (1 << 20) - 1;
^
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c:870:1: error: no previous prototype for function '_UserMemoryAlloctorInit' [-Werror,-Wmissing-prototypes]
_UserMemoryAlloctorInit(
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c:869:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
2 errors generated.
--
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c:56:
In file included from drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:
In file included from include/linux/mm.h:99:
In file included from arch/arm64/include/asm/pgtable.h:14:
arch/arm64/include/asm/tlbflush.h:200:16: error: variable 'mask' set but not used [-Werror,-Wunused-but-set-variable]
unsigned long mask = (1 << 20) - 1;
^
>> drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c:589:1: error: no previous prototype for function '_DmaAlloctorInit' [-Werror,-Wmissing-prototypes]
_DmaAlloctorInit(
^
drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_dma.c:588:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
gceSTATUS
^
static
2 errors generated.
..
vim +/writePtrReg +324 drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_mc_fe.c
e9371a70921300 Minjie Zhuang 2019-09-23 311
e9371a70921300 Minjie Zhuang 2019-09-23 312 static gceSTATUS
e9371a70921300 Minjie Zhuang 2019-09-23 313 _ProgramDescRingBuf(
e9371a70921300 Minjie Zhuang 2019-09-23 314 IN gckHARDWARE Hardware,
e9371a70921300 Minjie Zhuang 2019-09-23 315 IN gctBOOL MMUEnabled,
e9371a70921300 Minjie Zhuang 2019-09-23 316 IN gcsMCFE_RING_BUF * Channel,
e9371a70921300 Minjie Zhuang 2019-09-23 317 IN gctUINT32 Index,
e9371a70921300 Minjie Zhuang 2019-09-23 318 IN gctBOOL Priority
e9371a70921300 Minjie Zhuang 2019-09-23 319 )
e9371a70921300 Minjie Zhuang 2019-09-23 320 {
e9371a70921300 Minjie Zhuang 2019-09-23 321 gctUINT32 ringBufStartReg;
e9371a70921300 Minjie Zhuang 2019-09-23 322 gctUINT32 depthExpReg;
e9371a70921300 Minjie Zhuang 2019-09-23 323 gctUINT32 readPtrReg;
e9371a70921300 Minjie Zhuang 2019-09-23 @324 gctUINT32 writePtrReg;
e9371a70921300 Minjie Zhuang 2019-09-23 325 gctUINT32 data = 0;
e9371a70921300 Minjie Zhuang 2019-09-23 326
e9371a70921300 Minjie Zhuang 2019-09-23 327 if (Priority)
e9371a70921300 Minjie Zhuang 2019-09-23 328 {
eda396f8bc47b8 Xianzhong 2020-08-12 329 ringBufStartReg = 0x02800;
eda396f8bc47b8 Xianzhong 2020-08-12 330 depthExpReg = 0x02900;
eda396f8bc47b8 Xianzhong 2020-08-12 331 readPtrReg = 0x02B00;
eda396f8bc47b8 Xianzhong 2020-08-12 332 writePtrReg = 0x02A00;
e9371a70921300 Minjie Zhuang 2019-09-23 333 }
e9371a70921300 Minjie Zhuang 2019-09-23 334 else
e9371a70921300 Minjie Zhuang 2019-09-23 335 {
eda396f8bc47b8 Xianzhong 2020-08-12 336 ringBufStartReg = 0x02400;
eda396f8bc47b8 Xianzhong 2020-08-12 337 depthExpReg = 0x02500;
eda396f8bc47b8 Xianzhong 2020-08-12 338 readPtrReg = 0x02700;
eda396f8bc47b8 Xianzhong 2020-08-12 339 writePtrReg = 0x02600;
e9371a70921300 Minjie Zhuang 2019-09-23 340 }
e9371a70921300 Minjie Zhuang 2019-09-23 341
e9371a70921300 Minjie Zhuang 2019-09-23 342 ringBufStartReg += Index << 2;
e9371a70921300 Minjie Zhuang 2019-09-23 343 depthExpReg += Index << 2;
e9371a70921300 Minjie Zhuang 2019-09-23 344 readPtrReg += Index << 2;
e9371a70921300 Minjie Zhuang 2019-09-23 345 writePtrReg += Index << 2;
e9371a70921300 Minjie Zhuang 2019-09-23 346
e9371a70921300 Minjie Zhuang 2019-09-23 347 Channel->ringBufAddress = MMUEnabled ? Channel->gpuAddress
e9371a70921300 Minjie Zhuang 2019-09-23 348 : (gctUINT32)Channel->physical;
e9371a70921300 Minjie Zhuang 2019-09-23 349
e9371a70921300 Minjie Zhuang 2019-09-23 350 /* Channel ringBuf start address. */
e9371a70921300 Minjie Zhuang 2019-09-23 351 gcmkVERIFY_OK(gckOS_WriteRegisterEx(
e9371a70921300 Minjie Zhuang 2019-09-23 352 Hardware->os, Hardware->core, ringBufStartReg, Channel->ringBufAddress));
e9371a70921300 Minjie Zhuang 2019-09-23 353
e9371a70921300 Minjie Zhuang 2019-09-23 354 /* Channel ringBuf depth (exponent of 2). */
e9371a70921300 Minjie Zhuang 2019-09-23 355 gcmkVERIFY_OK(gckOS_WriteRegisterEx(
e9371a70921300 Minjie Zhuang 2019-09-23 356 Hardware->os, Hardware->core, depthExpReg, MCFE_RINGBUF_DEPTH_EXP));
e9371a70921300 Minjie Zhuang 2019-09-23 357
e9371a70921300 Minjie Zhuang 2019-09-23 358 /* The RD ptr could keep unchanged, read and compute WR ptr. */
e9371a70921300 Minjie Zhuang 2019-09-23 359 gcmkVERIFY_OK(gckOS_ReadRegisterEx(Hardware->os, Hardware->core, readPtrReg, &data));
e9371a70921300 Minjie Zhuang 2019-09-23 360
e9371a70921300 Minjie Zhuang 2019-09-23 361 /* Priority ring buffer write ptr. */
e9371a70921300 Minjie Zhuang 2019-09-23 362 /* gcmkVERIFY_OK(gckOS_WriteRegisterEx(Hardware->os, Hardware->core, writePtrReg, data)); */
e9371a70921300 Minjie Zhuang 2019-09-23 363
e9371a70921300 Minjie Zhuang 2019-09-23 364 /* No valid descriptor initially. */
e9371a70921300 Minjie Zhuang 2019-09-23 365 Channel->readPtr = Channel->writePtr = data;
e9371a70921300 Minjie Zhuang 2019-09-23 366
e9371a70921300 Minjie Zhuang 2019-09-23 367 return gcvSTATUS_OK;
e9371a70921300 Minjie Zhuang 2019-09-23 368 }
e9371a70921300 Minjie Zhuang 2019-09-23 369
:::::: The code at line 324 was first introduced by commit
:::::: e9371a70921300bb8c5fd233e414164490dadf8e gpu:Integrate 6.4.0 kernel driver for Linux L5.x
:::::: TO: Minjie Zhuang <minjie.zhuang@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34306 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-04 15:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04 15:45 [freescale-fslc:pr/434 15241/20850] drivers/mxc/gpu-viv/hal/kernel/arch/gc_hal_kernel_hardware_mc_fe.c:324:15: error: variable 'writePtrReg' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.