selftests/resctrl: Clean up resctrl features check
[ Upstream commit 24286736 ] Checking resctrl features call strcmp() to compare feature strings (e.g. "mba", "cat" etc). The checkings are error prone and don't have good coding style. Define the constant strings in macros and call strncmp() to solve the potential issues. Suggested-by:Shuah Khan <skhan@linuxfoundation.org> Tested-by:
Babu Moger <babu.moger@amd.com> Signed-off-by:
Fenghua Yu <fenghua.yu@intel.com> Signed-off-by:
Shuah Khan <skhan@linuxfoundation.org> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment