lkml.org 
[lkml]   [2021]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[asahilinux:t6000/bringup-work 20/23] drivers/gpu/drm/drm_format_helper.c:408:6: warning: no previous prototype for 'drm_fb_xrgb8888_to_xrgb2101010_dstclip'
tree:   https://github.com/AsahiLinux/linux t6000/bringup-work
head: 62c107f5adde6d76632c6e2c1eff3efa25707099
commit: f32fd9413157a8c6e03acaca0504d4c3512d780e [20/23] drm/format-helper: Add drm_fb_xrgb8888_to_xrgb2101010_dstclip()
config: ia64-defconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.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://github.com/AsahiLinux/linux/commit/f32fd9413157a8c6e03acaca0504d4c3512d780e
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux t6000/bringup-work
git checkout f32fd9413157a8c6e03acaca0504d4c3512d780e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=ia64

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

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_format_helper.c:408:6: warning: no previous prototype for 'drm_fb_xrgb8888_to_xrgb2101010_dstclip' [-Wmissing-prototypes]
408 | void drm_fb_xrgb8888_to_xrgb2101010_dstclip(void __iomem *dst,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/printk.h:8,
from include/linux/numa.h:24,
from arch/ia64/include/asm/nodedata.h:14,
from arch/ia64/include/asm/processor.h:81,
from arch/ia64/include/asm/timex.h:15,
from include/linux/timex.h:65,
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/gpu/drm/drm_format_helper.c:11:
include/linux/export.h:67:43: error: redefinition of '__ksymtab_drm_fb_xrgb8888_to_rgb888_dstclip'
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~~~~~
include/linux/export.h:108:9: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:152:41: note: in expansion of macro '___EXPORT_SYMBOL'
152 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:163:41: note: in expansion of macro '_EXPORT_SYMBOL'
163 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
drivers/gpu/drm/drm_format_helper.c:433:1: note: in expansion of macro 'EXPORT_SYMBOL'
433 | EXPORT_SYMBOL(drm_fb_xrgb8888_to_rgb888_dstclip);
| ^~~~~~~~~~~~~
include/linux/export.h:67:43: note: previous definition of '__ksymtab_drm_fb_xrgb8888_to_rgb888_dstclip' with type 'const struct kernel_symbol'
67 | static const struct kernel_symbol __ksymtab_##sym \
| ^~~~~~~~~~
include/linux/export.h:108:9: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:152:41: note: in expansion of macro '___EXPORT_SYMBOL'
152 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:160:41: note: in expansion of macro '__EXPORT_SYMBOL'
160 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:163:41: note: in expansion of macro '_EXPORT_SYMBOL'
163 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^~~~~~~~~~~~~~
drivers/gpu/drm/drm_format_helper.c:379:1: note: in expansion of macro 'EXPORT_SYMBOL'
379 | EXPORT_SYMBOL(drm_fb_xrgb8888_to_rgb888_dstclip);
| ^~~~~~~~~~~~~


vim +/drm_fb_xrgb8888_to_xrgb2101010_dstclip +408 drivers/gpu/drm/drm_format_helper.c

392
393 /**
394 * drm_fb_xrgb8888_to_xrgb2101010_dstclip - Convert XRGB8888 to XRGB2101010 clip
395 * buffer
396 * @dst: XRGB2101010 destination buffer (iomem)
397 * @dst_pitch: destination buffer pitch
398 * @vaddr: XRGB8888 source buffer
399 * @fb: DRM framebuffer
400 * @clip: Clip rectangle area to copy
401 *
402 * Drivers can use this function for XRGB2101010 devices that don't natively
403 * support XRGB8888.
404 *
405 * This function applies clipping on dst, i.e. the destination is a
406 * full (iomem) framebuffer but only the clip rect content is copied over.
407 */
> 408 void drm_fb_xrgb8888_to_xrgb2101010_dstclip(void __iomem *dst,
409 unsigned int dst_pitch, void *vaddr,
410 struct drm_framebuffer *fb,
411 struct drm_rect *clip)
412 {
413 size_t linepixels = clip->x2 - clip->x1;
414 size_t dst_len = linepixels * 4;
415 unsigned y, lines = clip->y2 - clip->y1;
416 void *dbuf;
417
418 dbuf = kmalloc(dst_len, GFP_KERNEL);
419 if (!dbuf)
420 return;
421
422 vaddr += clip_offset(clip, fb->pitches[0], sizeof(u32));
423 dst += clip_offset(clip, dst_pitch, sizeof(u16));
424 for (y = 0; y < lines; y++) {
425 drm_fb_xrgb8888_to_xrgb2101010_line(dbuf, vaddr, linepixels);
426 memcpy_toio(dst, dbuf, dst_len);
427 vaddr += fb->pitches[0];
428 dst += dst_len;
429 }
430
431 kfree(dbuf);
432 }
433 EXPORT_SYMBOL(drm_fb_xrgb8888_to_rgb888_dstclip);
434

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-11 14:54    [W:0.260 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site