All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android16-6.12-2026-03 0/1] drivers/gpu/drm/xe/xe_guc_ct.c:1814:17: error: call to undeclared function 'xe_guc_log_snapshot_capture'; ISO C99 and later do not support implicit function declarations
Date: Sat, 05 Sep 2026 13:08:27 +0800	[thread overview]
Message-ID: <202609051354.Ew3u0eT2-lkp@intel.com> (raw)

Hi John,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android16-6.12-2026-03
head:   1f0237f915e8bc71c6a8e62175c6b9bf058338dc
commit: ff6482fb458953e111a82b7c537363d9aacf04bf [0/1] drm/xe/guc: Dead CT helper
config: x86_64-randconfig-103-20260904 (https://download.01.org/0day-ci/archive/20260905/202609051354.Ew3u0eT2-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260905/202609051354.Ew3u0eT2-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/oe-kbuild-all/202609051354.Ew3u0eT2-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from <built-in>:3:
   In file included from include/linux/compiler_types.h:171:
   include/linux/compiler-clang.h:28:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
      28 | #define __SANITIZE_ADDRESS__
         |         ^
   <built-in>:354:9: note: previous definition is here
     354 | #define __SANITIZE_ADDRESS__ 1
         |         ^
>> drivers/gpu/drm/xe/xe_guc_ct.c:1814:17: error: call to undeclared function 'xe_guc_log_snapshot_capture'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1814 |         snapshot_log = xe_guc_log_snapshot_capture(&guc->log, true);
         |                        ^
   drivers/gpu/drm/xe/xe_guc_ct.c:1814:17: note: did you mean 'xe_guc_ct_snapshot_capture'?
   drivers/gpu/drm/xe/xe_guc_ct.c:1700:28: note: 'xe_guc_ct_snapshot_capture' declared here
    1700 | struct xe_guc_ct_snapshot *xe_guc_ct_snapshot_capture(struct xe_guc_ct *ct,
         |                            ^
>> drivers/gpu/drm/xe/xe_guc_ct.c:1814:15: error: incompatible integer to pointer conversion assigning to 'struct xe_guc_log_snapshot *' from 'int' [-Wint-conversion]
    1814 |         snapshot_log = xe_guc_log_snapshot_capture(&guc->log, true);
         |                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/xe/xe_guc_ct.c:1821:3: error: call to undeclared function 'xe_guc_log_snapshot_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1821 |                 xe_guc_log_snapshot_free(snapshot_log);
         |                 ^
   drivers/gpu/drm/xe/xe_guc_ct.c:1821:3: note: did you mean 'xe_guc_ct_snapshot_free'?
   drivers/gpu/drm/xe/xe_guc_ct.c:1760:6: note: 'xe_guc_ct_snapshot_free' declared here
    1760 | void xe_guc_ct_snapshot_free(struct xe_guc_ct_snapshot *snapshot)
         |      ^
>> drivers/gpu/drm/xe/xe_guc_ct.c:1840:26: error: call to undeclared function 'drm_line_printer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1840 |         struct drm_printer lp = drm_line_printer(&ip, "Capture", ++g_count);
         |                                 ^
   drivers/gpu/drm/xe/xe_guc_ct.c:1840:26: note: did you mean 'drm_info_printer'?
   include/drm/drm_print.h:363:34: note: 'drm_info_printer' declared here
     363 | static inline struct drm_printer drm_info_printer(struct device *dev)
         |                                  ^
>> drivers/gpu/drm/xe/xe_guc_ct.c:1840:21: error: initializing 'struct drm_printer' with an expression of incompatible type 'int'
    1840 |         struct drm_printer lp = drm_line_printer(&ip, "Capture", ++g_count);
         |                            ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/xe/xe_guc_ct.c:1857:2: error: call to undeclared function 'xe_guc_log_snapshot_print'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1857 |         xe_guc_log_snapshot_print(dead->snapshot_log, &lp);
         |         ^
   drivers/gpu/drm/xe/xe_guc_ct.c:1857:2: note: did you mean 'xe_guc_ct_snapshot_print'?
   drivers/gpu/drm/xe/xe_guc_ct.c:1733:6: note: 'xe_guc_ct_snapshot_print' declared here
    1733 | void xe_guc_ct_snapshot_print(struct xe_guc_ct_snapshot *snapshot,
         |      ^
   drivers/gpu/drm/xe/xe_guc_ct.c:1876:2: error: call to undeclared function 'xe_guc_log_snapshot_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1876 |         xe_guc_log_snapshot_free(ct->dead.snapshot_log);
         |         ^
   1 warning and 7 errors generated.


vim +/xe_guc_log_snapshot_capture +1814 drivers/gpu/drm/xe/xe_guc_ct.c

  1785	
  1786	#if IS_ENABLED(CONFIG_DRM_XE_DEBUG)
  1787	static void ct_dead_capture(struct xe_guc_ct *ct, struct guc_ctb *ctb, u32 reason_code)
  1788	{
  1789		struct xe_guc_log_snapshot *snapshot_log;
  1790		struct xe_guc_ct_snapshot *snapshot_ct;
  1791		struct xe_guc *guc = ct_to_guc(ct);
  1792		unsigned long flags;
  1793		bool have_capture;
  1794	
  1795		if (ctb)
  1796			ctb->info.broken = true;
  1797	
  1798		/* Ignore further errors after the first dump until a reset */
  1799		if (ct->dead.reported)
  1800			return;
  1801	
  1802		spin_lock_irqsave(&ct->dead.lock, flags);
  1803	
  1804		/* And only capture one dump at a time */
  1805		have_capture = ct->dead.reason & (1 << CT_DEAD_STATE_CAPTURE);
  1806		ct->dead.reason |= (1 << reason_code) |
  1807				   (1 << CT_DEAD_STATE_CAPTURE);
  1808	
  1809		spin_unlock_irqrestore(&ct->dead.lock, flags);
  1810	
  1811		if (have_capture)
  1812			return;
  1813	
> 1814		snapshot_log = xe_guc_log_snapshot_capture(&guc->log, true);
  1815		snapshot_ct = xe_guc_ct_snapshot_capture((ct), true);
  1816	
  1817		spin_lock_irqsave(&ct->dead.lock, flags);
  1818	
  1819		if (ct->dead.snapshot_log || ct->dead.snapshot_ct) {
  1820			xe_gt_err(ct_to_gt(ct), "Got unexpected dead CT capture!\n");
> 1821			xe_guc_log_snapshot_free(snapshot_log);
  1822			xe_guc_ct_snapshot_free(snapshot_ct);
  1823		} else {
  1824			ct->dead.snapshot_log = snapshot_log;
  1825			ct->dead.snapshot_ct = snapshot_ct;
  1826		}
  1827	
  1828		spin_unlock_irqrestore(&ct->dead.lock, flags);
  1829	
  1830		queue_work(system_unbound_wq, &(ct)->dead.worker);
  1831	}
  1832	
  1833	static void ct_dead_print(struct xe_dead_ct *dead)
  1834	{
  1835		struct xe_guc_ct *ct = container_of(dead, struct xe_guc_ct, dead);
  1836		struct xe_device *xe = ct_to_xe(ct);
  1837		struct xe_gt *gt = ct_to_gt(ct);
  1838		static int g_count;
  1839		struct drm_printer ip = xe_gt_info_printer(gt);
> 1840		struct drm_printer lp = drm_line_printer(&ip, "Capture", ++g_count);
  1841	
  1842		if (!dead->reason) {
  1843			xe_gt_err(gt, "CTB is dead for no reason!?\n");
  1844			return;
  1845		}
  1846	
  1847		drm_printf(&lp, "CTB is dead - reason=0x%X\n", dead->reason);
  1848	
  1849		/* Can't generate a genuine core dump at this point, so just do the good bits */
  1850		drm_puts(&lp, "**** Xe Device Coredump ****\n");
  1851		xe_device_snapshot_print(xe, &lp);
  1852	
  1853		drm_printf(&lp, "**** GT #%d ****\n", gt->info.id);
  1854		drm_printf(&lp, "\tTile: %d\n", gt->tile->id);
  1855	
  1856		drm_puts(&lp, "**** GuC Log ****\n");
> 1857		xe_guc_log_snapshot_print(dead->snapshot_log, &lp);
  1858	
  1859		drm_puts(&lp, "**** GuC CT ****\n");
  1860		xe_guc_ct_snapshot_print(dead->snapshot_ct, &lp);
  1861	
  1862		drm_puts(&lp, "Done.\n");
  1863	}
  1864	

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

                 reply	other threads:[~2026-09-05  5:09 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=202609051354.Ew3u0eT2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=oe-kbuild-all@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.