mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
72a6127e93
When compile-testing on mips/RB532 with W=1: arch/mips/include/asm/mach-rc32434/rb.h:13: note: this is the location of the previous definition 13 | #define RST (1 << 15) | drivers/media/platform/mediatek/jpeg/mtk_jpeg_dec_parse.c:15: warning: "RST" redefined 15 | #define RST 0xd0 | drivers/media/platform/renesas/rcar_jpu.c:77: warning: "RST" redefined 77 | #define RST 0xd0 | "RST" is indeed a name too short to be conflict-free. Fix this by creating a common <media/jpeg.h> header file, containing definitions for all JPEG markers used, prefixed by "JPEG_MARKER_", based on the existing private definitions in the Samsung S5P JPEG driver, and convert all affected drivers. Reported-by: kernel test robot <lkp@intel.com> Link: https://lore.kernel.org/oe-kbuild-all/202304152346.hJOPxPRh-lkp@intel.com/ Link: https://lore.kernel.org/oe-kbuild-all/202304150059.bHUyuriy-lkp@intel.com/ Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com> (s5p-jpeg) Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
21 lines
500 B
C
21 lines
500 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef _MEDIA_JPEG_H_
|
|
#define _MEDIA_JPEG_H_
|
|
|
|
/* JPEG markers */
|
|
#define JPEG_MARKER_TEM 0x01
|
|
#define JPEG_MARKER_SOF0 0xc0
|
|
#define JPEG_MARKER_DHT 0xc4
|
|
#define JPEG_MARKER_RST 0xd0
|
|
#define JPEG_MARKER_SOI 0xd8
|
|
#define JPEG_MARKER_EOI 0xd9
|
|
#define JPEG_MARKER_SOS 0xda
|
|
#define JPEG_MARKER_DQT 0xdb
|
|
#define JPEG_MARKER_DRI 0xdd
|
|
#define JPEG_MARKER_DHP 0xde
|
|
#define JPEG_MARKER_APP0 0xe0
|
|
#define JPEG_MARKER_COM 0xfe
|
|
|
|
#endif /* _MEDIA_JPEG_H_ */
|