All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [jimc:v4 9/10] drivers/gpu/drm/gud/gud_drv.c:98:2: error: implicit declaration of function '_dynamic_func_call_no_desc'
Date: Tue, 21 Dec 2021 04:36:27 +0800	[thread overview]
Message-ID: <202112210423.S0M3cbfH-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 9711 bytes --]

tree:   https://github.com/jimc/linux.git v4
head:   cba6e0513279b3f4928f8d2b70c90ff5d3b8d7a1
commit: 40db41a837c5f296c51282d579e4e91642f77646 [9/10] drm_print: add dynamic_debug wrapper
config: hexagon-randconfig-r021-20211220 (https://download.01.org/0day-ci/archive/20211221/202112210423.S0M3cbfH-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 555eacf75f21cd1dfc6363d73ad187b730349543)
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/jimc/linux/commit/40db41a837c5f296c51282d579e4e91642f77646
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc v4
        git checkout 40db41a837c5f296c51282d579e4e91642f77646
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/gpu/drm/gud/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/gud/gud_drv.c:98:2: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
           DRM_DEV_DEBUG_DRIVER(&intf->dev,
           ^
   include/drm/drm_print.h:409:2: note: expanded from macro 'DRM_DEV_DEBUG_DRIVER'
           drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   drivers/gpu/drm/gud/gud_drv.c:157:2: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
           drm_dbg(&gdrm->drm, "%s: request=0x%x index=%u len=%zu\n",
           ^
   include/drm/drm_print.h:465:2: note: expanded from macro 'drm_dbg'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   drivers/gpu/drm/gud/gud_drv.c:295:4: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
                           drm_dbg(&gdrm->drm, "Ignoring unknown property: %u\n", prop);
                           ^
   include/drm/drm_print.h:465:2: note: expanded from macro 'drm_dbg'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   drivers/gpu/drm/gud/gud_drv.c:455:3: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEV_DEBUG_DRIVER(dev, "Not a display interface: ret=%d\n", ret);
                   ^
   include/drm/drm_print.h:409:2: note: expanded from macro 'DRM_DEV_DEBUG_DRIVER'
           drm_dev_dbg(dev, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   drivers/gpu/drm/gud/gud_drv.c:512:4: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
                           drm_dbg(drm, "Unsupported format: 0x%02x\n", formats_dev[i]);
                           ^
   include/drm/drm_print.h:465:2: note: expanded from macro 'drm_dbg'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   drivers/gpu/drm/gud/gud_drv.c:642:2: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
           drm_dbg(drm, "%s:\n", __func__);
           ^
   include/drm/drm_print.h:465:2: note: expanded from macro 'drm_dbg'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   6 errors generated.
--
>> drivers/gpu/drm/gud/gud_pipe.c:286:2: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
           drm_dbg(&gdrm->drm, "Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect));
           ^
   include/drm/drm_print.h:465:2: note: expanded from macro 'drm_dbg'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   1 error generated.
--
>> drivers/gpu/drm/gud/gud_connector.c:510:3: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
                   drm_dbg(drm, "property: %u = %llu(0x%llx)\n", prop, val, val);
                   ^
   include/drm/drm_print.h:465:2: note: expanded from macro 'drm_dbg'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   drivers/gpu/drm/gud/gud_connector.c:628:2: error: implicit declaration of function '_dynamic_func_call_no_desc' [-Werror,-Wimplicit-function-declaration]
           drm_dbg(drm, "Connector: index=%u type=%u flags=0x%x\n", index, desc->connector_type, flags);
           ^
   include/drm/drm_print.h:465:2: note: expanded from macro 'drm_dbg'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:387:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc(fmt, __drm_dev_dbg,                  \
           ^
   2 errors generated.


vim +/_dynamic_func_call_no_desc +98 drivers/gpu/drm/gud/gud_drv.c

40e1a70b4aedf2 Noralf Trønnes 2021-03-13   76  
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   77  static int gud_get_display_descriptor(struct usb_interface *intf,
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   78  				      struct gud_display_descriptor_req *desc)
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   79  {
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   80  	void *buf;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   81  	int ret;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   82  
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   83  	buf = kmalloc(sizeof(*desc), GFP_KERNEL);
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   84  	if (!buf)
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   85  		return -ENOMEM;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   86  
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   87  	ret = gud_usb_control_msg(intf, true, GUD_REQ_GET_DESCRIPTOR, 0, buf, sizeof(*desc));
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   88  	memcpy(desc, buf, sizeof(*desc));
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   89  	kfree(buf);
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   90  	if (ret < 0)
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   91  		return ret;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   92  	if (ret != sizeof(*desc))
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   93  		return -EIO;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   94  
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   95  	if (desc->magic != le32_to_cpu(GUD_DISPLAY_MAGIC))
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   96  		return -ENODATA;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   97  
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  @98  	DRM_DEV_DEBUG_DRIVER(&intf->dev,
40e1a70b4aedf2 Noralf Trønnes 2021-03-13   99  			     "version=%u flags=0x%x compression=0x%x max_buffer_size=%u\n",
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  100  			     desc->version, le32_to_cpu(desc->flags), desc->compression,
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  101  			     le32_to_cpu(desc->max_buffer_size));
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  102  
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  103  	if (!desc->version || !desc->max_width || !desc->max_height ||
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  104  	    le32_to_cpu(desc->min_width) > le32_to_cpu(desc->max_width) ||
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  105  	    le32_to_cpu(desc->min_height) > le32_to_cpu(desc->max_height))
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  106  		return -EINVAL;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  107  
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  108  	return 0;
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  109  }
40e1a70b4aedf2 Noralf Trønnes 2021-03-13  110  

:::::: The code at line 98 was first introduced by commit
:::::: 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 drm: Add GUD USB Display driver

:::::: TO: Noralf Trønnes <noralf@tronnes.org>
:::::: CC: Noralf Trønnes <noralf@tronnes.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

                 reply	other threads:[~2021-12-20 20:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112210423.S0M3cbfH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.