Hi allen,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.15-rc5 next-20211013]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/allen/drm-bridge-add-it6505-driv...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
348949d9a4440abdab3b1dc99a9bb660e8c7da7c
config: x86_64-randconfig-r013-20211014 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
6c76d0101193aa4eb891a6954ff047eda2f9cf71)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/b7059f22f5a66e301596957d9c6321d64...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
allen/drm-bridge-add-it6505-driver/20211014-113315
git checkout b7059f22f5a66e301596957d9c6321d64358d6f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 warnings (new ones prefixed by >>):
drivers/gpu/drm/bridge/ite-it6505.c:2919:15: error: implicit declaration of function
'drm_bridge_new_crtc_state' [-Werror,-Wimplicit-function-declaration]
crtc_state = drm_bridge_new_crtc_state(bridge, old_state);
^
drivers/gpu/drm/bridge/ite-it6505.c:2919:15: note: did you mean
'drm_atomic_get_new_crtc_state'?
include/drm/drm_atomic.h:553:1: note: 'drm_atomic_get_new_crtc_state' declared
here
drm_atomic_get_new_crtc_state(struct drm_atomic_state *state,
^
> drivers/gpu/drm/bridge/ite-it6505.c:2919:13: warning:
incompatible integer to pointer conversion assigning to 'const struct drm_crtc_state
*' from 'int' [-Wint-conversion]
crtc_state =
drm_bridge_new_crtc_state(bridge, old_state);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +2919 drivers/gpu/drm/bridge/ite-it6505.c
2901
2902 static void it6505_bridge_atomic_enable(struct drm_bridge *bridge,
2903 struct drm_bridge_state *old_state)
2904 {
2905 struct it6505 *it6505 = bridge_to_it6505(bridge);
2906 struct device *dev = &it6505->client->dev;
2907 struct drm_atomic_state *state = old_state->base.state;
2908 struct hdmi_avi_infoframe frame;
2909 const struct drm_crtc_state *crtc_state;
2910 const struct drm_display_mode *mode;
2911 struct drm_connector *connector;
2912 int ret;
2913
2914 DRM_DEV_DEBUG_DRIVER(dev, "start");
2915
2916 connector = drm_atomic_get_new_connector_for_encoder(state,
2917 bridge->encoder);
2918
2919 crtc_state = drm_bridge_new_crtc_state(bridge, old_state);
2920 mode = &crtc_state->mode;
2921 ret = drm_hdmi_avi_infoframe_from_display_mode(&frame,
2922 connector,
2923 mode);
2924 if (ret)
2925 dev_err(dev, "Failed to setup AVI infoframe: %d", ret);
2926
2927 it6505_update_video_parameter(it6505, mode);
2928
2929 ret = it6505_send_video_infoframe(it6505, &frame);
2930
2931 if (ret)
2932 dev_err(dev, "Failed to send AVI infoframe: %d", ret);
2933
2934 it6505_int_mask_enable(it6505);
2935 it6505_video_reset(it6505);
2936 }
2937
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org