Module Name: src
Committed By: riastradh
Date: Wed Jul 24 02:49:35 UTC 2013
Modified Files:
src/sys/external/bsd/drm2/include/drm [riastradh-drm2]:
drm_agp_netbsd.h
Log Message:
Insert a strategic cast into agp_find_bridge.
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.4 -r1.1.2.5 \
src/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h
diff -u src/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h:1.1.2.4 src/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h:1.1.2.5
--- src/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h:1.1.2.4 Wed Jul 24 02:45:06 2013
+++ src/sys/external/bsd/drm2/include/drm/drm_agp_netbsd.h Wed Jul 24 02:49:35 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_agp_netbsd.h,v 1.1.2.4 2013/07/24 02:45:06 riastradh Exp $ */
+/* $NetBSD: drm_agp_netbsd.h,v 1.1.2.5 2013/07/24 02:49:35 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -76,8 +76,8 @@ agp_find_bridge(struct pci_dev *pdev __u
* XXX How do we find the agp bridge attached to this
* particular PCI device?
*/
- return container_of(agp_find_device(0), struct agp_bridge_data,
- abd_sc);
+ return container_of((struct agp_softc *)agp_find_device(0),
+ struct agp_bridge_data, abd_sc);
}
static inline struct agp_bridge_data *