All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:363:38: error: no member named 'encoder' in 'struct drm_writeback_connector'
Date: Sat, 08 Aug 2026 13:10:04 +0800	[thread overview]
Message-ID: <202608081250.LsbKHHc0-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/John-Harrison/drm-managed-implement-managed-versions-of-kzalloc_obj-objs/20260807-033852, commit: 8f32f6ce121579639f52d30cd5ec2dafee5c9189"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Dmitry Baryshkov <lumag@kernel.org>
CC: 0day robot <lkp@intel.com>
CC: Suraj Kandpal <suraj.kandpal@intel.com>
CC: Louis Chauvet <louis.chauvet@bootlin.com>

tree:   https://github.com/intel-lab-lkp/linux/commits/John-Harrison/drm-managed-implement-managed-versions-of-kzalloc_obj-objs/20260807-033852
head:   260c8b52af1b6d6dd5da419fcfc9a2b5bc3eed95
commit: 8f32f6ce121579639f52d30cd5ec2dafee5c9189 drm: writeback: drop excess connector initialization functions
date:   33 hours ago
:::::: branch date: 33 hours ago
:::::: commit date: 33 hours ago
config: arm64-randconfig-r064-20260807 (https://download.01.org/0day-ci/archive/20260808/202608081250.LsbKHHc0-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260808/202608081250.LsbKHHc0-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202608081250.LsbKHHc0-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:363:38: error: no member named 'encoder' in 'struct drm_writeback_connector'
     363 |         KUNIT_EXPECT_TRUE(test, wbcon->base.encoder.funcs != NULL);
         |                                 ~~~~~~~~~~~ ^
   include/kunit/test.h:994:30: note: expanded from macro 'KUNIT_EXPECT_TRUE'
     994 |         KUNIT_EXPECT_TRUE_MSG(test, condition, NULL)
         |                                     ^~~~~~~~~
   include/kunit/test.h:999:6: note: expanded from macro 'KUNIT_EXPECT_TRUE_MSG'
     999 |                                  condition,                                    \
         |                                  ^~~~~~~~~
   include/kunit/test.h:803:10: note: expanded from macro 'KUNIT_TRUE_MSG_ASSERTION'
     803 |                               condition,                                       \
         |                               ^~~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:32:34: note: expanded from macro '__branch_check__'
      32 |                         ______r = __builtin_expect(!!(x), expect);      \
         |                                                       ^
   include/linux/compiler.h:55:47: note: expanded from macro 'if'
      55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
         |                                               ^~~~
   include/linux/compiler.h:57:52: note: expanded from macro '__trace_if_var'
      57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
         |                                                    ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:363:38: error: no member named 'encoder' in 'struct drm_writeback_connector'
     363 |         KUNIT_EXPECT_TRUE(test, wbcon->base.encoder.funcs != NULL);
         |                                 ~~~~~~~~~~~ ^
   include/kunit/test.h:994:30: note: expanded from macro 'KUNIT_EXPECT_TRUE'
     994 |         KUNIT_EXPECT_TRUE_MSG(test, condition, NULL)
         |                                     ^~~~~~~~~
   include/kunit/test.h:999:6: note: expanded from macro 'KUNIT_EXPECT_TRUE_MSG'
     999 |                                  condition,                                    \
         |                                  ^~~~~~~~~
   include/kunit/test.h:803:10: note: expanded from macro 'KUNIT_TRUE_MSG_ASSERTION'
     803 |                               condition,                                       \
         |                               ^~~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:34:19: note: expanded from macro '__branch_check__'
      34 |                                              expect, is_constant);      \
         |                                                      ^~~~~~~~~~~
   include/linux/compiler.h:55:47: note: expanded from macro 'if'
      55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
         |                                               ^~~~
   include/linux/compiler.h:57:52: note: expanded from macro '__trace_if_var'
      57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
         |                                                    ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:363:38: error: no member named 'encoder' in 'struct drm_writeback_connector'
     363 |         KUNIT_EXPECT_TRUE(test, wbcon->base.encoder.funcs != NULL);
         |                                 ~~~~~~~~~~~ ^
   include/kunit/test.h:994:30: note: expanded from macro 'KUNIT_EXPECT_TRUE'
     994 |         KUNIT_EXPECT_TRUE_MSG(test, condition, NULL)
         |                                     ^~~~~~~~~
   include/kunit/test.h:999:6: note: expanded from macro 'KUNIT_EXPECT_TRUE_MSG'
     999 |                                  condition,                                    \
         |                                  ^~~~~~~~~
   include/kunit/test.h:803:10: note: expanded from macro 'KUNIT_TRUE_MSG_ASSERTION'
     803 |                               condition,                                       \
         |                               ^~~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:32:34: note: expanded from macro '__branch_check__'
      32 |                         ______r = __builtin_expect(!!(x), expect);      \
         |                                                       ^
   include/linux/compiler.h:55:47: note: expanded from macro 'if'
      55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
         |                                               ^~~~
   include/linux/compiler.h:57:61: note: expanded from macro '__trace_if_var'
      57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
         |                                                             ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:363:38: error: no member named 'encoder' in 'struct drm_writeback_connector'
     363 |         KUNIT_EXPECT_TRUE(test, wbcon->base.encoder.funcs != NULL);
         |                                 ~~~~~~~~~~~ ^
   include/kunit/test.h:994:30: note: expanded from macro 'KUNIT_EXPECT_TRUE'
     994 |         KUNIT_EXPECT_TRUE_MSG(test, condition, NULL)
         |                                     ^~~~~~~~~
   include/kunit/test.h:999:6: note: expanded from macro 'KUNIT_EXPECT_TRUE_MSG'
     999 |                                  condition,                                    \
         |                                  ^~~~~~~~~
   include/kunit/test.h:803:10: note: expanded from macro 'KUNIT_TRUE_MSG_ASSERTION'
     803 |                               condition,                                       \
         |                               ^~~~~~~~~
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:34:19: note: expanded from macro '__branch_check__'
      34 |                                              expect, is_constant);      \
         |                                                      ^~~~~~~~~~~
   include/linux/compiler.h:55:47: note: expanded from macro 'if'
      55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
         |                                               ^~~~
   include/linux/compiler.h:57:61: note: expanded from macro '__trace_if_var'
      57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
         |                                                             ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:363:38: error: no member named 'encoder' in 'struct drm_writeback_connector'
     363 |         KUNIT_EXPECT_TRUE(test, wbcon->base.encoder.funcs != NULL);
         |                                 ~~~~~~~~~~~ ^
   include/kunit/test.h:994:30: note: expanded from macro 'KUNIT_EXPECT_TRUE'
     994 |         KUNIT_EXPECT_TRUE_MSG(test, condition, NULL)
         |                                     ^~~~~~~~~
   include/kunit/test.h:999:6: note: expanded from macro 'KUNIT_EXPECT_TRUE_MSG'
     999 |                                  condition,                                    \
         |                                  ^~~~~~~~~
   include/kunit/test.h:803:10: note: expanded from macro 'KUNIT_TRUE_MSG_ASSERTION'
     803 |                               condition,                                       \
         |                               ^~~~~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:55:47: note: expanded from macro 'if'
      55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
         |                                               ^~~~
   include/linux/compiler.h:57:86: note: expanded from macro '__trace_if_var'
      57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
         |                                                                                      ^~~~
   include/linux/compiler.h:68:3: note: expanded from macro '__trace_if_value'
      68 |         (cond) ?                                        \
         |          ^~~~
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:363:38: error: no member named 'encoder' in 'struct drm_writeback_connector'
     363 |         KUNIT_EXPECT_TRUE(test, wbcon->base.encoder.funcs != NULL);
         |                                 ~~~~~~~~~~~ ^
   include/kunit/test.h:994:30: note: expanded from macro 'KUNIT_EXPECT_TRUE'
     994 |         KUNIT_EXPECT_TRUE_MSG(test, condition, NULL)
         |                                     ^~~~~~~~~
   include/kunit/test.h:999:6: note: expanded from macro 'KUNIT_EXPECT_TRUE_MSG'
     999 |                                  condition,                                    \
         |                                  ^~~~~~~~~
   include/kunit/test.h:803:10: note: expanded from macro 'KUNIT_TRUE_MSG_ASSERTION'
     803 |                               condition,                                       \
         |                               ^~~~~~~~~
   note: (skipping 3 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:55:47: note: expanded from macro 'if'
      55 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
         |                                               ^~~~
   include/linux/compiler.h:57:86: note: expanded from macro '__trace_if_var'
      57 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
         |                                                                                      ^~~~
   include/linux/compiler.h:68:3: note: expanded from macro '__trace_if_value'
      68 |         (cond) ?                                        \
         |          ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:364:36: error: no member named 'encoder' in 'struct drm_writeback_connector'
     364 |         KUNIT_EXPECT_EQ(test, wbcon->base.encoder.possible_crtcs, 0x1);
         |                               ~~~~~~~~~~~ ^
   include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
    1034 |         KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
         |                                   ^~~~
   include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
    1039 |                                    left, ==, right,                            \
         |                                    ^~~~
   include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
     874 |                                     left, op, right,                           \
         |                                     ^~~~
   include/kunit/test.h:840:15: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
     840 |         const typeof(left) __left = (left);                                    \
         |                      ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c:364:36: error: no member named 'encoder' in 'struct drm_writeback_connector'
     364 |         KUNIT_EXPECT_EQ(test, wbcon->base.encoder.possible_crtcs, 0x1);
         |                               ~~~~~~~~~~~ ^
   include/kunit/test.h:1034:28: note: expanded from macro 'KUNIT_EXPECT_EQ'
    1034 |         KUNIT_EXPECT_EQ_MSG(test, left, right, NULL)
         |                                   ^~~~
   include/kunit/test.h:1039:8: note: expanded from macro 'KUNIT_EXPECT_EQ_MSG'
    1039 |                                    left, ==, right,                            \
         |                                    ^~~~
   include/kunit/test.h:874:9: note: expanded from macro 'KUNIT_BINARY_INT_ASSERTION'
     874 |                                     left, op, right,                           \
         |                                     ^~~~
   include/kunit/test.h:840:31: note: expanded from macro 'KUNIT_BASE_BINARY_ASSERTION'
     840 |         const typeof(left) __left = (left);                                    \
         |                                      ^~~~
   8 errors generated.


vim +363 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/tests/amdgpu_dm_wb_test.c

682710244fa317 Alex Hung 2026-06-15  320  
682710244fa317 Alex Hung 2026-06-15  321  /**
682710244fa317 Alex Hung 2026-06-15  322   * dm_test_wb_connector_init_success - Verify writeback connector initialization
682710244fa317 Alex Hung 2026-06-15  323   * @test: KUnit test context
682710244fa317 Alex Hung 2026-06-15  324   *
682710244fa317 Alex Hung 2026-06-15  325   * Uses a DRM mock device embedded in struct amdgpu_device to verify that
682710244fa317 Alex Hung 2026-06-15  326   * amdgpu_dm_wb_connector_init() initializes the writeback connector, stores
682710244fa317 Alex Hung 2026-06-15  327   * the DC link, installs connector state through reset, and wires the expected
682710244fa317 Alex Hung 2026-06-15  328   * DRM callbacks.
682710244fa317 Alex Hung 2026-06-15  329   */
682710244fa317 Alex Hung 2026-06-15  330  static void dm_test_wb_connector_init_success(struct kunit *test)
682710244fa317 Alex Hung 2026-06-15  331  {
682710244fa317 Alex Hung 2026-06-15  332  	struct amdgpu_dm_wb_connector *wbcon;
682710244fa317 Alex Hung 2026-06-15  333  	struct amdgpu_display_manager *dm;
682710244fa317 Alex Hung 2026-06-15  334  	struct amdgpu_device *adev;
682710244fa317 Alex Hung 2026-06-15  335  	struct dc_link *link;
682710244fa317 Alex Hung 2026-06-15  336  	struct dc *dc;
682710244fa317 Alex Hung 2026-06-15  337  	int ret;
682710244fa317 Alex Hung 2026-06-15  338  
a532f8d7e4c96a Alex Hung 2026-06-18  339  	adev = dm_kunit_alloc_adev(test);
682710244fa317 Alex Hung 2026-06-15  340  	adev->mode_info.num_crtc = 1;
682710244fa317 Alex Hung 2026-06-15  341  	dm = &adev->dm;
682710244fa317 Alex Hung 2026-06-15  342  	dm->adev = adev;
682710244fa317 Alex Hung 2026-06-15  343  
682710244fa317 Alex Hung 2026-06-15  344  	dc = kunit_kzalloc(test, sizeof(*dc), GFP_KERNEL);
682710244fa317 Alex Hung 2026-06-15  345  	KUNIT_ASSERT_NOT_NULL(test, dc);
682710244fa317 Alex Hung 2026-06-15  346  
682710244fa317 Alex Hung 2026-06-15  347  	link = kunit_kzalloc(test, sizeof(*link), GFP_KERNEL);
682710244fa317 Alex Hung 2026-06-15  348  	KUNIT_ASSERT_NOT_NULL(test, link);
682710244fa317 Alex Hung 2026-06-15  349  
682710244fa317 Alex Hung 2026-06-15  350  	dc->links[0] = link;
682710244fa317 Alex Hung 2026-06-15  351  	dm->dc = dc;
682710244fa317 Alex Hung 2026-06-15  352  
682710244fa317 Alex Hung 2026-06-15  353  	wbcon = kunit_kzalloc(test, sizeof(*wbcon), GFP_KERNEL);
682710244fa317 Alex Hung 2026-06-15  354  	KUNIT_ASSERT_NOT_NULL(test, wbcon);
682710244fa317 Alex Hung 2026-06-15  355  
682710244fa317 Alex Hung 2026-06-15  356  	ret = amdgpu_dm_wb_connector_init(dm, wbcon, 0);
682710244fa317 Alex Hung 2026-06-15  357  
682710244fa317 Alex Hung 2026-06-15  358  	KUNIT_EXPECT_EQ(test, ret, 0);
682710244fa317 Alex Hung 2026-06-15  359  	KUNIT_EXPECT_PTR_EQ(test, wbcon->link, link);
682710244fa317 Alex Hung 2026-06-15  360  	KUNIT_EXPECT_TRUE(test, wbcon->base.base.funcs != NULL);
682710244fa317 Alex Hung 2026-06-15  361  	KUNIT_EXPECT_TRUE(test, wbcon->base.base.helper_private != NULL);
682710244fa317 Alex Hung 2026-06-15  362  	KUNIT_EXPECT_TRUE(test, wbcon->base.base.state != NULL);
682710244fa317 Alex Hung 2026-06-15 @363  	KUNIT_EXPECT_TRUE(test, wbcon->base.encoder.funcs != NULL);
682710244fa317 Alex Hung 2026-06-15  364  	KUNIT_EXPECT_EQ(test, wbcon->base.encoder.possible_crtcs, 0x1);
682710244fa317 Alex Hung 2026-06-15  365  }
682710244fa317 Alex Hung 2026-06-15  366  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-08-08  5:10 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=202608081250.LsbKHHc0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild@lists.linux.dev \
    /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.