mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 08:38:28 -04:00
staging: media: atomisp: fill properly hmm_bo_type_strings when ION is disabled
When CONFIG_ION is disabled, HMM_BO_LAST is 3. In this case, "i" should not be added in hmm_bo_type_strings. Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4995706d6f
commit
fde469701c
@@ -49,7 +49,9 @@ const char *hmm_bo_type_strings[HMM_BO_LAST] = {
|
||||
"p", /* private */
|
||||
"s", /* shared */
|
||||
"u", /* user */
|
||||
#ifdef CONFIG_ION
|
||||
"i", /* ion */
|
||||
#endif
|
||||
};
|
||||
|
||||
static ssize_t bo_show(struct device *dev, struct device_attribute *attr,
|
||||
|
||||
Reference in New Issue
Block a user