Hi Lars-Peter,
FYI, the error/warning still remains.
tree:
https://android.googlesource.com/kernel/goldfish android-3.18
head: 57d6a2ad5af7193a282c02b8d225b376ccb48d49
commit: e4bd5cd531164c7ae9d63be855309ed0886c3f0e [220/423] adv7604: Initialize drive
strength to default when using DT
config: x86_64-randconfig-a016-20210213 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce (this is a W=1 build):
git remote add android-goldfish
https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout e4bd5cd531164c7ae9d63be855309ed0886c3f0e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/media/i2c/adv7604.c: In function 'adv7604_parse_dt':
> drivers/media/i2c/adv7604.c:2741:29: error:
'ADV76XX_DR_STR_MEDIUM_HIGH' undeclared (first use in this function)
state->pdata.dr_str_data = ADV76XX_DR_STR_MEDIUM_HIGH;
^
drivers/media/i2c/adv7604.c:2741:29: note: each undeclared identifier is reported only
once for each function it appears in
vim +/ADV76XX_DR_STR_MEDIUM_HIGH +2741 drivers/media/i2c/adv7604.c
2682
2683 static int adv7604_parse_dt(struct adv7604_state *state)
2684 {
2685 struct v4l2_of_endpoint bus_cfg;
2686 struct device_node *endpoint;
2687 struct device_node *np;
2688 unsigned int flags;
2689
2690 np = state->i2c_clients[ADV7604_PAGE_IO]->dev.of_node;
2691
2692 /* Parse the endpoint. */
2693 endpoint = of_graph_get_next_endpoint(np, NULL);
2694 if (!endpoint)
2695 return -EINVAL;
2696
2697 v4l2_of_parse_endpoint(endpoint, &bus_cfg);
2698 of_node_put(endpoint);
2699
2700 flags = bus_cfg.bus.parallel.flags;
2701
2702 if (flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH)
2703 state->pdata.inv_hs_pol = 1;
2704
2705 if (flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH)
2706 state->pdata.inv_vs_pol = 1;
2707
2708 if (flags & V4L2_MBUS_PCLK_SAMPLE_RISING)
2709 state->pdata.inv_llc_pol = 1;
2710
2711 if (bus_cfg.bus_type == V4L2_MBUS_BT656) {
2712 state->pdata.insert_av_codes = 1;
2713 state->pdata.op_656_range = 1;
2714 }
2715
2716 /* Disable the interrupt for now as no DT-based board uses it. */
2717 state->pdata.int1_config = ADV7604_INT1_CONFIG_DISABLED;
2718
2719 /* Use the default I2C addresses. */
2720 state->pdata.i2c_addresses[ADV7604_PAGE_AVLINK] = 0x42;
2721 state->pdata.i2c_addresses[ADV7604_PAGE_CEC] = 0x40;
2722 state->pdata.i2c_addresses[ADV7604_PAGE_INFOFRAME] = 0x3e;
2723 state->pdata.i2c_addresses[ADV7604_PAGE_ESDP] = 0x38;
2724 state->pdata.i2c_addresses[ADV7604_PAGE_DPP] = 0x3c;
2725 state->pdata.i2c_addresses[ADV7604_PAGE_AFE] = 0x26;
2726 state->pdata.i2c_addresses[ADV7604_PAGE_REP] = 0x32;
2727 state->pdata.i2c_addresses[ADV7604_PAGE_EDID] = 0x36;
2728 state->pdata.i2c_addresses[ADV7604_PAGE_HDMI] = 0x34;
2729 state->pdata.i2c_addresses[ADV7604_PAGE_TEST] = 0x30;
2730 state->pdata.i2c_addresses[ADV7604_PAGE_CP] = 0x22;
2731 state->pdata.i2c_addresses[ADV7604_PAGE_VDP] = 0x24;
2732
2733 /* Hardcode the remaining platform data fields. */
2734 state->pdata.disable_pwrdnb = 0;
2735 state->pdata.disable_cable_det_rst = 0;
2736 state->pdata.default_input = -1;
2737 state->pdata.blank_data = 1;
2738 state->pdata.alt_data_sat = 1;
2739 state->pdata.op_format_mode_sel = ADV7604_OP_FORMAT_MODE0;
2740 state->pdata.bus_order = ADV7604_BUS_ORDER_RGB;
2741 state->pdata.dr_str_data = ADV76XX_DR_STR_MEDIUM_HIGH;
2742 state->pdata.dr_str_clk = ADV76XX_DR_STR_MEDIUM_HIGH;
2743 state->pdata.dr_str_sync = ADV76XX_DR_STR_MEDIUM_HIGH;
2744
2745 return 0;
2746 }
2747
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org