ref: 08ab34cf57756913c0d6eae2322ea1b2e36fed20
parent: fb81733b2b9d9b74a9cd560531be88399c22626e
author: ISSOtm <[email protected]>
date: Sun Jan 26 13:26:57 EST 2020
Fix a few checkpatch warnings in `symbol.h`
--- a/include/asm/symbol.h
+++ b/include/asm/symbol.h
@@ -47,45 +47,28 @@
{
return sym->type != SYM_REF;
}
+
static inline bool sym_IsConstant(struct sSymbol const *sym)
{
return sym->isConstant;
}
+
static inline bool sym_IsNumeric(struct sSymbol const *sym)
{
return sym->type == SYM_LABEL || sym->type == SYM_EQU
|| sym->type == SYM_SET;
}
+
static inline bool sym_IsLocal(struct sSymbol const *sym)
{
return (sym->type == SYM_LABEL || sym->type == SYM_REF)
&& strchr(sym->tzName, '.');
}
+
static inline bool sym_IsExported(struct sSymbol const *sym)
{
return sym->isExported;
}
-/* Symbol will be relocated during linking, it's absolute value is unknown
-#define SYMF_RELOC 0x001
-Symbol is defined using EQU, will not be changed during linking
-#define SYMF_EQU 0x002
-Symbol is (re)defined using SET, will not be changed during linking
-#define SYMF_SET 0x004
-Symbol should be exported
-#define SYMF_EXPORT 0x008
-Symbol referenced in RPN expression
-#define SYMF_REF 0x010
-Symbol is a local symbol
-#define SYMF_LOCAL 0x020
-Symbol has been defined, not only referenced
-#define SYMF_DEFINED 0x040
-Symbol is a macro
-#define SYMF_MACRO 0x080
-Symbol is a stringsymbol
-#define SYMF_STRING 0x100
-Symbol has a constant value, will not be changed during linking
-#define SYMF_CONST 0x200
-*/
uint32_t sym_CalcHash(const char *s);
void sym_SetExportAll(uint8_t set);