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:android15-6.6-desktop 15/16] drivers/gpu/drm/i915/gt/intel_rps.c:2735:2: error: #error "Use of GKI forbidden symbol_get/symbol_put symbols, please refactor code first"
Date: Fri, 1 Nov 2024 02:51:36 +0800	[thread overview]
Message-ID: <202411010217.FDF5L84c-lkp@intel.com> (raw)

tree:   https://android.googlesource.com/kernel/common android15-6.6-desktop
head:   81bd1eb3862e37f2ce6e1148ed51ac214ab5c007
commit: 1e38a98e8350cd5437a2479854dc4d2ef034ddde [15/16] ANDROID: i915: Provide workaround to build i915 as vendor module
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241101/202411010217.FDF5L84c-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241101/202411010217.FDF5L84c-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/202411010217.FDF5L84c-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/gt/intel_rps.c: In function 'ips_ping_for_i915_load':
>> drivers/gpu/drm/i915/gt/intel_rps.c:2735:2: error: #error "Use of GKI forbidden symbol_get/symbol_put symbols, please refactor code first"
    2735 | #error "Use of GKI forbidden symbol_get/symbol_put symbols, please refactor code first"
         |  ^~~~~


vim +2735 drivers/gpu/drm/i915/gt/intel_rps.c

  2717	
  2718	/*
  2719	 * Tells the intel_ips driver that the i915 driver is now loaded, if
  2720	 * IPS got loaded first.
  2721	 *
  2722	 * This awkward dance is so that neither module has to depend on the
  2723	 * other in order for IPS to do the appropriate communication of
  2724	 * GPU turbo limits to i915.
  2725	 */
  2726	static void
  2727	ips_ping_for_i915_load(void)
  2728	{
  2729	#if IS_ENABLED(CONFIG_INTEL_IPS)
  2730		/*
  2731		 * (b/352497771): GKI does not allow to build any vendor module which
  2732		 * uses symbol_get/symbol_put as symbol lookup circumvents all ABI
  2733		 * checking.
  2734		 */
> 2735	#error "Use of GKI forbidden symbol_get/symbol_put symbols, please refactor code first"
  2736		void (*link)(void);
  2737	
  2738		link = symbol_get(ips_link_to_i915_driver);
  2739		if (link) {
  2740			link();
  2741			symbol_put(ips_link_to_i915_driver);
  2742		}
  2743	#endif
  2744	}
  2745	

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

                 reply	other threads:[~2024-10-31 18:51 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=202411010217.FDF5L84c-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.