From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 024811360 for ; Wed, 22 Feb 2023 01:55:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677030955; x=1708566955; h=date:from:to:cc:subject:message-id:mime-version; bh=OqvQKY6UiAJCFSy87bzLqqgXszfo/sVn445GhIxAsDs=; b=HGR4WoxiNIZ/aZugHOL89u+QrU4St+ryrz/ivmtrpDYhQZ6c010PSSce WGHKi/EqaXDnUcZRtN//676wGMsV2Ph8XzL6fUngDacAtxF9zQJOxTBWC aqGv4NtkFdoHqrAe7TEXhfP+qHY+msHu4rXsm1FLj91jWuzmoH4Zt+bmn ws+6IK2wx3GXotmYjVKgT6/q1pV/r3P4VhzgcFoFjv8gfyjDvZrRmxbWa sVhhUxaKrzJTN7j8Sv4xnE3eBJ+LhVGY9rRoWLnbSipcYW9bJQEULPdLL c2mMgyBTdL2tCro0NOghQPJlgl2mVWbq3w2vWf/LXaY5HC4xD1u5GPVyp w==; X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="419033820" X-IronPort-AV: E=Sophos;i="5.97,317,1669104000"; d="scan'208";a="419033820" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2023 17:55:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10628"; a="845944528" X-IronPort-AV: E=Sophos;i="5.97,317,1669104000"; d="scan'208";a="845944528" Received: from lkp-server01.sh.intel.com (HELO eac18b5d7d93) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 21 Feb 2023 17:55:54 -0800 Received: from kbuild by eac18b5d7d93 with local (Exim 4.96) (envelope-from ) id 1pUeML-0000Th-1e; Wed, 22 Feb 2023 01:55:53 +0000 Date: Wed, 22 Feb 2023 09:55:04 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com, Guenter Roeck Cc: oe-kbuild-all@lists.linux.dev Subject: [chrome-os:chromeos-5.10 56/65] drivers/gpu/drm/i915/pxp/intel_pxp_tee.c:212:6: warning: no previous prototype for 'intel_pxp_tee_end_one_fw_session' Message-ID: <202302220926.IMAvSF5z-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10 head: 3895b42e3e85433fec5339d2d937b4c57b1e0855 commit: 5b63195fa9e6028cdef57d18f19853bad0d33d03 [56/65] CHROMIUM: drm/i915/pxp: Mutisession version for Invalidate all PXP fw sessions during teardown config: i386-randconfig-r033-20230220 (https://download.01.org/0day-ci/archive/20230222/202302220926.IMAvSF5z-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel git fetch --no-tags chrome-os chromeos-5.10 git checkout 5b63195fa9e6028cdef57d18f19853bad0d33d03 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202302220926.IMAvSF5z-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/i915/pxp/intel_pxp_tee.c:212:6: warning: no previous prototype for 'intel_pxp_tee_end_one_fw_session' [-Wmissing-prototypes] 212 | void intel_pxp_tee_end_one_fw_session(struct intel_pxp *pxp, u32 session_id, bool is_alive) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/intel_pxp_tee_end_one_fw_session +212 drivers/gpu/drm/i915/pxp/intel_pxp_tee.c 211 > 212 void intel_pxp_tee_end_one_fw_session(struct intel_pxp *pxp, u32 session_id, bool is_alive) 213 { 214 struct drm_i915_private *i915 = pxp_to_gt(pxp)->i915; 215 struct pxp_inv_stream_key_in msg_in = {0}; 216 struct pxp_inv_stream_key_out msg_out = {0}; 217 int ret, trials = 0; 218 219 try_again: 220 memset(&msg_in, 0, sizeof(msg_in)); 221 memset(&msg_out, 0, sizeof(msg_out)); 222 msg_in.header.api_version = PXP_TEE_APIVER; 223 msg_in.header.command_id = PXP_TEE_INVALIDATE_STREAM_KEY; 224 msg_in.header.buffer_len = sizeof(msg_in) - sizeof(msg_in.header); 225 226 msg_in.header.extdata = FIELD_PREP(PXP_CMDHDR_EXTDATA_SESSION_VALID, 1); 227 msg_in.header.extdata |= FIELD_PREP(PXP_CMDHDR_EXTDATA_APP_TYPE, 0); 228 msg_in.header.extdata |= FIELD_PREP(PXP_CMDHDR_EXTDATA_SESSION_ID, session_id); 229 230 ret = intel_pxp_tee_io_message(pxp, 231 &msg_in, sizeof(msg_in), 232 &msg_out, sizeof(msg_out), 233 NULL); 234 235 /* Cleanup coherency between GT and Firmware is critical, so try again if it fails */ 236 if ((ret || msg_out.header.status != 0x0) && ++trials < 3) 237 goto try_again; 238 239 if (ret) 240 drm_err(&i915->drm, "Failed to send tee msg for inv-stream-key-%d, ret=[%d]\n", 241 session_id, ret); 242 else if (msg_out.header.status != 0x0 && is_alive) 243 drm_warn(&i915->drm, "PXP firmware failed inv-stream-key-%d with status 0x%08x\n", 244 session_id, msg_out.header.status); 245 } 246 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests