* [PATCH] media: include/video/omapfb_dss.h: use IS_ENABLED()
[not found] <201805050150.CmagcMOg%fengguang.wu@intel.com>
@ 2018-05-04 20:49 ` Mauro Carvalho Chehab
2018-05-05 17:59 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2018-05-04 20:49 UTC (permalink / raw)
Cc: linux-fbdev, Bartlomiej Zolnierkiewicz, Randy Dunlap, dri-devel,
Mauro Carvalho Chehab, tomi.valkeinen, Mauro Carvalho Chehab,
linux-omap, Linux Media Mailing List
Just checking for ifdefs cause build issues as reported by
kernel test:
config: openrisc-allmodconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
All errors (new ones prefixed by >>):
drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_init_connections':
>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:8: error: implicit declaration of function 'omapdss_find_mgr_from_display' [-Werror=implicit-function-declaration]
mgr = omapdss_find_mgr_from_display(def_dssdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
mgr = omapdss_find_mgr_from_display(def_dssdev);
^
drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_find_default_display':
>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:13: error: implicit declaration of function 'omapdss_get_default_display_name' [-Werror=implicit-function-declaration]
def_name = omapdss_get_default_display_name();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
def_name = omapdss_get_default_display_name();
^
So, use IS_ENABLED() instead.
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: tomi.valkeinen@ti.com
Cc: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Fixes: 771f7be87ff9 ("media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP")
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
---
include/video/omapfb_dss.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/video/omapfb_dss.h b/include/video/omapfb_dss.h
index e9775144ff3b..12755d8d9b4f 100644
--- a/include/video/omapfb_dss.h
+++ b/include/video/omapfb_dss.h
@@ -778,7 +778,7 @@ struct omap_dss_driver {
typedef void (*omap_dispc_isr_t) (void *arg, u32 mask);
-#ifdef CONFIG_FB_OMAP2
+#if IS_ENABLED(CONFIG_FB_OMAP2)
enum omapdss_version omapdss_get_version(void);
bool omapdss_is_initialized(void);
--
2.17.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] media: include/video/omapfb_dss.h: use IS_ENABLED()
2018-05-04 20:49 ` [PATCH] media: include/video/omapfb_dss.h: use IS_ENABLED() Mauro Carvalho Chehab
@ 2018-05-05 17:59 ` Randy Dunlap
2018-05-05 21:14 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2018-05-05 17:59 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-fbdev, Bartlomiej Zolnierkiewicz, dri-devel,
Mauro Carvalho Chehab, tomi.valkeinen, linux-omap,
Linux Media Mailing List
On 05/04/2018 01:49 PM, Mauro Carvalho Chehab wrote:
> Just checking for ifdefs cause build issues as reported by
> kernel test:
>
> config: openrisc-allmodconfig (attached as .config)
> compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
>
> All errors (new ones prefixed by >>):
>
> drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_init_connections':
>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:8: error: implicit declaration of function 'omapdss_find_mgr_from_display' [-Werror=implicit-function-declaration]
> mgr = omapdss_find_mgr_from_display(def_dssdev);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
> mgr = omapdss_find_mgr_from_display(def_dssdev);
> ^
> drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_find_default_display':
>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:13: error: implicit declaration of function 'omapdss_get_default_display_name' [-Werror=implicit-function-declaration]
> def_name = omapdss_get_default_display_name();
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
> def_name = omapdss_get_default_display_name();
> ^
>
> So, use IS_ENABLED() instead.
Hi,
I would like to test this (the change doesn't make much sense to me),
but I cannot find the kernel config file nor the kernel test robot's
email of this report.
Please include an lkml.kernel.org/r/<message_id> reference to such emails
so that interested parties can join the party.
Does this patch apply only to your media tree? so hopefully I can see it in
linux-next on Monday.
Thanks.
> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> Cc: Randy Dunlap <rdunlap@infradead.org>
> Cc: tomi.valkeinen@ti.com
> Cc: linux-omap@vger.kernel.org
> Cc: linux-fbdev@vger.kernel.org
> Fixes: 771f7be87ff9 ("media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP")
> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
> ---
> include/video/omapfb_dss.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/video/omapfb_dss.h b/include/video/omapfb_dss.h
> index e9775144ff3b..12755d8d9b4f 100644
> --- a/include/video/omapfb_dss.h
> +++ b/include/video/omapfb_dss.h
> @@ -778,7 +778,7 @@ struct omap_dss_driver {
>
> typedef void (*omap_dispc_isr_t) (void *arg, u32 mask);
>
> -#ifdef CONFIG_FB_OMAP2
> +#if IS_ENABLED(CONFIG_FB_OMAP2)
>
> enum omapdss_version omapdss_get_version(void);
> bool omapdss_is_initialized(void);
>
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] media: include/video/omapfb_dss.h: use IS_ENABLED()
2018-05-05 17:59 ` Randy Dunlap
@ 2018-05-05 21:14 ` Mauro Carvalho Chehab
2018-05-08 22:56 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2018-05-05 21:14 UTC (permalink / raw)
To: Randy Dunlap
Cc: linux-fbdev, Bartlomiej Zolnierkiewicz, dri-devel,
Mauro Carvalho Chehab, tomi.valkeinen, linux-omap,
Linux Media Mailing List
[-- Attachment #1: Type: text/plain, Size: 3364 bytes --]
Em Sat, 5 May 2018 10:59:23 -0700
Randy Dunlap <rdunlap@infradead.org> escreveu:
> On 05/04/2018 01:49 PM, Mauro Carvalho Chehab wrote:
> > Just checking for ifdefs cause build issues as reported by
> > kernel test:
> >
> > config: openrisc-allmodconfig (attached as .config)
> > compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
> >
> > All errors (new ones prefixed by >>):
> >
> > drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_init_connections':
> >>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:8: error: implicit declaration of function 'omapdss_find_mgr_from_display' [-Werror=implicit-function-declaration]
> > mgr = omapdss_find_mgr_from_display(def_dssdev);
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
> > mgr = omapdss_find_mgr_from_display(def_dssdev);
> > ^
> > drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_find_default_display':
> >>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:13: error: implicit declaration of function 'omapdss_get_default_display_name' [-Werror=implicit-function-declaration]
> > def_name = omapdss_get_default_display_name();
> > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
> > def_name = omapdss_get_default_display_name();
> > ^
> >
> > So, use IS_ENABLED() instead.
>
> Hi,
>
> I would like to test this (the change doesn't make much sense to me),
> but I cannot find the kernel config file nor the kernel test robot's
> email of this report.
>
> Please include an lkml.kernel.org/r/<message_id> reference to such emails
> so that interested parties can join the party.
The message was not c/c to lkml. You can see the original here:
https://www.mail-archive.com/linux-media@vger.kernel.org/msg130809.html
>
> Does this patch apply only to your media tree? so hopefully I can see it in
> linux-next on Monday.
Yes, as it is over another two patches applied there.
If you want to test it earlier, it is in the top of the master branch:
https://git.linuxtv.org/media_tree.git
>
> Thanks.
>
> > Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> > Cc: Randy Dunlap <rdunlap@infradead.org>
> > Cc: tomi.valkeinen@ti.com
> > Cc: linux-omap@vger.kernel.org
> > Cc: linux-fbdev@vger.kernel.org
> > Fixes: 771f7be87ff9 ("media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP")
> > Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
> > ---
> > include/video/omapfb_dss.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/include/video/omapfb_dss.h b/include/video/omapfb_dss.h
> > index e9775144ff3b..12755d8d9b4f 100644
> > --- a/include/video/omapfb_dss.h
> > +++ b/include/video/omapfb_dss.h
> > @@ -778,7 +778,7 @@ struct omap_dss_driver {
> >
> > typedef void (*omap_dispc_isr_t) (void *arg, u32 mask);
> >
> > -#ifdef CONFIG_FB_OMAP2
> > +#if IS_ENABLED(CONFIG_FB_OMAP2)
> >
> > enum omapdss_version omapdss_get_version(void);
> > bool omapdss_is_initialized(void);
> >
>
>
Thanks,
Mauro
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 44890 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] media: include/video/omapfb_dss.h: use IS_ENABLED()
2018-05-05 21:14 ` Mauro Carvalho Chehab
@ 2018-05-08 22:56 ` Randy Dunlap
2018-05-09 5:53 ` Randy Dunlap
0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2018-05-08 22:56 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-fbdev, Bartlomiej Zolnierkiewicz, dri-devel,
Mauro Carvalho Chehab, tomi.valkeinen, linux-omap,
Linux Media Mailing List
On 05/05/2018 02:14 PM, Mauro Carvalho Chehab wrote:
> Em Sat, 5 May 2018 10:59:23 -0700
> Randy Dunlap <rdunlap@infradead.org> escreveu:
>
>> On 05/04/2018 01:49 PM, Mauro Carvalho Chehab wrote:
>>> Just checking for ifdefs cause build issues as reported by
>>> kernel test:
>>>
>>> config: openrisc-allmodconfig (attached as .config)
>>> compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
>>>
>>> All errors (new ones prefixed by >>):
>>>
>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_init_connections':
>>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:8: error: implicit declaration of function 'omapdss_find_mgr_from_display' [-Werror=implicit-function-declaration]
>>> mgr = omapdss_find_mgr_from_display(def_dssdev);
>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
>>> mgr = omapdss_find_mgr_from_display(def_dssdev);
>>> ^
>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_find_default_display':
>>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:13: error: implicit declaration of function 'omapdss_get_default_display_name' [-Werror=implicit-function-declaration]
>>> def_name = omapdss_get_default_display_name();
>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
>>> def_name = omapdss_get_default_display_name();
>>> ^
>>>
>>> So, use IS_ENABLED() instead.
>>
>> Hi,
>>
>> I would like to test this (the change doesn't make much sense to me),
>> but I cannot find the kernel config file nor the kernel test robot's
>> email of this report.
>>
>> Please include an lkml.kernel.org/r/<message_id> reference to such emails
>> so that interested parties can join the party.
>
> The message was not c/c to lkml. You can see the original here:
>
> https://www.mail-archive.com/linux-media@vger.kernel.org/msg130809.html
>
>
>>
>> Does this patch apply only to your media tree? so hopefully I can see it in
>> linux-next on Monday.
>
> Yes, as it is over another two patches applied there.
>
> If you want to test it earlier, it is in the top of the master branch:
> https://git.linuxtv.org/media_tree.git
>
>>
>> Thanks.
>>
>>> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
>>> Cc: Randy Dunlap <rdunlap@infradead.org>
>>> Cc: tomi.valkeinen@ti.com
>>> Cc: linux-omap@vger.kernel.org
>>> Cc: linux-fbdev@vger.kernel.org
>>> Fixes: 771f7be87ff9 ("media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP")
>>> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
>>> ---
>>> include/video/omapfb_dss.h | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/include/video/omapfb_dss.h b/include/video/omapfb_dss.h
>>> index e9775144ff3b..12755d8d9b4f 100644
>>> --- a/include/video/omapfb_dss.h
>>> +++ b/include/video/omapfb_dss.h
>>> @@ -778,7 +778,7 @@ struct omap_dss_driver {
>>>
>>> typedef void (*omap_dispc_isr_t) (void *arg, u32 mask);
>>>
>>> -#ifdef CONFIG_FB_OMAP2
>>> +#if IS_ENABLED(CONFIG_FB_OMAP2)
>>>
>>> enum omapdss_version omapdss_get_version(void);
>>> bool omapdss_is_initialized(void);
The patch doesn't make any sense to me. I would like to see an
explanation of why this is needed, other than "it fixes the build." ;)
But it does fix the build, so:
Tested-by: Randy Dunlap <rdunlap@infradead.org>
thanks,
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] media: include/video/omapfb_dss.h: use IS_ENABLED()
2018-05-08 22:56 ` Randy Dunlap
@ 2018-05-09 5:53 ` Randy Dunlap
0 siblings, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2018-05-09 5:53 UTC (permalink / raw)
To: Mauro Carvalho Chehab
Cc: linux-fbdev, Bartlomiej Zolnierkiewicz, dri-devel,
Mauro Carvalho Chehab, tomi.valkeinen, linux-omap,
Linux Media Mailing List
On 05/08/2018 03:56 PM, Randy Dunlap wrote:
> On 05/05/2018 02:14 PM, Mauro Carvalho Chehab wrote:
>> Em Sat, 5 May 2018 10:59:23 -0700
>> Randy Dunlap <rdunlap@infradead.org> escreveu:
>>
>>> On 05/04/2018 01:49 PM, Mauro Carvalho Chehab wrote:
>>>> Just checking for ifdefs cause build issues as reported by
>>>> kernel test:
>>>>
>>>> config: openrisc-allmodconfig (attached as .config)
>>>> compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
>>>>
>>>> All errors (new ones prefixed by >>):
>>>>
>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_init_connections':
>>>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:8: error: implicit declaration of function 'omapdss_find_mgr_from_display' [-Werror=implicit-function-declaration]
>>>> mgr = omapdss_find_mgr_from_display(def_dssdev);
>>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2396:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
>>>> mgr = omapdss_find_mgr_from_display(def_dssdev);
>>>> ^
>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c: In function 'omapfb_find_default_display':
>>>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:13: error: implicit declaration of function 'omapdss_get_default_display_name' [-Werror=implicit-function-declaration]
>>>> def_name = omapdss_get_default_display_name();
>>>> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>> drivers/video/fbdev/omap2/omapfb/omapfb-main.c:2430:11: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
>>>> def_name = omapdss_get_default_display_name();
>>>> ^
>>>>
>>>> So, use IS_ENABLED() instead.
>>>
>>> Hi,
>>>
>>> I would like to test this (the change doesn't make much sense to me),
>>> but I cannot find the kernel config file nor the kernel test robot's
>>> email of this report.
>>>
>>> Please include an lkml.kernel.org/r/<message_id> reference to such emails
>>> so that interested parties can join the party.
>>
>> The message was not c/c to lkml. You can see the original here:
>>
>> https://www.mail-archive.com/linux-media@vger.kernel.org/msg130809.html
>>
>>
>>>
>>> Does this patch apply only to your media tree? so hopefully I can see it in
>>> linux-next on Monday.
>>
>> Yes, as it is over another two patches applied there.
>>
>> If you want to test it earlier, it is in the top of the master branch:
>> https://git.linuxtv.org/media_tree.git
>>
>>>
>>> Thanks.
>>>
>>>> Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
>>>> Cc: Randy Dunlap <rdunlap@infradead.org>
>>>> Cc: tomi.valkeinen@ti.com
>>>> Cc: linux-omap@vger.kernel.org
>>>> Cc: linux-fbdev@vger.kernel.org
>>>> Fixes: 771f7be87ff9 ("media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP")
>>>> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
>>>> ---
>>>> include/video/omapfb_dss.h | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/include/video/omapfb_dss.h b/include/video/omapfb_dss.h
>>>> index e9775144ff3b..12755d8d9b4f 100644
>>>> --- a/include/video/omapfb_dss.h
>>>> +++ b/include/video/omapfb_dss.h
>>>> @@ -778,7 +778,7 @@ struct omap_dss_driver {
>>>>
>>>> typedef void (*omap_dispc_isr_t) (void *arg, u32 mask);
>>>>
>>>> -#ifdef CONFIG_FB_OMAP2
>>>> +#if IS_ENABLED(CONFIG_FB_OMAP2)
>>>>
>>>> enum omapdss_version omapdss_get_version(void);
>>>> bool omapdss_is_initialized(void);
>
> The patch doesn't make any sense to me. I would like to see an
> explanation of why this is needed, other than "it fixes the build." ;)
I get it now. Using
#if IS_ENABLED(CONFIG_FB_OMAP2)
is just the "modern" way of saying
#if defined(CONFIG_FB_OMAP2) || defined(CONFIG_FB_OMAP2_MODULE)
which also builds without errors.
> But it does fix the build, so:
> Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
--
~Randy
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-05-09 5:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201805050150.CmagcMOg%fengguang.wu@intel.com>
2018-05-04 20:49 ` [PATCH] media: include/video/omapfb_dss.h: use IS_ENABLED() Mauro Carvalho Chehab
2018-05-05 17:59 ` Randy Dunlap
2018-05-05 21:14 ` Mauro Carvalho Chehab
2018-05-08 22:56 ` Randy Dunlap
2018-05-09 5:53 ` Randy Dunlap
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).