[PATCH v2 3/3] drm/tinydrm: Add devres versions of drm_of_find_backlight
kbuild test robot
lkp at intel.com
Fri Sep 29 22:46:49 UTC 2017
Hi Meghana,
[auto build test ERROR on drm/drm-next]
[also build test ERROR on v4.14-rc2 next-20170929]
[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/Meghana-Madhyastha/drm-tinydrm-Move-tinydrm_of_find_backlight-into-drm_of-c/20170930-055009
base: git://people.freedesktop.org/~airlied/linux.git drm-next
config: i386-randconfig-x071-201739 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
In file included from drivers/gpu//drm/drm_of.c:11:0:
include/drm/drm_of.h: In function 'devm_drm_of_find_backlight':
>> include/drm/drm_of.h:73:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'static'
static inline int drm_of_encoder_active_endpoint_id(struct device_node *node,
^~~~~~
>> include/drm/drm_of.h:85:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
>> drivers/gpu//drm/drm_of.c:14:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:28:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:55:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
>> drivers/gpu//drm/drm_of.c:73:42: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(drm_of_find_possible_crtcs);
^
drivers/gpu//drm/drm_of.c:86:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:91:46: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL_GPL(drm_of_component_match_add);
^
drivers/gpu//drm/drm_of.c:109:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:179:38: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(drm_of_component_probe);
^
drivers/gpu//drm/drm_of.c:192:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:213:50: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL_GPL(drm_of_encoder_active_endpoint);
^
drivers/gpu//drm/drm_of.c:231:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:263:47: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL_GPL(drm_of_find_panel_or_bridge);
^
drivers/gpu//drm/drm_of.c:284:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:306:37: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(drm_of_find_backlight);
^
drivers/gpu//drm/drm_of.c:324:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu//drm/drm_of.c:341:42: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(devm_drm_of_find_backlight);
^
drivers/gpu//drm/drm_of.c:350:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
>> drivers/gpu//drm/drm_of.c:353:1: error: expected '{' at end of input
EXPORT_SYMBOL(devm_drm_of_find_backlight_release)
^~~~~~~~~~~~~
>> drivers/gpu//drm/drm_of.c:353:1: warning: control reaches end of non-void function [-Wreturn-type]
EXPORT_SYMBOL(devm_drm_of_find_backlight_release)
^~~~~~~~~~~~~
--
In file included from drivers/gpu//drm/bridge/tc358767.c:38:0:
include/drm/drm_of.h: In function 'devm_drm_of_find_backlight':
>> include/drm/drm_of.h:73:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'static'
static inline int drm_of_encoder_active_endpoint_id(struct device_node *node,
^~~~~~
>> include/drm/drm_of.h:85:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from drivers/gpu//drm/bridge/tc358767.c:39:0:
>> include/drm/drm_panel.h:30:1: warning: empty declaration
struct device_node;
^~~~~~
include/drm/drm_panel.h:31:1: warning: empty declaration
struct drm_connector;
^~~~~~
include/drm/drm_panel.h:32:1: warning: empty declaration
struct drm_device;
^~~~~~
include/drm/drm_panel.h:33:1: warning: empty declaration
struct drm_panel;
^~~~~~
include/drm/drm_panel.h:34:1: warning: empty declaration
struct display_timing;
^~~~~~
include/drm/drm_panel.h:70:1: warning: empty declaration
struct drm_panel_funcs {
^~~~~~
include/drm/drm_panel.h:88:1: warning: empty declaration
struct drm_panel {
^~~~~~
>> include/drm/drm_panel.h:110:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:128:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:146:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:164:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:182:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
>> drivers/gpu//drm/bridge/tc358767.c:176:13: error: storage class specified for parameter 'tc_test_pattern'
static bool tc_test_pattern;
^~~~~~~~~~~~~~~
In file included from include/linux/module.h:18:0,
from drivers/gpu//drm/bridge/tc358767.c:30:
include/linux/moduleparam.h:346:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
static inline type __always_unused *__check_##name(void) { return(p); }
^
include/linux/moduleparam.h:398:35: note: in expansion of macro '__param_check'
#define param_check_bool(name, p) __param_check(name, p, bool)
^~~~~~~~~~~~~
include/linux/moduleparam.h:148:2: note: in expansion of macro 'param_check_bool'
param_check_##type(name, &(value)); \
^~~~~~~~~~~~
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:148:36: error: expected declaration specifiers before ';' token
param_check_##type(name, &(value)); \
^
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:222:20: error: storage class specified for parameter '__param_str_test'
static const char __param_str_##name[] = prefix #name; \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:148:36: error: parameter '__param_str_test' is initialized
param_check_##type(name, &(value)); \
^
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:49: error: storage class specified for parameter '__param_test'
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:16: error: parameter '__param_test' is initialized
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:223:16: warning: '__used__' attribute ignored [-Wattributes]
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:49: error: section attribute not allowed for '__param_test'
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:49: error: alignment may not be specified for '__param_test'
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
>> drivers/gpu//drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:27:3: warning: empty declaration
struct __UNIQUE_ID(name) {}
^
include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
__MODULE_INFO(parmtype, name##type, #name ":" _type)
^~~~~~~~~~~~~
include/linux/moduleparam.h:150:2: note: in expansion of macro '__MODULE_PARM_TYPE'
__MODULE_PARM_TYPE(name, #type)
^~~~~~~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/drm_of.c:11:0:
include/drm/drm_of.h: In function 'devm_drm_of_find_backlight':
>> include/drm/drm_of.h:73:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'static'
static inline int drm_of_encoder_active_endpoint_id(struct device_node *node,
^~~~~~
>> include/drm/drm_of.h:85:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:14:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:28:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:55:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:73:42: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(drm_of_find_possible_crtcs);
^
drivers/gpu/drm/drm_of.c:86:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:91:46: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL_GPL(drm_of_component_match_add);
^
drivers/gpu/drm/drm_of.c:109:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:179:38: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(drm_of_component_probe);
^
drivers/gpu/drm/drm_of.c:192:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:213:50: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL_GPL(drm_of_encoder_active_endpoint);
^
drivers/gpu/drm/drm_of.c:231:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:263:47: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL_GPL(drm_of_find_panel_or_bridge);
^
drivers/gpu/drm/drm_of.c:284:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:306:37: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(drm_of_find_backlight);
^
drivers/gpu/drm/drm_of.c:324:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:341:42: error: expected declaration specifiers before ';' token
EXPORT_SYMBOL(devm_drm_of_find_backlight);
^
drivers/gpu/drm/drm_of.c:350:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/drm_of.c:353:1: error: expected '{' at end of input
EXPORT_SYMBOL(devm_drm_of_find_backlight_release)
^~~~~~~~~~~~~
drivers/gpu/drm/drm_of.c:353:1: warning: control reaches end of non-void function [-Wreturn-type]
EXPORT_SYMBOL(devm_drm_of_find_backlight_release)
^~~~~~~~~~~~~
--
In file included from drivers/gpu/drm/bridge/tc358767.c:38:0:
include/drm/drm_of.h: In function 'devm_drm_of_find_backlight':
>> include/drm/drm_of.h:73:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'static'
static inline int drm_of_encoder_active_endpoint_id(struct device_node *node,
^~~~~~
>> include/drm/drm_of.h:85:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
In file included from drivers/gpu/drm/bridge/tc358767.c:39:0:
>> include/drm/drm_panel.h:30:1: warning: empty declaration
struct device_node;
^~~~~~
include/drm/drm_panel.h:31:1: warning: empty declaration
struct drm_connector;
^~~~~~
include/drm/drm_panel.h:32:1: warning: empty declaration
struct drm_device;
^~~~~~
include/drm/drm_panel.h:33:1: warning: empty declaration
struct drm_panel;
^~~~~~
include/drm/drm_panel.h:34:1: warning: empty declaration
struct display_timing;
^~~~~~
include/drm/drm_panel.h:70:1: warning: empty declaration
struct drm_panel_funcs {
^~~~~~
include/drm/drm_panel.h:88:1: warning: empty declaration
struct drm_panel {
^~~~~~
>> include/drm/drm_panel.h:110:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:128:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:146:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:164:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
include/drm/drm_panel.h:182:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:176:13: error: storage class specified for parameter 'tc_test_pattern'
static bool tc_test_pattern;
^~~~~~~~~~~~~~~
In file included from include/linux/module.h:18:0,
from drivers/gpu/drm/bridge/tc358767.c:30:
include/linux/moduleparam.h:346:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
static inline type __always_unused *__check_##name(void) { return(p); }
^
include/linux/moduleparam.h:398:35: note: in expansion of macro '__param_check'
#define param_check_bool(name, p) __param_check(name, p, bool)
^~~~~~~~~~~~~
include/linux/moduleparam.h:148:2: note: in expansion of macro 'param_check_bool'
param_check_##type(name, &(value)); \
^~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:148:36: error: expected declaration specifiers before ';' token
param_check_##type(name, &(value)); \
^
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:222:20: error: storage class specified for parameter '__param_str_test'
static const char __param_str_##name[] = prefix #name; \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:148:36: error: parameter '__param_str_test' is initialized
param_check_##type(name, &(value)); \
^
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:49: error: storage class specified for parameter '__param_test'
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:16: error: parameter '__param_test' is initialized
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:223:16: warning: '__used__' attribute ignored [-Wattributes]
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:49: error: section attribute not allowed for '__param_test'
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
>> include/linux/moduleparam.h:223:49: error: alignment may not be specified for '__param_test'
static struct kernel_param __moduleparam_const __param_##name \
^
include/linux/moduleparam.h:169:2: note: in expansion of macro '__module_param_call'
__module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1, 0)
^~~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:149:2: note: in expansion of macro 'module_param_cb'
module_param_cb(name, ¶m_ops_##type, &value, perm); \
^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
include/linux/moduleparam.h:27:3: warning: empty declaration
struct __UNIQUE_ID(name) {}
^
include/linux/moduleparam.h:30:3: note: in expansion of macro '__MODULE_INFO'
__MODULE_INFO(parmtype, name##type, #name ":" _type)
^~~~~~~~~~~~~
include/linux/moduleparam.h:150:2: note: in expansion of macro '__MODULE_PARM_TYPE'
__MODULE_PARM_TYPE(name, #type)
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:177:1: note: in expansion of macro 'module_param_named'
module_param_named(test, tc_test_pattern, bool, 0644);
^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:179:1: warning: empty declaration
struct tc_edp_link {
^~~~~~
drivers/gpu/drm/bridge/tc358767.c:195:23: error: field 'connector' has incomplete type
struct drm_connector connector;
^~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:189:1: warning: empty declaration
struct tc_data {
^~~~~~
drivers/gpu/drm/bridge/tc358767.c:215:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:220:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:225:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:247:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:269:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:275:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:296:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
drivers/gpu/drm/bridge/tc358767.c:359:27: error: storage class specified for parameter 'training_pattern1_errors'
static const char * const training_pattern1_errors[] = {
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:359:1: error: parameter 'training_pattern1_errors' is initialized
static const char * const training_pattern1_errors[] = {
^~~~~~
drivers/gpu/drm/bridge/tc358767.c:360:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
"No errors",
^~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:360:2: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:361:2: warning: excess elements in scalar initializer
"Aux write error",
^~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:361:2: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:362:2: warning: excess elements in scalar initializer
"Aux read error",
^~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:362:2: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:363:2: warning: excess elements in scalar initializer
"Max voltage reached error",
^~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:363:2: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:364:2: warning: excess elements in scalar initializer
"Loop counter expired error",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:364:2: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:365:2: warning: excess elements in scalar initializer
"res", "res", "res"
^~~~~
drivers/gpu/drm/bridge/tc358767.c:365:2: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:365:9: warning: excess elements in scalar initializer
"res", "res", "res"
^~~~~
drivers/gpu/drm/bridge/tc358767.c:365:9: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:365:16: warning: excess elements in scalar initializer
"res", "res", "res"
^~~~~
drivers/gpu/drm/bridge/tc358767.c:365:16: note: (near initialization for 'training_pattern1_errors')
drivers/gpu/drm/bridge/tc358767.c:368:27: error: storage class specified for parameter 'training_pattern2_errors'
static const char * const training_pattern2_errors[] = {
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/tc358767.c:368:1: error: parameter 'training_pattern2_errors' is initialized
static const char * const training_pattern2_errors[] = {
^~~~~~
drivers/gpu/drm/bridge/tc358767.c:369:2: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
"No errors",
^~~~~~~~~~~
..
vim +73 include/drm/drm_of.h
7e435aad Russell King 2014-06-15 14
7e435aad Russell King 2014-06-15 15 #ifdef CONFIG_OF
91faa047 Daniel Vetter 2017-03-22 16 uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
7e435aad Russell King 2014-06-15 17 struct device_node *port);
91faa047 Daniel Vetter 2017-03-22 18 void drm_of_component_match_add(struct device *master,
97ac0e47 Russell King 2016-10-19 19 struct component_match **matchptr,
97ac0e47 Russell King 2016-10-19 20 int (*compare)(struct device *, void *),
97ac0e47 Russell King 2016-10-19 21 struct device_node *node);
91faa047 Daniel Vetter 2017-03-22 22 int drm_of_component_probe(struct device *dev,
df785aa8 Liviu Dudau 2015-10-20 23 int (*compare_of)(struct device *, void *),
df785aa8 Liviu Dudau 2015-10-20 24 const struct component_master_ops *m_ops);
91faa047 Daniel Vetter 2017-03-22 25 int drm_of_encoder_active_endpoint(struct device_node *node,
4cacf91f Philipp Zabel 2015-02-24 26 struct drm_encoder *encoder,
4cacf91f Philipp Zabel 2015-02-24 27 struct of_endpoint *endpoint);
1f2db303 Rob Herring 2017-03-22 28 int drm_of_find_panel_or_bridge(const struct device_node *np,
1f2db303 Rob Herring 2017-03-22 29 int port, int endpoint,
1f2db303 Rob Herring 2017-03-22 30 struct drm_panel **panel,
1f2db303 Rob Herring 2017-03-22 31 struct drm_bridge **bridge);
4fb60416 Meghana Madhyastha 2017-09-28 32 struct backlight_device *drm_of_find_backlight(struct device *dev);
5c09694e Meghana Madhyastha 2017-09-28 @33 struct backlight_device *devm_drm_of_find_backlight(struct device *dev)
5c09694e Meghana Madhyastha 2017-09-28 34 static void devm_drm_of_find_backlight_release(void *data)
7e435aad Russell King 2014-06-15 35 #else
7e435aad Russell King 2014-06-15 36 static inline uint32_t drm_of_find_possible_crtcs(struct drm_device *dev,
7e435aad Russell King 2014-06-15 37 struct device_node *port)
7e435aad Russell King 2014-06-15 38 {
7e435aad Russell King 2014-06-15 39 return 0;
7e435aad Russell King 2014-06-15 40 }
df785aa8 Liviu Dudau 2015-10-20 41
329f4c81 Arnd Bergmann 2016-10-26 42 static inline void
329f4c81 Arnd Bergmann 2016-10-26 43 drm_of_component_match_add(struct device *master,
97ac0e47 Russell King 2016-10-19 44 struct component_match **matchptr,
97ac0e47 Russell King 2016-10-19 45 int (*compare)(struct device *, void *),
97ac0e47 Russell King 2016-10-19 46 struct device_node *node)
97ac0e47 Russell King 2016-10-19 47 {
97ac0e47 Russell King 2016-10-19 48 }
97ac0e47 Russell King 2016-10-19 49
df785aa8 Liviu Dudau 2015-10-20 50 static inline int
df785aa8 Liviu Dudau 2015-10-20 51 drm_of_component_probe(struct device *dev,
df785aa8 Liviu Dudau 2015-10-20 52 int (*compare_of)(struct device *, void *),
df785aa8 Liviu Dudau 2015-10-20 53 const struct component_master_ops *m_ops)
df785aa8 Liviu Dudau 2015-10-20 54 {
df785aa8 Liviu Dudau 2015-10-20 55 return -EINVAL;
df785aa8 Liviu Dudau 2015-10-20 56 }
4cacf91f Philipp Zabel 2015-02-24 57
4cacf91f Philipp Zabel 2015-02-24 58 static inline int drm_of_encoder_active_endpoint(struct device_node *node,
4cacf91f Philipp Zabel 2015-02-24 59 struct drm_encoder *encoder,
4cacf91f Philipp Zabel 2015-02-24 60 struct of_endpoint *endpoint)
4cacf91f Philipp Zabel 2015-02-24 61 {
4cacf91f Philipp Zabel 2015-02-24 62 return -EINVAL;
4cacf91f Philipp Zabel 2015-02-24 63 }
1f2db303 Rob Herring 2017-03-22 64 static inline int drm_of_find_panel_or_bridge(const struct device_node *np,
1f2db303 Rob Herring 2017-03-22 65 int port, int endpoint,
1f2db303 Rob Herring 2017-03-22 66 struct drm_panel **panel,
1f2db303 Rob Herring 2017-03-22 67 struct drm_bridge **bridge)
1f2db303 Rob Herring 2017-03-22 68 {
1f2db303 Rob Herring 2017-03-22 69 return -EINVAL;
1f2db303 Rob Herring 2017-03-22 70 }
7e435aad Russell King 2014-06-15 71 #endif
7e435aad Russell King 2014-06-15 72
4cacf91f Philipp Zabel 2015-02-24 @73 static inline int drm_of_encoder_active_endpoint_id(struct device_node *node,
4cacf91f Philipp Zabel 2015-02-24 74 struct drm_encoder *encoder)
4cacf91f Philipp Zabel 2015-02-24 75 {
4cacf91f Philipp Zabel 2015-02-24 76 struct of_endpoint endpoint;
4cacf91f Philipp Zabel 2015-02-24 77 int ret = drm_of_encoder_active_endpoint(node, encoder,
4cacf91f Philipp Zabel 2015-02-24 78 &endpoint);
4cacf91f Philipp Zabel 2015-02-24 79
4cacf91f Philipp Zabel 2015-02-24 80 return ret ?: endpoint.id;
4cacf91f Philipp Zabel 2015-02-24 81 }
4cacf91f Philipp Zabel 2015-02-24 82
4cacf91f Philipp Zabel 2015-02-24 83 static inline int drm_of_encoder_active_port_id(struct device_node *node,
4cacf91f Philipp Zabel 2015-02-24 84 struct drm_encoder *encoder)
4cacf91f Philipp Zabel 2015-02-24 @85 {
4cacf91f Philipp Zabel 2015-02-24 86 struct of_endpoint endpoint;
4cacf91f Philipp Zabel 2015-02-24 87 int ret = drm_of_encoder_active_endpoint(node, encoder,
4cacf91f Philipp Zabel 2015-02-24 88 &endpoint);
4cacf91f Philipp Zabel 2015-02-24 89
4cacf91f Philipp Zabel 2015-02-24 90 return ret ?: endpoint.port;
4cacf91f Philipp Zabel 2015-02-24 91 }
4cacf91f Philipp Zabel 2015-02-24 92
:::::: The code at line 73 was first introduced by commit
:::::: 4cacf91fcb1d7118e93caf9cb6651d7f7b56e58d drm: add drm_of_encoder_active_endpoint helpers
:::::: TO: Philipp Zabel <p.zabel at pengutronix.de>
:::::: CC: Philipp Zabel <p.zabel at pengutronix.de>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 21495 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170930/71fba48a/attachment-0001.gz>
More information about the dri-devel
mailing list