From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [freescale-fslc:5.4-2.3.x-imx 10205/19343] drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:214:14: error: 'struct drm_bridge' has no member named 'of_node'
Date: Fri, 11 Jun 2021 13:43:07 +0800 [thread overview]
Message-ID: <202106111303.tseJ5zik-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6666 bytes --]
Hi Robert,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: ef8eb7d4787bee4be718a83b6c73fb8cc7e8f158
commit: c40c90f2d3265167edd6384dd8691dc88f78308d [10205/19343] LF-811-1: drm/bridge: Add driver for legacy Freescale Seiko 43WVFIG adapter
config: m68k-randconfig-r002-20210611 (attached as .config)
compiler: m68k-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://github.com/Freescale/linux-fslc/commit/c40c90f2d3265167edd6384dd8691dc88f78308d
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout c40c90f2d3265167edd6384dd8691dc88f78308d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/agp_backend.h:33,
from include/drm/drmP.h:35,
from drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:17:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from arch/m68k/include/asm/irqflags.h:6,
from include/linux/irqflags.h:16,
from arch/m68k/include/asm/atomic.h:6,
from include/linux/atomic.h:7,
from include/linux/mutex.h:18,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/cdev.h:5,
from include/drm/drmP.h:36,
from drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:17:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE'
139 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:355:19: note: in expansion of macro 'pfn_valid'
355 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c: In function 'seiko_adapter_probe':
>> drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:214:14: error: 'struct drm_bridge' has no member named 'of_node'
214 | adap->bridge.of_node = dev->of_node;
| ^
In file included from drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c:20:
At top level:
include/drm/drm_of.h:64:12: warning: 'drm_of_component_probe_with_match' defined but not used [-Wunused-function]
64 | static int drm_of_component_probe_with_match(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +214 drivers/gpu/drm/bridge/nxp-seiko-43wvfig.c
166
167 static int seiko_adapter_probe(struct platform_device *pdev)
168 {
169 struct device *dev = &pdev->dev;
170 struct seiko_adapter *adap;
171 struct device_node *remote;
172 u32 bus_mode;
173 int port;
174
175 adap = devm_kzalloc(dev, sizeof(*adap), GFP_KERNEL);
176 if (!adap)
177 return -ENOMEM;
178
179 of_property_read_u32(dev->of_node, "bus_mode", &bus_mode);
180 if (bus_mode != 18 && bus_mode != 24) {
181 dev_err(dev, "Invalid bus_mode: %d\n", bus_mode);
182 return -EINVAL;
183 }
184
185 switch (bus_mode) {
186 case 18:
187 adap->bpc = 6;
188 adap->bus_format = MEDIA_BUS_FMT_RGB666_1X18;
189 break;
190 case 24:
191 adap->bpc = 8;
192 adap->bus_format = MEDIA_BUS_FMT_RGB888_1X24;
193 break;
194 }
195
196 for (port = 0; port < 2; port++) {
197 remote = of_graph_get_remote_node(dev->of_node, port, -1);
198 if (!remote) {
199 dev_err(dev, "No remote for port %d\n", port);
200 return -ENODEV;
201 }
202 adap->panel = of_drm_find_panel(remote);
203 if (!IS_ERR(adap->panel))
204 break;
205 }
206 if (IS_ERR(adap->panel)) {
207 dev_err(dev, "No panel found: %ld\n", PTR_ERR(adap->panel));
208 return PTR_ERR(adap->panel);
209 }
210
211 adap->dev = dev;
212 adap->bridge.driver_private = adap;
213 adap->bridge.funcs = &seiko_adapter_bridge_funcs;
> 214 adap->bridge.of_node = dev->of_node;
215
216 drm_bridge_add(&adap->bridge);
217
218 return 0;
219 }
220
---
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: 24503 bytes --]
reply other threads:[~2021-06-11 5:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202106111303.tseJ5zik-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.