public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mitali Borkar <mitaliborkar810@gmail.com>,
	narmstrong@baylibre.com, mchehab@kernel.org,
	gregkh@linuxfoundation.org, khilman@baylibre.com,
	jbrunet@baylibre.com, martin.blumenstingl@googlemail.com
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	linux-media@vger.kernel.org, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com
Subject: Re: [PATCH v4] staging: media: meson: vdec: declare u32 as static const
Date: Wed, 14 Apr 2021 06:11:25 +0800	[thread overview]
Message-ID: <202104140654.jBQ1lIpE-lkp@intel.com> (raw)
In-Reply-To: <YHW8DWNUAmp4mXm3@kali>

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

Hi Mitali,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]

url:    https://github.com/0day-ci/linux/commits/Mitali-Borkar/staging-media-meson-vdec-declare-u32-as-static-const/20210413-234504
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 07ff20cf172f31f0dfbc456662f20339767c69fd
config: riscv-randconfig-r025-20210413 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # https://github.com/0day-ci/linux/commit/b84078e468c70722ef830e5a387ec6b89a8cdc8a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Mitali-Borkar/staging-media-meson-vdec-declare-u32-as-static-const/20210413-234504
        git checkout b84078e468c70722ef830e5a387ec6b89a8cdc8a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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/staging/media/meson/vdec/codec_h264.c:290:33: error: use of undeclared identifier 'ANCO_CANVAS_ADDR'
           static const u32 canvas3[] = { ANCO_CANVAS_ADDR, 0 };
                                          ^
>> drivers/staging/media/meson/vdec/codec_h264.c:293:28: error: passing 'const u32 []' to parameter of type 'u32 *' (aka 'unsigned int *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
           amvdec_set_canvases(sess, canvas3, canvas4);
                                     ^~~~~~~
   drivers/staging/media/meson/vdec/vdec_helpers.h:20:8: note: passing argument to parameter 'reg_base' here
                           u32 reg_base[], u32 reg_num[]);
                               ^
   drivers/staging/media/meson/vdec/codec_h264.c:293:37: error: passing 'const u32 [2]' to parameter of type 'u32 *' (aka 'unsigned int *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
           amvdec_set_canvases(sess, canvas3, canvas4);
                                              ^~~~~~~
   drivers/staging/media/meson/vdec/vdec_helpers.h:20:24: note: passing argument to parameter 'reg_num' here
                           u32 reg_base[], u32 reg_num[]);
                                               ^
   3 errors generated.


vim +/ANCO_CANVAS_ADDR +290 drivers/staging/media/meson/vdec/codec_h264.c

   284	
   285	static void codec_h264_resume(struct amvdec_session *sess)
   286	{
   287		struct amvdec_core *core = sess->core;
   288		struct codec_h264 *h264 = sess->priv;
   289		u32 mb_width, mb_height, mb_total;
 > 290		static const u32 canvas3[] = { ANCO_CANVAS_ADDR, 0 };
   291		static const u32 canvas4[] = { 24, 0 };
   292	
 > 293		amvdec_set_canvases(sess, canvas3, canvas4);
   294	
   295		dev_dbg(core->dev, "max_refs = %u; actual_dpb_size = %u\n",
   296			h264->max_refs, sess->num_dst_bufs);
   297	
   298		/* Align to a multiple of 4 macroblocks */
   299		mb_width = ALIGN(h264->mb_width, 4);
   300		mb_height = ALIGN(h264->mb_height, 4);
   301		mb_total = mb_width * mb_height;
   302	
   303		h264->ref_size = mb_total * MB_MV_SIZE * h264->max_refs;
   304		h264->ref_vaddr = dma_alloc_coherent(core->dev, h264->ref_size,
   305						     &h264->ref_paddr, GFP_KERNEL);
   306		if (!h264->ref_vaddr) {
   307			amvdec_abort(sess);
   308			return;
   309		}
   310	
   311		/* Address to store the references' MVs */
   312		amvdec_write_dos(core, AV_SCRATCH_1, h264->ref_paddr);
   313		/* End of ref MV */
   314		amvdec_write_dos(core, AV_SCRATCH_4, h264->ref_paddr + h264->ref_size);
   315	
   316		amvdec_write_dos(core, AV_SCRATCH_0, (h264->max_refs << 24) |
   317						     (sess->num_dst_bufs << 16) |
   318						     ((h264->max_refs - 1) << 8));
   319	}
   320	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33827 bytes --]

      reply	other threads:[~2021-04-13 22:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-13 15:43 [PATCH v4] staging: media: meson: vdec: declare u32 as static const Mitali Borkar
2021-04-13 22:11 ` kernel test robot [this message]

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=202104140654.jBQ1lIpE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jbrunet@baylibre.com \
    --cc=kbuild-all@lists.01.org \
    --cc=khilman@baylibre.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=mchehab@kernel.org \
    --cc=mitaliborkar810@gmail.com \
    --cc=narmstrong@baylibre.com \
    --cc=outreachy-kernel@googlegroups.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox