* [chrome-os:chromeos-4.4 10/11] drivers/gpu/drm/evdi/evdi_drv.c:93:6: warning: no previous prototype for 'evdi_platform_device_link'
@ 2021-02-17 5:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-17 5:11 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5291 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 6d5e8cb22c2a82dde051b99b44498bbc350c7130
commit: b21837b752bb13dbd2c2da17377c23f2e3cea264 [10/11] CHROMIUM: drm/evdi: Create sysfs link from evdi to its parent device and unlink on detach
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.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
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.4
git checkout b21837b752bb13dbd2c2da17377c23f2e3cea264
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=xtensa
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 >>):
cc1: warning: include/drm: No such file or directory [-Wmissing-include-dirs]
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/agp_backend.h:33,
from include/drm/drmP.h:35,
from drivers/gpu/drm/evdi/evdi_drv.c:10:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:175:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
^
include/linux/compiler.h:182:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/scatterlist.h:140:2: note: in expansion of macro 'BUG_ON'
BUG_ON(!virt_addr_valid(buf));
^~~~~~
arch/xtensa/include/asm/page.h:183:32: note: in expansion of macro 'pfn_valid'
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
^~~~~~~~~
include/linux/scatterlist.h:140:10: note: in expansion of macro 'virt_addr_valid'
BUG_ON(!virt_addr_valid(buf));
^~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/evdi/evdi_drv.h:23:0,
from drivers/gpu/drm/evdi/evdi_drv.c:17:
include/linux/reservation.h: In function 'reservation_object_fini':
include/linux/reservation.h:122:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < fobj->shared_count; ++i)
^
drivers/gpu/drm/evdi/evdi_drv.c: At top level:
drivers/gpu/drm/evdi/evdi_drv.c:81:6: warning: no previous prototype for 'evdi_platform_device_is_free' [-Wmissing-prototypes]
bool evdi_platform_device_is_free(struct platform_device *pdev)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/evdi/evdi_drv.c:93:6: warning: no previous prototype for 'evdi_platform_device_link' [-Wmissing-prototypes]
void evdi_platform_device_link(struct platform_device *pdev,
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/evdi/evdi_drv.c: In function 'add_device_with_usb_path':
drivers/gpu/drm/evdi/evdi_drv.c:367:8: warning: variable 'itf_token' set but not used [-Wunused-but-set-variable]
char *itf_token = NULL;
^~~~~~~~~
drivers/gpu/drm/evdi/evdi_drv.c: In function 'evdi_init':
drivers/gpu/drm/evdi/evdi_drv.c:555:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(evdi_device_attributes); i++) {
^
drivers/gpu/drm/evdi/evdi_drv.c: In function 'evdi_exit':
drivers/gpu/drm/evdi/evdi_drv.c:574:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(evdi_device_attributes); i++) {
^
vim +/evdi_platform_device_link +93 drivers/gpu/drm/evdi/evdi_drv.c
92
> 93 void evdi_platform_device_link(struct platform_device *pdev,
94 struct device *parent)
95 {
96 struct evdi_platform_device_data *data = NULL;
97 int ret = 0;
98
99 if (!parent || !pdev)
100 return;
101
102 data = (struct evdi_platform_device_data *)platform_get_drvdata(pdev);
103 if (!evdi_platform_device_is_free(pdev)) {
104 EVDI_FATAL("Device is already attached can't symlink again\n");
105 return;
106 }
107
108 ret = sysfs_create_link(&pdev->dev.kobj, &parent->kobj, "device");
109 if (ret) {
110 EVDI_FATAL("Failed to create sysfs link to parent device\n");
111 } else {
112 data->symlinked = true;
113 data->parent = parent;
114 }
115 }
116
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 44554 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-17 5:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 5:11 [chrome-os:chromeos-4.4 10/11] drivers/gpu/drm/evdi/evdi_drv.c:93:6: warning: no previous prototype for 'evdi_platform_device_link' kernel test robot
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.