LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support
[not found] <CGME20190521105217eucas1p19796d2969c1a568fecb0750818226241@eucas1p1.samsung.com>
@ 2019-05-21 10:52 ` Bartlomiej Zolnierkiewicz
2019-05-21 16:34 ` Alexandre Belloni
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2019-05-21 10:52 UTC (permalink / raw)
To: Nicolas Ferre
Cc: Alexandre Belloni, Ludovic Desroches, linux-fbdev, dri-devel,
linux-arm-kernel, linux-kernel
Add COMPILE_TEST support to atmel_lcdfb driver for better compile
testing coverage.
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
---
v2: add missing HAVE_CLK && HAS IOMEM dependencies
drivers/video/fbdev/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: b/drivers/video/fbdev/Kconfig
===================================================================
--- a/drivers/video/fbdev/Kconfig
+++ b/drivers/video/fbdev/Kconfig
@@ -856,7 +856,8 @@ config FB_S1D13XXX
config FB_ATMEL
tristate "AT91 LCD Controller support"
- depends on FB && OF && HAVE_FB_ATMEL
+ depends on FB && OF && HAVE_CLK && HAS_IOMEM
+ depends on HAVE_FB_ATMEL || COMPILE_TEST
select FB_BACKLIGHT
select FB_CFB_FILLRECT
select FB_CFB_COPYAREA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support
2019-05-21 10:52 ` [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support Bartlomiej Zolnierkiewicz
@ 2019-05-21 16:34 ` Alexandre Belloni
2019-05-24 13:27 ` kbuild test robot
2019-05-24 13:59 ` kbuild test robot
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2019-05-21 16:34 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Nicolas Ferre, Ludovic Desroches, linux-fbdev, dri-devel,
linux-arm-kernel, linux-kernel
On 21/05/2019 12:52:17+0200, Bartlomiej Zolnierkiewicz wrote:
> Add COMPILE_TEST support to atmel_lcdfb driver for better compile
> testing coverage.
>
> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> v2: add missing HAVE_CLK && HAS IOMEM dependencies
>
> drivers/video/fbdev/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> Index: b/drivers/video/fbdev/Kconfig
> ===================================================================
> --- a/drivers/video/fbdev/Kconfig
> +++ b/drivers/video/fbdev/Kconfig
> @@ -856,7 +856,8 @@ config FB_S1D13XXX
>
> config FB_ATMEL
> tristate "AT91 LCD Controller support"
> - depends on FB && OF && HAVE_FB_ATMEL
> + depends on FB && OF && HAVE_CLK && HAS_IOMEM
> + depends on HAVE_FB_ATMEL || COMPILE_TEST
> select FB_BACKLIGHT
> select FB_CFB_FILLRECT
> select FB_CFB_COPYAREA
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support
2019-05-21 10:52 ` [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support Bartlomiej Zolnierkiewicz
2019-05-21 16:34 ` Alexandre Belloni
@ 2019-05-24 13:27 ` kbuild test robot
2019-05-24 13:59 ` kbuild test robot
2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-05-24 13:27 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: kbuild-all, Nicolas Ferre, Alexandre Belloni, linux-kernel,
dri-devel, Ludovic Desroches, linux-fbdev, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 2663 bytes --]
Hi Bartlomiej,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.2-rc1 next-20190524]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Bartlomiej-Zolnierkiewicz/video-fbdev-atmel_lcdfb-add-COMPILE_TEST-support/20190524-184331
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/video//fbdev/atmel_lcdfb.c: In function 'atmel_lcdfb_set_par':
>> drivers/video//fbdev/atmel_lcdfb.c:71:51: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define lcdc_writel(sinfo, reg, val) __raw_writel((val), (sinfo)->mmio+(reg))
^
>> drivers/video//fbdev/atmel_lcdfb.c:676:2: note: in expansion of macro 'lcdc_writel'
lcdc_writel(sinfo, ATMEL_LCDC_IDR, ~0UL);
^~~~~~~~~~~
drivers/video//fbdev/atmel_lcdfb.c: In function 'atmel_lcdfb_suspend':
>> drivers/video//fbdev/atmel_lcdfb.c:71:51: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define lcdc_writel(sinfo, reg, val) __raw_writel((val), (sinfo)->mmio+(reg))
^
drivers/video//fbdev/atmel_lcdfb.c:1294:2: note: in expansion of macro 'lcdc_writel'
lcdc_writel(sinfo, ATMEL_LCDC_IDR, ~0UL);
^~~~~~~~~~~
vim +71 drivers/video//fbdev/atmel_lcdfb.c
b985172b drivers/video/atmel_lcdfb.c Jean-Christophe PLAGNIOL-VILLARD 2013-03-29 69
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 70 #define lcdc_readl(sinfo, reg) __raw_readl((sinfo)->mmio+(reg))
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 @71 #define lcdc_writel(sinfo, reg, val) __raw_writel((val), (sinfo)->mmio+(reg))
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 72
:::::: The code at line 71 was first introduced by commit
:::::: 14340586148e7c88d7b1b752876f5b5227b200b9 atmel_lcdfb: AT91/AT32 LCD Controller framebuffer driver
:::::: TO: Nicolas Ferre <nicolas.ferre@rfo.atmel.com>
:::::: CC: Linus Torvalds <torvalds@woody.linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69513 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support
2019-05-21 10:52 ` [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support Bartlomiej Zolnierkiewicz
2019-05-21 16:34 ` Alexandre Belloni
2019-05-24 13:27 ` kbuild test robot
@ 2019-05-24 13:59 ` kbuild test robot
2 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2019-05-24 13:59 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: kbuild-all, Nicolas Ferre, Alexandre Belloni, linux-kernel,
dri-devel, Ludovic Desroches, linux-fbdev, linux-arm-kernel
Hi Bartlomiej,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.2-rc1 next-20190524]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Bartlomiej-Zolnierkiewicz/video-fbdev-atmel_lcdfb-add-COMPILE_TEST-support/20190524-184331
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-rc1-7-g2b96cd8-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/video/fbdev/atmel_lcdfb.c:354:27: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected char [noderef] <asn:2> *screen_base @@ got n:2> *screen_base @@
>> drivers/video/fbdev/atmel_lcdfb.c:354:27: sparse: expected char [noderef] <asn:2> *screen_base
>> drivers/video/fbdev/atmel_lcdfb.c:354:27: sparse: got void *
>> drivers/video/fbdev/atmel_lcdfb.c:362:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *s @@ got char [noderef] <asvoid *s @@
>> drivers/video/fbdev/atmel_lcdfb.c:362:9: sparse: expected void *s
>> drivers/video/fbdev/atmel_lcdfb.c:362:9: sparse: got char [noderef] <asn:2> *screen_base
>> drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got char [noderef] <asvoid *cpu_addr @@
>> drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: expected void *cpu_addr
drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: got char [noderef] <asn:2> *screen_base
>> drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: sparse: incorrect type in argument 3 (different address spaces) @@ expected void *cpu_addr @@ got char [noderef] <asvoid *cpu_addr @@
>> drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: expected void *cpu_addr
drivers/video/fbdev/atmel_lcdfb.c:333:59: sparse: got char [noderef] <asn:2> *screen_base
vim +354 drivers/video/fbdev/atmel_lcdfb.c
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 328
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 329 static inline void atmel_lcdfb_free_video_memory(struct atmel_lcdfb_info *sinfo)
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 330 {
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 331 struct fb_info *info = sinfo->info;
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 332
f6e45661 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 @333 dma_free_wc(info->device, info->fix.smem_len, info->screen_base,
f6e45661 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 334 info->fix.smem_start);
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 335 }
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 336
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 337 /**
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 338 * atmel_lcdfb_alloc_video_memory - Allocate framebuffer memory
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 339 * @sinfo: the frame buffer to allocate memory for
1d01e835 drivers/video/atmel_lcdfb.c Krzysztof Helt 2009-07-08 340 *
1d01e835 drivers/video/atmel_lcdfb.c Krzysztof Helt 2009-07-08 341 * This function is called only from the atmel_lcdfb_probe()
1d01e835 drivers/video/atmel_lcdfb.c Krzysztof Helt 2009-07-08 342 * so no locking by fb_info->mm_lock around smem_len setting is needed.
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 343 */
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 344 static int atmel_lcdfb_alloc_video_memory(struct atmel_lcdfb_info *sinfo)
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 345 {
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 346 struct fb_info *info = sinfo->info;
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 347 struct fb_var_screeninfo *var = &info->var;
ea757aca drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-08-12 348 unsigned int smem_len;
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 349
ea757aca drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-08-12 350 smem_len = (var->xres_virtual * var->yres_virtual
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 351 * ((var->bits_per_pixel + 7) / 8));
ea757aca drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-08-12 352 info->fix.smem_len = max(smem_len, sinfo->smem_len);
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 353
f6e45661 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 @354 info->screen_base = dma_alloc_wc(info->device, info->fix.smem_len,
f6e45661 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 355 (dma_addr_t *)&info->fix.smem_start,
f6e45661 drivers/video/fbdev/atmel_lcdfb.c Luis R. Rodriguez 2016-01-22 356 GFP_KERNEL);
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 357
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 358 if (!info->screen_base) {
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 359 return -ENOMEM;
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 360 }
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 361
01d3a5e7 drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-04-28 @362 memset(info->screen_base, 0, info->fix.smem_len);
01d3a5e7 drivers/video/atmel_lcdfb.c Haavard Skinnemoen 2008-04-28 363
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 364 return 0;
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 365 }
14340586 drivers/video/atmel_lcdfb.c Nicolas Ferre 2007-05-10 366
:::::: The code at line 354 was first introduced by commit
:::::: f6e45661f9be546811b62b2b01f32f4bf0c436c0 dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc()
:::::: TO: Luis R. Rodriguez <mcgrof@suse.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-05-24 14:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20190521105217eucas1p19796d2969c1a568fecb0750818226241@eucas1p1.samsung.com>
2019-05-21 10:52 ` [PATCH v2] video: fbdev: atmel_lcdfb: add COMPILE_TEST support Bartlomiej Zolnierkiewicz
2019-05-21 16:34 ` Alexandre Belloni
2019-05-24 13:27 ` kbuild test robot
2019-05-24 13:59 ` kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).