From: kernel test robot <lkp@intel.com>
To: "GUO Ren (XuanTie)" <guoren@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
x86@kernel.org, Thomas Gleixner <tglx@kernel.org>,
Radu Rendec <radu@rendec.net>, Anup Patel <anup@brainfault.org>
Subject: [tip:irq/drivers 6/22] drivers/media/platform/mediatek/vpu/mtk_vpu.h:63:2: error: redeclaration of enumerator 'IPI_MAX'
Date: Tue, 08 Sep 2026 05:36:46 +0800 [thread overview]
Message-ID: <202609080548.LJVHAwpC-lkp@intel.com> (raw)
Hi GUO,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/drivers
head: 0c65a1331928d0207c385f03fb5eba0cfecce0e6
commit: 1ae91dc397eb1dbc0f4fc6b96f2481cbc02fe0f9 [6/22] riscv: smp: Move enum ipi_message_type to asm/smp.h
config: riscv-randconfig-r111-20260908 (https://download.01.org/0day-ci/archive/20260908/202609080548.LJVHAwpC-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609080548.LJVHAwpC-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609080548.LJVHAwpC-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/media/platform/mediatek/mdp/mtk_mdp_core.c:23:
>> drivers/media/platform/mediatek/vpu/mtk_vpu.h:63:2: error: redeclaration of enumerator 'IPI_MAX'
IPI_MAX,
^~~~~~~
In file included from include/linux/smp.h:119,
from include/linux/lockdep.h:14,
from include/linux/mutex.h:17,
from include/linux/notifier.h:14,
from include/linux/clk.h:14,
from drivers/media/platform/mediatek/mdp/mtk_mdp_core.c:8:
arch/riscv/include/asm/smp.h:27:2: note: previous definition of 'IPI_MAX' was here
IPI_MAX
^~~~~~~
--
In file included from drivers/media/platform/mediatek/vcodec/common/../decoder/../common/mtk_vcodec_fw.h:9,
from drivers/media/platform/mediatek/vcodec/common/../decoder/../common/mtk_vcodec_fw_priv.h:6,
from drivers/media/platform/mediatek/vcodec/common/../decoder/mtk_vcodec_dec_drv.h:14,
from drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_intr.c:10:
>> drivers/media/platform/mediatek/vcodec/common/../decoder/../common/../../vpu/mtk_vpu.h:63:2: error: redeclaration of enumerator 'IPI_MAX'
IPI_MAX,
^~~~~~~
In file included from include/linux/smp.h:119,
from include/linux/interrupt_rc.h:17,
from include/linux/spinlock.h:60,
from include/linux/wait.h:9,
from drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_intr.c:8:
arch/riscv/include/asm/smp.h:27:2: note: previous definition of 'IPI_MAX' was here
IPI_MAX
^~~~~~~
--
In file included from drivers/media/platform/mediatek/vcodec/encoder/venc/../../common/mtk_vcodec_fw.h:9,
from drivers/media/platform/mediatek/vcodec/encoder/venc/../../common/mtk_vcodec_fw_priv.h:6,
from drivers/media/platform/mediatek/vcodec/encoder/venc/../mtk_vcodec_enc_drv.h:12,
from drivers/media/platform/mediatek/vcodec/encoder/venc/venc_vp8_if.c:12:
>> drivers/media/platform/mediatek/vcodec/encoder/venc/../../common/../../vpu/mtk_vpu.h:63:2: error: redeclaration of enumerator 'IPI_MAX'
IPI_MAX,
^~~~~~~
In file included from include/linux/smp.h:119,
from include/linux/alloc_tag.h:14,
from include/linux/percpu.h:5,
from include/linux/context_tracking_state.h:5,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers/media/platform/mediatek/vcodec/encoder/venc/venc_vp8_if.c:8:
arch/riscv/include/asm/smp.h:27:2: note: previous definition of 'IPI_MAX' was here
IPI_MAX
^~~~~~~
--
In file included from drivers/media/platform/mediatek/vcodec/encoder/../common/mtk_vcodec_fw.h:9,
from drivers/media/platform/mediatek/vcodec/encoder/../common/mtk_vcodec_fw_priv.h:6,
from drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc_drv.h:12,
from drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.h:14,
from drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.c:13:
>> drivers/media/platform/mediatek/vcodec/encoder/../common/../../vpu/mtk_vpu.h:63:2: error: redeclaration of enumerator 'IPI_MAX'
IPI_MAX,
^~~~~~~
In file included from include/linux/smp.h:119,
from arch/riscv/include/asm/mmiowb.h:12,
from arch/riscv/include/asm/mmio.h:16,
from arch/riscv/include/asm/clint.h:10,
from arch/riscv/include/asm/timex.h:15,
from include/linux/timex.h:67,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/videodev2.h:59,
from include/media/v4l2-event.h:16,
from drivers/media/platform/mediatek/vcodec/encoder/mtk_vcodec_enc.c:8:
arch/riscv/include/asm/smp.h:27:2: note: previous definition of 'IPI_MAX' was here
IPI_MAX
^~~~~~~
--
In file included from drivers/media/platform/mediatek/vcodec/decoder/vdec/../../common/mtk_vcodec_fw.h:9,
from drivers/media/platform/mediatek/vcodec/decoder/vdec/../../common/mtk_vcodec_fw_priv.h:6,
from drivers/media/platform/mediatek/vcodec/decoder/vdec/../mtk_vcodec_dec_drv.h:14,
from drivers/media/platform/mediatek/vcodec/decoder/vdec/../mtk_vcodec_dec.h:14,
from drivers/media/platform/mediatek/vcodec/decoder/vdec/../vdec_drv_if.h:11,
from drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_if.c:10:
>> drivers/media/platform/mediatek/vcodec/decoder/vdec/../../common/../../vpu/mtk_vpu.h:63:2: error: redeclaration of enumerator 'IPI_MAX'
IPI_MAX,
^~~~~~~
In file included from include/linux/smp.h:119,
from arch/riscv/include/asm/mmiowb.h:12,
from arch/riscv/include/asm/mmio.h:16,
from arch/riscv/include/asm/clint.h:10,
from arch/riscv/include/asm/timex.h:15,
from include/linux/timex.h:67,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_if.c:7:
arch/riscv/include/asm/smp.h:27:2: note: previous definition of 'IPI_MAX' was here
IPI_MAX
^~~~~~~
--
In file included from drivers/media/platform/mediatek/vcodec/decoder/../common/mtk_vcodec_fw.h:9,
from drivers/media/platform/mediatek/vcodec/decoder/../common/mtk_vcodec_fw_priv.h:6,
from drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.h:14,
from drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec.h:14,
from drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c:24:
>> drivers/media/platform/mediatek/vcodec/decoder/../common/../../vpu/mtk_vpu.h:63:2: error: redeclaration of enumerator 'IPI_MAX'
IPI_MAX,
^~~~~~~
In file included from include/linux/smp.h:119,
from include/linux/interrupt_rc.h:17,
from include/linux/spinlock.h:60,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:7,
from include/linux/slab.h:17,
from drivers/media/platform/mediatek/vcodec/decoder/mtk_vcodec_dec_drv.c:9:
arch/riscv/include/asm/smp.h:27:2: note: previous definition of 'IPI_MAX' was here
IPI_MAX
^~~~~~~
vim +/IPI_MAX +63 drivers/media/platform/mediatek/vpu/mtk_vpu.h
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 11
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 12 /**
0f02beec61875e9 drivers/media/platform/mtk-vpu/mtk_vpu.h Hans Verkuil 2021-03-11 13 * DOC: VPU
0f02beec61875e9 drivers/media/platform/mtk-vpu/mtk_vpu.h Hans Verkuil 2021-03-11 14 *
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 15 * VPU (video processor unit) is a tiny processor controlling video hardware
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 16 * related to video codec, scaling and color format converting.
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 17 * VPU interfaces with other blocks by share memory and interrupt.
0f02beec61875e9 drivers/media/platform/mtk-vpu/mtk_vpu.h Hans Verkuil 2021-03-11 18 */
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 19
bfb1b99802ef160 drivers/media/platform/mediatek/vpu/mtk_vpu.h Arnd Bergmann 2024-02-24 20 typedef void (*ipi_handler_t) (void *data,
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 21 unsigned int len,
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 22 void *priv);
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 23
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 24 /**
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 25 * enum ipi_id - the id of inter-processor interrupt
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 26 *
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 27 * @IPI_VPU_INIT: The interrupt from vpu is to notfiy kernel
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 28 * VPU initialization completed.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 29 * IPI_VPU_INIT is sent from VPU when firmware is
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 30 * loaded. AP doesn't need to send IPI_VPU_INIT
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 31 * command to VPU.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 32 * For other IPI below, AP should send the request
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 33 * to VPU to trigger the interrupt.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 34 * @IPI_VDEC_H264: The interrupt from vpu is to notify kernel to
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 35 * handle H264 vidoe decoder job, and vice versa.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 36 * Decode output format is always MT21 no matter what
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 37 * the input format is.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 38 * @IPI_VDEC_VP8: The interrupt from is to notify kernel to
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 39 * handle VP8 video decoder job, and vice versa.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 40 * Decode output format is always MT21 no matter what
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 41 * the input format is.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 42 * @IPI_VDEC_VP9: The interrupt from vpu is to notify kernel to
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 43 * handle VP9 video decoder job, and vice versa.
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 44 * Decode output format is always MT21 no matter what
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 45 * the input format is.
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 46 * @IPI_VENC_H264: The interrupt from vpu is to notify kernel to
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 47 * handle H264 video encoder job, and vice versa.
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 48 * @IPI_VENC_VP8: The interrupt fro vpu is to notify kernel to
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 49 * handle VP8 video encoder job,, and vice versa.
737ea6cfd226312 drivers/media/platform/mtk-vpu/mtk_vpu.h Minghsiu Tsai 2016-09-08 50 * @IPI_MDP: The interrupt from vpu is to notify kernel to
737ea6cfd226312 drivers/media/platform/mtk-vpu/mtk_vpu.h Minghsiu Tsai 2016-09-08 51 * handle MDP (Media Data Path) job, and vice versa.
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 52 * @IPI_MAX: The maximum IPI number
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 53 */
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 54
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 55 enum ipi_id {
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 56 IPI_VPU_INIT = 0,
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 57 IPI_VDEC_H264,
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 58 IPI_VDEC_VP8,
e2818a59f7ca42e drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-09-02 59 IPI_VDEC_VP9,
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 60 IPI_VENC_H264,
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 61 IPI_VENC_VP8,
737ea6cfd226312 drivers/media/platform/mtk-vpu/mtk_vpu.h Minghsiu Tsai 2016-09-08 62 IPI_MDP,
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 @63 IPI_MAX,
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 64 };
3003a180ef6b946 drivers/media/platform/mtk-vpu/mtk_vpu.h Andrew-CT Chen 2016-05-03 65
:::::: The code at line 63 was first introduced by commit
:::::: 3003a180ef6b9462f3cccc2a89884ef2332d2a1c [media] VPU: mediatek: support Mediatek VPU
:::::: TO: Andrew-CT Chen <andrew-ct.chen@mediatek.com>
:::::: CC: Mauro Carvalho Chehab <mchehab@s-opensource.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-09-07 21:37 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=202609080548.LJVHAwpC-lkp@intel.com \
--to=lkp@intel.com \
--cc=anup@brainfault.org \
--cc=guoren@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=radu@rendec.net \
--cc=tglx@kernel.org \
--cc=x86@kernel.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.