mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Ensure that the status of all tile associated sysfs entries creation is relayed to xe_tile_init_noalloc, leading to a driver load abort if any sysfs creation failures occur. -v2 Avoid unnecessary warn/error messages. (Lucas) Cc: Rodrigo Vivi <[email protected]> Cc: Lucas De Marchi <[email protected]> Signed-off-by: Himal Prasad Ghimiray <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
20 lines
376 B
C
20 lines
376 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_TILE_SYSFS_H_
|
|
#define _XE_TILE_SYSFS_H_
|
|
|
|
#include "xe_tile_sysfs_types.h"
|
|
|
|
int xe_tile_sysfs_init(struct xe_tile *tile);
|
|
|
|
static inline struct xe_tile *
|
|
kobj_to_tile(struct kobject *kobj)
|
|
{
|
|
return container_of(kobj, struct kobj_tile, base)->tile;
|
|
}
|
|
|
|
#endif /* _XE_TILE_SYSFS_H_ */
|