mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
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:
parent
ec4f4970eb
commit
e7ac8ddfef
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user