All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ti:ti-android-linux-4.19-y 6022/18941] drivers/gpu/pvr/services4/srvkm/common/devicemem.c:1949:22: warning: variable 'psDeviceNode' set but not used
Date: Wed, 20 May 2020 09:00:22 +0800	[thread overview]
Message-ID: <20200520010022.GC3101@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 7290 bytes --]

tree:   git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-android-linux-4.19.y
head:   bbd2d7e083faf8b0168f9885d1abf5012b5f610a
commit: ad863d48d21ef495a51194e580b1f71edd11aa09 [6022/18941] drivers: pvr: Fix build failure due to missing config_kernel.h
config: xtensa-randconfig-r013-20200519 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout ad863d48d21ef495a51194e580b1f71edd11aa09
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/kernel.h:10,
from drivers/gpu/pvr/include4/kernel_types.h:42,
from drivers/gpu/pvr/include4/img_types.h:46,
from drivers/gpu/pvr/include4/img_defs.h:46,
from drivers/gpu/pvr/services4/srvkm/bridged/bridged_pvr_bridge.c:48:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 |  ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
|         ^~
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
|                                          ^
include/linux/dma-mapping.h:329:2: note: in expansion of macro 'BUG_ON'
329 |  BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
|  ^~~~~~
include/linux/dma-mapping.h:329:9: note: in expansion of macro 'pfn_valid'
329 |  BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
|         ^~~~~~~~~
drivers/gpu/pvr/services4/srvkm/bridged/bridged_pvr_bridge.c: In function 'BridgedDispatchKM':
>> drivers/gpu/pvr/services4/srvkm/bridged/bridged_pvr_bridge.c:5022:73: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
5022 |   PVR_DPF((PVR_DBG_MESSAGE, "ui32BridgeID = %d Failed!!", ui32BridgeID));
|                                                                         ^
--
drivers/gpu/pvr/services4/srvkm/common/devicemem.c: In function 'PVRSRVMapDmaBufKM':
>> drivers/gpu/pvr/services4/srvkm/common/devicemem.c:1949:22: warning: variable 'psDeviceNode' set but not used [-Wunused-but-set-variable]
1949 |  PVRSRV_DEVICE_NODE *psDeviceNode;
|                      ^~~~~~~~~~~~
--
drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c: In function 'SGXInitialise':
>> drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c:540:20: warning: variable 'bFirstTime' set but not used [-Wunused-but-set-variable]
540 |  static IMG_BOOL   bFirstTime = IMG_TRUE;
|                    ^~~~~~~~~~
drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c: In function 'SGXGetMiscInfoKM':
>> drivers/gpu/pvr/services4/srvkm/devices/sgx/sgxinit.c:2984:14: warning: variable 'pui32MiscInfoFlags' set but not used [-Wunused-but-set-variable]
2984 |  IMG_UINT32 *pui32MiscInfoFlags;
|              ^~~~~~~~~~~~~~~~~~
--
drivers/gpu/pvr/services4/srvkm/env/linux/dma_fence_sync_native_server.c: In function 'SyncSWTimelineFenceCreateKM':
>> drivers/gpu/pvr/services4/srvkm/env/linux/dma_fence_sync_native_server.c:26:15: warning: variable 'eError' set but not used [-Wunused-but-set-variable]
26 |  PVRSRV_ERROR eError;
|               ^~~~~~
--
In file included from drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:84:
>> drivers/gpu/pvr/services4/srvkm/env/linux/mutils.h:73:4: error: #error Unsupported architecture!
73 |   #error  Unsupported architecture!
|    ^~~~~
In file included from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:50:
drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c: In function 'DoMapToUser':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 |  ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
|         ^~
>> drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:738:9: note: in expansion of macro 'pfn_valid'
738 |    if (!pfn_valid(pfn))
|         ^~~~~~~~~
drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c: In function 'MMapVAccess':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 |  ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
|         ^~
drivers/gpu/pvr/services4/srvkm/env/linux/mmap.c:960:8: note: in expansion of macro 'pfn_valid'
960 |   if (!pfn_valid(pfn))
|        ^~~~~~~~~
--
In file included from drivers/gpu/pvr/services4/srvkm/env/linux/mm.c:78:
>> drivers/gpu/pvr/services4/srvkm/env/linux/mutils.h:73:4: error: #error Unsupported architecture!
73 |   #error  Unsupported architecture!
|    ^~~~~
--
>> drivers/gpu/pvr/services4/srvkm/env/linux/osfunc.c:56:10: fatal error: asm/set_memory.h: No such file or directory
56 | #include <asm/set_memory.h>
|          ^~~~~~~~~~~~~~~~~~
compilation terminated.

git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git remote update ti
git checkout ad863d48d21ef495a51194e580b1f71edd11aa09
vim +73 drivers/gpu/pvr/services4/srvkm/env/linux/mutils.h

d2d3c94cd4280d Andrew F. Davis 2018-04-04  59  
d2d3c94cd4280d Andrew F. Davis 2018-04-04  60  #if defined(SUPPORT_LINUX_X86_PAT)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  61  	pgprot_t pvr_pgprot_writecombine(pgprot_t prot);
d2d3c94cd4280d Andrew F. Davis 2018-04-04  62  	#define	PGPROT_WC(pv)	pvr_pgprot_writecombine(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  63  #else
d2d3c94cd4280d Andrew F. Davis 2018-04-04  64  	#if defined(__arm__) || defined(__aarch64__) || defined(__sh__)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  65  		#define	PGPROT_WC(pv)	pgprot_writecombine(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  66  	#elif defined(__mips__)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  67  		#define PGPROT_WC(pv)	pgprot_writecombine(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  68  	#elif defined(__i386__) || defined(__x86_64)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  69  		/* PAT support supersedes this */
d2d3c94cd4280d Andrew F. Davis 2018-04-04  70  		#define	PGPROT_WC(pv)	pgprot_noncached(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04  71  	#else
d2d3c94cd4280d Andrew F. Davis 2018-04-04  72  		#define PGPROT_WC(pv)	pgprot_noncached(pv)
d2d3c94cd4280d Andrew F. Davis 2018-04-04 @73  		#error  Unsupported architecture!
d2d3c94cd4280d Andrew F. Davis 2018-04-04  74  	#endif
d2d3c94cd4280d Andrew F. Davis 2018-04-04  75  #endif
d2d3c94cd4280d Andrew F. Davis 2018-04-04  76  

:::::: The code at line 73 was first introduced by commit
:::::: d2d3c94cd4280d63c08c5039be4bf2372f9b2421 drivers: gpu: Add PowerVR SGX544 driver

:::::: TO: Andrew F. Davis <afd@ti.com>
:::::: CC: Praneeth Bajjuri <praneeth@ti.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: 25051 bytes --]

                 reply	other threads:[~2020-05-20  1:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200520010022.GC3101@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.