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>
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
3faf36fb25
commit
bc5d48e76c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user