drm/xe: Add missing include guards to unprotected headers

Two headers lack include guards entirely, which can cause duplicate
definition errors if they are included more than once (directly or
transitively).

Add standard _XE_<NAME>_H_ include guards to:
  - xe_dep_scheduler.h: forward declarations and function prototypes
  - xe_pcode_api.h: PCODE mailbox register definitions

No functional change.

Suggested-by: Nitin Gote <nitin.r.gote@intel.com>
Assisted-by: GitHub Copilot:claude-opus-4.6
Reviewed-by: Nitin Gote <nitin.r.gote@intel.com>
Link: https://patch.msgid.link/20260317215732.2208976-8-shuicheng.lin@intel.com
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
This commit is contained in:
Shuicheng Lin 2026-03-17 21:57:17 +00:00
parent ec4f4970eb
commit e7ac8ddfef
2 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,9 @@
* Copyright © 2025 Intel Corporation
*/
#ifndef _XE_DEP_SCHEDULER_H_
#define _XE_DEP_SCHEDULER_H_
#include <linux/types.h>
struct drm_sched_entity;
@ -19,3 +22,5 @@ void xe_dep_scheduler_fini(struct xe_dep_scheduler *dep_scheduler);
struct drm_sched_entity *
xe_dep_scheduler_entity(struct xe_dep_scheduler *dep_scheduler);
#endif

View File

@ -3,6 +3,9 @@
* Copyright © 2022 Intel Corporation
*/
#ifndef _XE_PCODE_API_H_
#define _XE_PCODE_API_H_
/* Internal to xe_pcode */
#include "regs/xe_reg_defs.h"
@ -101,3 +104,5 @@
#define BMG_PCIE_CAP XE_REG(0x138340)
#define LINK_DOWNGRADE REG_GENMASK(1, 0)
#define DOWNGRADE_CAPABLE 2
#endif