From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2765FF6E87 for ; Tue, 17 Mar 2026 22:01:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E0F110E1C6; Tue, 17 Mar 2026 22:01:42 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="GlKRuOd8"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 778C010E1C6 for ; Tue, 17 Mar 2026 22:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773784902; x=1805320902; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vTuHUa8QFQz2tpuQ/y8fhA4g/jigAM8NunTgwAQKqiI=; b=GlKRuOd8VK7CE63dS6nuYjzE+RhOPGc4sumN/zqXPw4ATc1JpA/za+5s Q4jQDh1yna+pIdrsshCvEZ1n6O76L9AlqvdV6N+MDhn61PEcj2lI6J1PQ 8a/E/JT9mh36rdUCiRBL6M4NHseH5pFoPIfYiVjRdo4/St2yobm3l6zcg PTLORhPL9/SMinUYo6UynkEw0d5WVWly08sIkjGV3pHE3C2PYAldn9uR6 AiBhIkVeii7smWdRGu8ac0u4QtQN0eEvwV82llQ8gzzapYldaQ2cCNIoc 15h2idYfbAopjP8SNEWvlLzU9+HrwFeNmasLRMZaCR1bNW7vfVJ7EN0qO A==; X-CSE-ConnectionGUID: f2y4YAD3Q3WNaPidK1wSAQ== X-CSE-MsgGUID: LReZTXfFQaq+2Ysw/jnaBQ== X-IronPort-AV: E=McAfee;i="6800,10657,11732"; a="74011917" X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="74011917" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2026 15:01:41 -0700 X-CSE-ConnectionGUID: SDzJCpdwS+Ov53Q5+mxxvg== X-CSE-MsgGUID: 9lwkaSSbTM+KYs+JA/EuDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,126,1770624000"; d="scan'208";a="245427903" Received: from shosgclin.sh.intel.com ([10.112.232.103]) by fmviesa002.fm.intel.com with ESMTP; 17 Mar 2026 15:01:40 -0700 From: Shuicheng Lin To: intel-xe@lists.freedesktop.org Cc: Shuicheng Lin Subject: [PATCH 0/5] drm/xe: Fix mismatched include guards in header files Date: Tue, 17 Mar 2026 21:57:16 +0000 Message-ID: <20260317215732.2208976-7-shuicheng.lin@intel.com> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Mostly generated by AI and reviewed to confirm the change is correct. Audit and normalize include guards across 24 xe driver headers to follow the dominant _XE__H_ convention used by ~232 of ~260 xe headers. The series is organized from most severe to least: 1. Add missing include guards to 2 completely unprotected headers (xe_dep_scheduler.h, xe_pcode_api.h) that could cause duplicate definition errors on multiple inclusion. 2. Add missing _H suffix to 10 headers using _XE__ guards. 3. Add missing trailing underscore to 4 headers using _XE__H. 4. Add missing leading underscore to 2 headers using XE__H_. 5. Normalize 6 headers from __XE__H__ double-underscore style to single-underscore, avoiding C reserved identifiers (C11 ยง7.1.3). No functional changes. Compile-tested only. Shuicheng Lin (5): drm/xe: Add missing include guards to unprotected headers drm/xe: Add missing _H to include guard suffixes drm/xe: Add missing trailing underscore to include guards drm/xe: Add missing leading underscore to include guards drm/xe: Normalize double-underscore include guards to single-underscore drivers/gpu/drm/xe/xe_dep_scheduler.h | 5 +++++ drivers/gpu/drm/xe/xe_drm_ras.h | 4 ++-- drivers/gpu/drm/xe/xe_eu_stall.h | 4 ++-- drivers/gpu/drm/xe/xe_guc_capture.h | 4 ++-- drivers/gpu/drm/xe/xe_guc_capture_types.h | 4 ++-- drivers/gpu/drm/xe/xe_guc_fwif.h | 4 ++-- drivers/gpu/drm/xe/xe_hw_error.h | 4 ++-- drivers/gpu/drm/xe/xe_migrate.h | 4 ++-- drivers/gpu/drm/xe/xe_nvm.h | 4 ++-- drivers/gpu/drm/xe/xe_pcode_api.h | 5 +++++ drivers/gpu/drm/xe/xe_pt_walk.h | 4 ++-- drivers/gpu/drm/xe/xe_pxp.h | 6 +++--- drivers/gpu/drm/xe/xe_pxp_debugfs.h | 6 +++--- drivers/gpu/drm/xe/xe_pxp_submit.h | 6 +++--- drivers/gpu/drm/xe/xe_pxp_types.h | 6 +++--- drivers/gpu/drm/xe/xe_reg_sr.h | 4 ++-- drivers/gpu/drm/xe/xe_reg_sr_types.h | 4 ++-- drivers/gpu/drm/xe/xe_reg_whitelist.h | 4 ++-- drivers/gpu/drm/xe/xe_rtp.h | 4 ++-- drivers/gpu/drm/xe/xe_rtp_helpers.h | 4 ++-- drivers/gpu/drm/xe/xe_rtp_types.h | 4 ++-- drivers/gpu/drm/xe/xe_tuning.h | 4 ++-- drivers/gpu/drm/xe/xe_uc_fw_abi.h | 4 ++-- drivers/gpu/drm/xe/xe_wa.h | 4 ++-- 24 files changed, 58 insertions(+), 48 deletions(-) -- 2.43.0