Re: [PATCH 3/5] v4l: Add generic pipeline power management code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sakari,

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on v4.5-rc1 next-20160127]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Sakari-Ailus/Unify-MC-graph-power-management-code/20160127-215417
base:   git://linuxtv.org/media_tree.git master
config: x86_64-randconfig-s1-01272247 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/linux/list.h:8:0,
                    from include/linux/module.h:9,
                    from drivers/media/v4l2-core/v4l2-common.c:47:
   drivers/media/v4l2-core/v4l2-common.c: In function 'pipeline_pm_power_one':
   include/linux/kernel.h:841:27: error: 'struct v4l2_subdev' has no member named 'entity'
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                              ^
   include/media/v4l2-subdev.h:740:2: note: in expansion of macro 'container_of'
     container_of(ent, struct v4l2_subdev, entity)
     ^
   drivers/media/v4l2-core/v4l2-common.c:468:11: note: in expansion of macro 'media_entity_to_v4l2_subdev'
            ? media_entity_to_v4l2_subdev(entity) : NULL;
              ^
   include/linux/kernel.h:841:48: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
     const typeof( ((type *)0)->member ) *__mptr = (ptr); \
                                                   ^
   include/media/v4l2-subdev.h:740:2: note: in expansion of macro 'container_of'
     container_of(ent, struct v4l2_subdev, entity)
     ^
   drivers/media/v4l2-core/v4l2-common.c:468:11: note: in expansion of macro 'media_entity_to_v4l2_subdev'
            ? media_entity_to_v4l2_subdev(entity) : NULL;
              ^
   In file included from include/linux/compiler.h:56:0,
                    from include/uapi/linux/stddef.h:1,
                    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/module.h:9,
                    from drivers/media/v4l2-core/v4l2-common.c:47:
   include/linux/compiler-gcc.h:158:2: error: 'struct v4l2_subdev' has no member named 'entity'
     __builtin_offsetof(a, b)
     ^
   include/linux/stddef.h:16:32: note: in expansion of macro '__compiler_offsetof'
    #define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
                                   ^
   include/linux/kernel.h:842:29: note: in expansion of macro 'offsetof'
     (type *)( (char *)__mptr - offsetof(type,member) );})
                                ^
   include/media/v4l2-subdev.h:740:2: note: in expansion of macro 'container_of'
     container_of(ent, struct v4l2_subdev, entity)
     ^
   drivers/media/v4l2-core/v4l2-common.c:468:11: note: in expansion of macro 'media_entity_to_v4l2_subdev'
            ? media_entity_to_v4l2_subdev(entity) : NULL;
              ^
   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/module.h:9,
                    from drivers/media/v4l2-core/v4l2-common.c:47:
   drivers/media/v4l2-core/v4l2-common.c: In function 'v4l2_pipeline_link_notify':
   drivers/media/v4l2-core/v4l2-common.c:559:22: error: 'MEDIA_DEV_NOTIFY_POST_LINK_CH' undeclared (first use in this function)
     if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
                         ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> drivers/media/v4l2-core/v4l2-common.c:559:2: note: in expansion of macro 'if'
     if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
     ^
   drivers/media/v4l2-core/v4l2-common.c:559:22: note: each undeclared identifier is reported only once for each function it appears in
     if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
                         ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> drivers/media/v4l2-core/v4l2-common.c:559:2: note: in expansion of macro 'if'
     if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
     ^
   drivers/media/v4l2-core/v4l2-common.c:567:22: error: 'MEDIA_DEV_NOTIFY_PRE_LINK_CH' undeclared (first use in this function)
     if (notification == MEDIA_DEV_NOTIFY_PRE_LINK_CH &&
                         ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
   drivers/media/v4l2-core/v4l2-common.c:567:2: note: in expansion of macro 'if'
     if (notification == MEDIA_DEV_NOTIFY_PRE_LINK_CH &&
     ^

vim +/if +559 drivers/media/v4l2-core/v4l2-common.c

   543	}
   544	EXPORT_SYMBOL_GPL(v4l2_pipeline_pm_use);
   545	
   546	int v4l2_pipeline_link_notify(struct media_link *link, u32 flags,
   547				      unsigned int notification)
   548	{
   549		struct media_entity_graph *graph = &link->graph_obj.mdev->pm_count_walk;
   550		struct media_entity *source = link->source->entity;
   551		struct media_entity *sink = link->sink->entity;
   552		int source_use;
   553		int sink_use;
   554		int ret = 0;
   555	
   556		source_use = pipeline_pm_use_count(source, graph);
   557		sink_use = pipeline_pm_use_count(sink, graph);
   558	
 > 559		if (notification == MEDIA_DEV_NOTIFY_POST_LINK_CH &&
   560		    !(flags & MEDIA_LNK_FL_ENABLED)) {
   561			/* Powering off entities is assumed to never fail. */
   562			pipeline_pm_power(source, -sink_use, graph);
   563			pipeline_pm_power(sink, -source_use, graph);
   564			return 0;
   565		}
   566	
   567		if (notification == MEDIA_DEV_NOTIFY_PRE_LINK_CH &&

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux