Message ID | 20250410145904.25550-3-ville.syrjala@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm: Increase COMPILE_TEST=y coverage | expand |
Hi Ville,
kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on linus/master v6.15-rc1 next-20250411]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Ville-Syrjala/drm-tilcdc-Allow-build-without-__iowmb/20250410-230042
base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next
patch link: https://lore.kernel.org/r/20250410145904.25550-3-ville.syrjala%40linux.intel.com
patch subject: [PATCH v3 2/6] drm/tilcdc: Allow build with COMPILE_TEST=y
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250411/202504111847.8IHqTDBH-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250411/202504111847.8IHqTDBH-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/202504111847.8IHqTDBH-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/tilcdc/tilcdc_crtc.c:24:
drivers/gpu/drm/tilcdc/tilcdc_regs.h: In function 'tilcdc_write64':
>> drivers/gpu/drm/tilcdc/tilcdc_regs.h:126:25: warning: passing argument 2 of 'iowrite64' discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
126 | iowrite64(data, addr);
| ^~~~
In file included from arch/alpha/include/asm/io.h:15,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:8,
from drivers/gpu/drm/tilcdc/tilcdc_crtc.c:8:
include/asm-generic/iomap.h:56:28: note: expected 'void *' but argument is of type 'volatile void *'
56 | extern void iowrite64(u64, void __iomem *);
| ^~~~~~~~~~~~~~
vim +126 drivers/gpu/drm/tilcdc/tilcdc_regs.h
16ea975eac671f Rob Clark 2013-01-08 119
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 120 static inline void tilcdc_write64(struct drm_device *dev, u32 reg, u64 data)
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 121 {
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 122 struct tilcdc_drm_private *priv = dev->dev_private;
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 123 volatile void __iomem *addr = priv->mmio + reg;
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 124
4e5ca2d930aa87 Logan Gunthorpe 2017-12-05 125 #if defined(iowrite64) && !defined(iowrite64_is_nonatomic)
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 @126 iowrite64(data, addr);
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 127 #else
752db4ea4759e8 Ville Syrjälä 2025-04-10 128 /* allow compilation without __iowmb() for COMPILE_TEST */
752db4ea4759e8 Ville Syrjälä 2025-04-10 129 #ifdef __iowmb
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 130 __iowmb();
752db4ea4759e8 Ville Syrjälä 2025-04-10 131 #endif
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 132 /* This compiles to strd (=64-bit write) on ARM7 */
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 133 *(volatile u64 __force *)addr = __cpu_to_le64(data);
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 134 #endif
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 135 }
7eb9f069ff5dd3 Jyri Sarha 2016-08-26 136
diff --git a/drivers/gpu/drm/tilcdc/Kconfig b/drivers/gpu/drm/tilcdc/Kconfig index 24f9a245ba59..c430914b1db7 100644 --- a/drivers/gpu/drm/tilcdc/Kconfig +++ b/drivers/gpu/drm/tilcdc/Kconfig @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config DRM_TILCDC tristate "DRM Support for TI LCDC Display Controller" - depends on DRM && OF && ARM + depends on DRM && OF && (ARM || COMPILE_TEST) select DRM_CLIENT_SELECTION select DRM_KMS_HELPER select DRM_GEM_DMA_HELPER