All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [chrome-os:chromeos-4.19 1/2] drivers/gpu/arm/bifrost/mali_kbase_fence.c:78:1: error: no previous prototype for 'kbase_fence_wait_workaround'
Date: Thu, 15 Apr 2021 18:45:28 +0800	[thread overview]
Message-ID: <202104151823.1IPec9eJ-lkp@intel.com> (raw)

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

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head:   a4d27a9781277d13adcfeed5d8819a96dfe57b60
commit: 68e5cd9b07284ac83dfb140bc670b4d1e365c17a [1/2] CHROMIUM: MALI: Set short timeout for kbase DMA fence
config: arm64-chromiumos-mediatek-customedconfig-chrome-os:chromeos-4.19:a4d27a9781277d13adcfeed5d8819a96dfe57b60 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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
        git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
        git fetch --no-tags chrome-os chromeos-4.19
        git checkout 68e5cd9b07284ac83dfb140bc670b4d1e365c17a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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/gpu/arm/bifrost/mali_kbase_fence.c: In function 'kbase_fence_fence_value_str':
   drivers/gpu/arm/bifrost/mali_kbase_fence.c:71:24: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'u64' {aka 'long long unsigned int'} [-Werror=format=]
      71 |  snprintf(str, size, "%u", fence->seqno);
         |                       ~^   ~~~~~~~~~~~~
         |                        |        |
         |                        |        u64 {aka long long unsigned int}
         |                        unsigned int
         |                       %llu
   drivers/gpu/arm/bifrost/mali_kbase_fence.c: At top level:
>> drivers/gpu/arm/bifrost/mali_kbase_fence.c:78:1: error: no previous prototype for 'kbase_fence_wait_workaround' [-Werror=missing-prototypes]
      78 | kbase_fence_wait_workaround(struct dma_fence *fence,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/arm/bifrost/mali_kbase_defs.h:37,
                    from drivers/gpu/arm/bifrost/mali_kbase.h:57,
                    from drivers/gpu/arm/bifrost/mali_kbase_fence.h:36,
                    from drivers/gpu/arm/bifrost/mali_kbase_fence.c:27:
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:625:33: error: 'base_hw_issues_model_tE2x' defined but not used [-Werror=unused-const-variable=]
     625 | static const enum base_hw_issue base_hw_issues_model_tE2x[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:615:33: error: 'base_hw_issues_tE2x_r0p0' defined but not used [-Werror=unused-const-variable=]
     615 | static const enum base_hw_issue base_hw_issues_tE2x_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:607:33: error: 'base_hw_issues_model_tTUx' defined but not used [-Werror=unused-const-variable=]
     607 | static const enum base_hw_issue base_hw_issues_model_tTUx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:600:33: error: 'base_hw_issues_tTUx_r0p0' defined but not used [-Werror=unused-const-variable=]
     600 | static const enum base_hw_issue base_hw_issues_tTUx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:592:33: error: 'base_hw_issues_model_tVAx' defined but not used [-Werror=unused-const-variable=]
     592 | static const enum base_hw_issue base_hw_issues_model_tVAx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:585:33: error: 'base_hw_issues_tVAx_r0p0' defined but not used [-Werror=unused-const-variable=]
     585 | static const enum base_hw_issue base_hw_issues_tVAx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:577:33: error: 'base_hw_issues_model_tGRx' defined but not used [-Werror=unused-const-variable=]
     577 | static const enum base_hw_issue base_hw_issues_model_tGRx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:570:33: error: 'base_hw_issues_tGRx_r0p0' defined but not used [-Werror=unused-const-variable=]
     570 | static const enum base_hw_issue base_hw_issues_tGRx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:562:33: error: 'base_hw_issues_model_tODx' defined but not used [-Werror=unused-const-variable=]
     562 | static const enum base_hw_issue base_hw_issues_model_tODx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:555:33: error: 'base_hw_issues_tODx_r0p0' defined but not used [-Werror=unused-const-variable=]
     555 | static const enum base_hw_issue base_hw_issues_tODx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:545:33: error: 'base_hw_issues_model_tDUx' defined but not used [-Werror=unused-const-variable=]
     545 | static const enum base_hw_issue base_hw_issues_model_tDUx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:535:33: error: 'base_hw_issues_tDUx_r0p0' defined but not used [-Werror=unused-const-variable=]
     535 | static const enum base_hw_issue base_hw_issues_tDUx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:522:33: error: 'base_hw_issues_lBEx_r1p1' defined but not used [-Werror=unused-const-variable=]
     522 | static const enum base_hw_issue base_hw_issues_lBEx_r1p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:508:33: error: 'base_hw_issues_lBEx_r1p0' defined but not used [-Werror=unused-const-variable=]
     508 | static const enum base_hw_issue base_hw_issues_lBEx_r1p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:496:33: error: 'base_hw_issues_model_tBEx' defined but not used [-Werror=unused-const-variable=]
     496 | static const enum base_hw_issue base_hw_issues_model_tBEx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:483:33: error: 'base_hw_issues_tBEx_r1p1' defined but not used [-Werror=unused-const-variable=]
     483 | static const enum base_hw_issue base_hw_issues_tBEx_r1p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:470:33: error: 'base_hw_issues_tBEx_r1p0' defined but not used [-Werror=unused-const-variable=]
     470 | static const enum base_hw_issue base_hw_issues_tBEx_r1p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:457:33: error: 'base_hw_issues_tBEx_r0p1' defined but not used [-Werror=unused-const-variable=]
     457 | static const enum base_hw_issue base_hw_issues_tBEx_r0p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:443:33: error: 'base_hw_issues_tBEx_r0p0' defined but not used [-Werror=unused-const-variable=]
     443 | static const enum base_hw_issue base_hw_issues_tBEx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:431:33: error: 'base_hw_issues_model_tNAx' defined but not used [-Werror=unused-const-variable=]
     431 | static const enum base_hw_issue base_hw_issues_model_tNAx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:416:33: error: 'base_hw_issues_tNAx_r0p1' defined but not used [-Werror=unused-const-variable=]
     416 | static const enum base_hw_issue base_hw_issues_tNAx_r0p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:400:33: error: 'base_hw_issues_tNAx_r0p0' defined but not used [-Werror=unused-const-variable=]
     400 | static const enum base_hw_issue base_hw_issues_tNAx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:388:33: error: 'base_hw_issues_model_tTRx' defined but not used [-Werror=unused-const-variable=]
     388 | static const enum base_hw_issue base_hw_issues_model_tTRx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:373:33: error: 'base_hw_issues_tTRx_r0p2' defined but not used [-Werror=unused-const-variable=]
     373 | static const enum base_hw_issue base_hw_issues_tTRx_r0p2[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:357:33: error: 'base_hw_issues_tTRx_r0p1' defined but not used [-Werror=unused-const-variable=]
     357 | static const enum base_hw_issue base_hw_issues_tTRx_r0p1[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:341:33: error: 'base_hw_issues_tTRx_r0p0' defined but not used [-Werror=unused-const-variable=]
     341 | static const enum base_hw_issue base_hw_issues_tTRx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:331:33: error: 'base_hw_issues_model_tGOx' defined but not used [-Werror=unused-const-variable=]
     331 | static const enum base_hw_issue base_hw_issues_model_tGOx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:319:33: error: 'base_hw_issues_tGOx_r1p0' defined but not used [-Werror=unused-const-variable=]
     319 | static const enum base_hw_issue base_hw_issues_tGOx_r1p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:307:33: error: 'base_hw_issues_tGOx_r0p0' defined but not used [-Werror=unused-const-variable=]
     307 | static const enum base_hw_issue base_hw_issues_tGOx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:297:33: error: 'base_hw_issues_model_tNOx' defined but not used [-Werror=unused-const-variable=]
     297 | static const enum base_hw_issue base_hw_issues_model_tNOx[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:285:33: error: 'base_hw_issues_tNOx_r0p0' defined but not used [-Werror=unused-const-variable=]
     285 | static const enum base_hw_issue base_hw_issues_tNOx_r0p0[] = {
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/arm/bifrost/mali_base_hwconfig_issues.h:275:33: error: 'base_hw_issues_model_tDVx' defined but not used [-Werror=unused-const-variable=]


vim +/kbase_fence_wait_workaround +78 drivers/gpu/arm/bifrost/mali_kbase_fence.c

    62	
    63	static void
    64	#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0))
    65	kbase_fence_fence_value_str(struct fence *fence, char *str, int size)
    66	#else
    67	kbase_fence_fence_value_str(struct dma_fence *fence, char *str, int size)
    68	#endif
    69	{
    70	#if (KERNEL_VERSION(5, 1, 0) > LINUX_VERSION_CODE)
  > 71		snprintf(str, size, "%u", fence->seqno);
    72	#else
    73		snprintf(str, size, "%llu", fence->seqno);
    74	#endif
    75	}
    76	
    77	signed long
  > 78	kbase_fence_wait_workaround(struct dma_fence *fence,
    79				    bool intr,
    80				    signed long timeout)
    81	{
    82		/* TODO(fshao): b:175656896: sometimes the screen hangs because the DMA
    83		 * fences don't get signaled, which triggers system reboot in the end.
    84		 *
    85		 * This is a workaround to shorten the wait time of the fence, so the
    86		 * screen can recover from hanging when the issue happens.
    87		 *
    88		 * To properly address this issue we need to first find out which
    89		 * component is responsible for signaling the Mali DMA fences, but
    90		 * unfortunately there's no easy way to do that AFAIK.
    91		 */
    92		signed long ret;
    93	
    94		ret = dma_fence_default_wait(fence, intr, msecs_to_jiffies(100));
    95		if (ret == 0)
    96			pr_err("%s: dma fence wait timed out.", __func__);
    97		return ret;
    98	}
    99	

---
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: 33957 bytes --]

                 reply	other threads:[~2021-04-15 10:45 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=202104151823.1IPec9eJ-lkp@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.