All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:v5 15/15] drivers/gpu/drm/drm_auth.c:109:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls'
@ 2021-12-29 12:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-29 12:54 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/jimc/linux.git v5
head:   b0de9c0c9ce698511bb73989aa36bf2eab2dbdbe
commit: b0de9c0c9ce698511bb73989aa36bf2eab2dbdbe [15/15] drm_print: use _dynamic_func_call_no_desc_cls
config: x86_64-randconfig-a002-20211229 (https://download.01.org/0day-ci/archive/20211229/202112292020.ktMeDXpg-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b7ac0615afc6e0f1a30da2777e361de27a3)
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/b0de9c0c9ce698511bb73989aa36bf2eab2dbdbe
        git remote add jimc https://github.com/jimc/linux.git
        git fetch --no-tags jimc v5
        git checkout b0de9c0c9ce698511bb73989aa36bf2eab2dbdbe
        # 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=x86_64 SHELL=/bin/bash drivers/gpu/drm/

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/drm_auth.c:109:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG("%u\n", auth->magic);
           ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_auth.c:120:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG("%u\n", auth->magic);
           ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_auth.c:277:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG_LEASE("Attempt to set lessee %d as master\n", file_priv->master->lessee_id);
                   ^
   include/drm/drm_print.h:593:2: note: expanded from macro 'DRM_DEBUG_LEASE'
           __drm_dbg(DRM_UT_LEASE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_auth.c:318:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG_LEASE("Attempt to drop lessee %d as master\n", file_priv->master->lessee_id);
                   ^
   include/drm/drm_print.h:593:2: note: expanded from macro 'DRM_DEBUG_LEASE'
           __drm_dbg(DRM_UT_LEASE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   4 errors generated.
--
>> drivers/gpu/drm/drm_gem.c:714:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG("Failed to copy in GEM handles\n");
                   ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_gem.c:769:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG("Failed to look up GEM BO %d\n", handle);
                   ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   2 errors generated.
--
>> drivers/gpu/drm/drm_displayid.c:18:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n",
           ^
   include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS'
           __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   1 error generated.
--
>> drivers/gpu/drm/drm_rect.c:231:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG_KMS("%s" DRM_RECT_FP_FMT "\n", prefix, DRM_RECT_FP_ARG(r));
                   ^
   include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS'
           __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   1 error generated.
--
>> drivers/gpu/drm/drm_syncobj.c:300:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG("You are adding an unorder point to timeline!\n");
                   ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   1 error generated.
--
>> drivers/gpu/drm/drm_hdcp.c:28:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG("\t%#02x, %#02x, %#02x, %#02x, %#02x\n",
           ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_hdcp.c:67:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG("vrl: %d, Revoked KSVs: %d\n", vrl_idx++,
                   ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_hdcp.c:99:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG("SRM ID: 0x%x, SRM Ver: 0x%x, SRM Gen No: 0x%x\n",
           ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_hdcp.c:160:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG("SRM ID: 0x%x, SRM Ver: 0x%x, SRM Gen No: 0x%x\n",
           ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_hdcp.c:303:5: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                                   DRM_DEBUG("Revoked KSV is ");
                                   ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   5 errors generated.
--
>> drivers/gpu/drm/drm_managed.c:67:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           drm_dbg_drmres(dev, "drmres release begin\n");
           ^
   include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg,        \
           ^
   drivers/gpu/drm/drm_managed.c:112:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           drm_dbg_drmres(dev, "DEL %p %s (%lu bytes)\n",
           ^
   include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg,        \
           ^
   drivers/gpu/drm/drm_managed.c:124:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           drm_dbg_drmres(dev, "ADD %p %s (%lu bytes)\n",
           ^
   include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg,        \
           ^
   drivers/gpu/drm/drm_managed.c:147:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   drm_dbg_drmres(dev, "failed to add action %s for %p\n",
                   ^
   include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg,        \
           ^
   drivers/gpu/drm/drm_managed.c:194:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   drm_dbg_drmres(dev, "failed to allocate %zu bytes, %u flags\n",
                   ^
   include/drm/drm_print.h:512:2: note: expanded from macro 'drm_dbg_drmres'
           drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRMRES, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:417:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg,        \
           ^
   5 errors generated.
--
>> drivers/gpu/drm/drm_ioc32.c:989:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG("comm=\"%s\", pid=%d, dev=0x%lx, auth=%d, %s\n",
           ^
   include/drm/drm_print.h:569:2: note: expanded from macro 'DRM_DEBUG'
           __drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   1 error generated.
--
>> drivers/gpu/drm/drm_gem_cma_helper.c:135:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   drm_dbg(drm, "failed to allocate buffer with size %zu\n",
                   ^
   include/drm/drm_print.h:496: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:417:2: note: expanded from macro 'drm_dev_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, __drm_dev_dbg,        \
           ^
   drivers/gpu/drm/drm_gem_cma_helper.c:461:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG_PRIME("dma_addr = %pad, size = %zu\n", &cma_obj->paddr, attach->dmabuf->size);
           ^
   include/drm/drm_print.h:581:2: note: expanded from macro 'DRM_DEBUG_PRIME'
           __drm_dbg(DRM_UT_PRIME, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   2 errors generated.
--
>> drivers/gpu/drm/drm_gem_shmem_helper.c:167:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG_KMS("Failed to get pages (%ld)\n", PTR_ERR(pages));
                   ^
   include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS'
           __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_gem_shmem_helper.c:323:3: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
                   DRM_DEBUG_KMS("Failed to vmap pages, error %d\n", ret);
                   ^
   include/drm/drm_print.h:577:2: note: expanded from macro 'DRM_DEBUG_KMS'
           __drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   drivers/gpu/drm/drm_gem_shmem_helper.c:775:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' [-Werror,-Wimplicit-function-declaration]
           DRM_DEBUG_PRIME("size = %zu\n", size);
           ^
   include/drm/drm_print.h:581:2: note: expanded from macro 'DRM_DEBUG_PRIME'
           __drm_dbg(DRM_UT_PRIME, fmt, ##__VA_ARGS__)
           ^
   include/drm/drm_print.h:530:2: note: expanded from macro '__drm_dbg'
           _dynamic_func_call_no_desc_cls(fmt, eCat, ___drm_dbg,           \
           ^
   3 errors generated.


vim +/_dynamic_func_call_no_desc_cls +109 drivers/gpu/drm/drm_auth.c

1f7ef07cfa14fb drivers/gpu/drm/drm_auth.c  Desmond Cheong Zhi Xi 2021-07-12   93  
c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt           2007-09-03   94  int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv)
^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds        2005-04-16   95  {
c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt           2007-09-03   96  	struct drm_auth *auth = data;
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04   97  	int ret = 0;
^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds        2005-04-16   98  
d2b34ee62b409a drivers/gpu/drm/drm_auth.c  Daniel Vetter         2016-06-17   99  	mutex_lock(&dev->master_mutex);
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04  100  	if (!file_priv->magic) {
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04  101  		ret = idr_alloc(&file_priv->master->magic_map, file_priv,
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04  102  				1, 0, GFP_KERNEL);
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04  103  		if (ret >= 0)
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04  104  			file_priv->magic = ret;
^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds        2005-04-16  105  	}
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04  106  	auth->magic = file_priv->magic;
d2b34ee62b409a drivers/gpu/drm/drm_auth.c  Daniel Vetter         2016-06-17  107  	mutex_unlock(&dev->master_mutex);
^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds        2005-04-16  108  
c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt           2007-09-03 @109  	DRM_DEBUG("%u\n", auth->magic);
c153f45f9b7e30 drivers/char/drm/drm_auth.c Eric Anholt           2007-09-03  110  
32e7b94a3fa8e1 drivers/gpu/drm/drm_auth.c  David Herrmann        2015-05-04  111  	return ret < 0 ? ret : 0;
^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds        2005-04-16  112  }
^1da177e4c3f41 drivers/char/drm/drm_auth.c Linus Torvalds        2005-04-16  113  

:::::: The code@line 109 was first introduced by commit
:::::: c153f45f9b7e30289157bba3ff5682291df16caa drm: Replace DRM_IOCTL_ARGS with (dev, data, file_priv) and remove DRM_DEVICE.

:::::: TO: Eric Anholt <eric@anholt.net>
:::::: CC: Dave Airlie <airlied@optimus.(none)>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-29 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-29 12:54 [jimc:v5 15/15] drivers/gpu/drm/drm_auth.c:109:2: error: implicit declaration of function '_dynamic_func_call_no_desc_cls' kernel test robot

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.