intel/isl: Mark functions used conditionally as UNUSED
authorMatt Turner <mattst88@gmail.com>
Sat, 26 Aug 2017 03:39:12 +0000 (20:39 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 29 Aug 2017 22:20:57 +0000 (15:20 -0700)
The functions we're marking as UNUSED in isl_surface_state.c are used
only when compiling for particular generations.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/intel/isl/isl_surface_state.c

index e9a3fda56807618ec5cc0b09025fbb3572206f3f..c6a55ce9707e0844b1565a829d829c80649eac3b 100644 (file)
@@ -130,7 +130,7 @@ get_surftype(enum isl_surf_dim dim, isl_surf_usage_flags_t usage)
  * hardware.  Note that this does NOT give you the actual hardware enum values
  * but an index into the isl_to_gen_[hv]align arrays above.
  */
-static struct isl_extent3d
+UNUSED static struct isl_extent3d
 get_image_alignment(const struct isl_surf *surf)
 {
    if (GEN_GEN >= 9) {