drivers/media/platform/rcar_jpu.c:77: warning: "RST" redefined

From: kernel test robot
Date: Sat May 01 2021 - 07:43:19 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9f67672a817ec046f7554a885f0fe0d60e1bf99f
commit: a19f228b8dd9a67e8de4ebd4eac8a4c94ec39d1a media: Kconfig: not all V4L2 platform drivers are for camera
date: 1 year, 1 month ago
config: mips-randconfig-m031-20210501 (attached as .config)
compiler: mipsel-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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a19f228b8dd9a67e8de4ebd4eac8a4c94ec39d1a
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a19f228b8dd9a67e8de4ebd4eac8a4c94ec39d1a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/media/platform/rcar_jpu.c:77: warning: "RST" redefined
77 | #define RST 0xd0
|
In file included from arch/mips/include/asm/mach-rc32434/irq.h:8,
from arch/mips/include/asm/irq.h:18,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from arch/mips/include/asm/hardirq.h:16,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/media/platform/rcar_jpu.c:20:
arch/mips/include/asm/mach-rc32434/rb.h:15: note: this is the location of the previous definition
15 | #define RST (1 << 15)
|
--
In file included from drivers/media/platform/s5p-jpeg/jpeg-core.c:30:
>> drivers/media/platform/s5p-jpeg/jpeg-core.h:43: warning: "RST" redefined
43 | #define RST 0xd0
|
In file included from arch/mips/include/asm/mach-rc32434/irq.h:8,
from arch/mips/include/asm/irq.h:18,
from include/linux/irq.h:23,
from include/asm-generic/hardirq.h:13,
from arch/mips/include/asm/hardirq.h:16,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from drivers/media/platform/s5p-jpeg/jpeg-core.c:14:
arch/mips/include/asm/mach-rc32434/rb.h:15: note: this is the location of the previous definition
15 | #define RST (1 << 15)
|


vim +/RST +77 drivers/media/platform/rcar_jpu.c

2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 73
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 74 /* JPEG markers */
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 75 #define TEM 0x01
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 76 #define SOF0 0xc0
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 @77 #define RST 0xd0
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 78 #define SOI 0xd8
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 79 #define EOI 0xd9
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 80 #define DHP 0xde
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 81 #define DHT 0xc4
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 82 #define COM 0xfe
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 83 #define DQT 0xdb
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 84 #define DRI 0xdd
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 85 #define APP0 0xe0
2c42cdbaec56a9 Mikhail Ulyanov 2015-07-22 86

:::::: The code at line 77 was first introduced by commit
:::::: 2c42cdbaec56a9565a2717b450506150c9c55103 [media] V4L2: platform: Add Renesas R-Car JPEG codec driver

:::::: TO: Mikhail Ulyanov <mikhail.ulyanov@xxxxxxxxxxxxxxxxxx>
:::::: CC: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip