Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915/gt Provide an element in...



details:   https://anonhg.NetBSD.org/src/rev/e5b6d748c587
branches:  trunk
changeset: 1028691:e5b6d748c587
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:46:38 2021 +0000

description:
Provide an element in struct intel_llc

our implementation of container_of doesn't like working with empty
structs.


Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/gt/intel_llc_types.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 473e3cea0e8f -r e5b6d748c587 sys/external/bsd/drm2/dist/drm/i915/gt/intel_llc_types.h
--- a/sys/external/bsd/drm2/dist/drm/i915/gt/intel_llc_types.h  Sun Dec 19 11:46:30 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gt/intel_llc_types.h  Sun Dec 19 11:46:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intel_llc_types.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $    */
+/*     $NetBSD: intel_llc_types.h,v 1.3 2021/12/19 11:46:38 riastradh Exp $    */
 
 /*
  * SPDX-License-Identifier: MIT
@@ -10,6 +10,7 @@
 #define INTEL_LLC_TYPES_H
 
 struct intel_llc {
+       int x;  /* XXX only exists because container_of on empty aggregate is an error */
 };
 
 #endif /* INTEL_LLC_TYPES_H */



Home | Main Index | Thread Index | Old Index