Run pre-commit's whitespace related hooks on projects/rocr-runtime (#2130)

* Run pre-commit's whitespace related hooks on projects/rocr-runtime

In order for pre-commit to be useful, everything needs to meet a common
baseline.

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>

* Add missing semicolon which would block compilation on big endian CPUs

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>

---------

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Этот коммит содержится в:
Mario Limonciello
2025-12-08 07:56:50 -06:00
коммит произвёл GitHub
родитель 3faf36fb25
Коммит bc5d48e76c
60 изменённых файлов: 300 добавлений и 303 удалений
+2 -2
Просмотреть файл
@@ -93,7 +93,7 @@ namespace rocr {
// Having a side effect prevents call site optimization that allows removal of a noinline function call
// with no side effect.
#if defined(__linux__)
__attribute__((noinline))
__attribute__((noinline))
#else
__declspec(noinline)
#endif
@@ -1615,7 +1615,7 @@ uint64_t ExecutableImpl::SymbolAddress(hsa_agent_t agent, elf::Symbol* sym)
{
elf::Section* sec = sym->section();
if(!sec) { return NULL; }
Segment* seg = SectionSegment(agent, sec);
uint64_t vaddr = sec->addr() + sym->value();
return nullptr == seg ? 0 : (uint64_t) (uintptr_t) seg->Address(vaddr);