]> Gentwo Git Trees - linux/.git/commit
drm/xe/configfs: Drop MAX_GT_TYPE_CHARS constant
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 24 Oct 2025 20:08:35 +0000 (13:08 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 24 Oct 2025 22:00:38 +0000 (15:00 -0700)
commitfab36494f26c1818f0d02230f30aca45b4888848
tree39c92122a61b31bfd8041a382aa4243836834108
parent6d5511e56b2d6474878cb7be44f5abb894842ef3
drm/xe/configfs: Drop MAX_GT_TYPE_CHARS constant

Early revisions of commit 7abd69278bb5 ("drm/xe/configfs: Add attribute
to disable GT types") used MAX_GT_TYPE_CHARS not only to size the
constant name field, but also for some of the string matching logic.  By
the time the patch finally landed, the constant was no longer needed for
parsing.  Stop using it for the string field definition as well; this
eliminates the risk that we forget to update the constant if we ever add
a GT type name longer than seven characters.

Suggested-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patch.msgid.link/20251024200834.1512329-2-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_configfs.c