mirror of
https://github.com/linux-thinkpad/tp_smapi.git
synced 2024-09-11 07:05:28 +03:00
don't cast smapi_port in inline assembly
the generated assembly looks identical with and without the cast on GCC-13 Fixes: #41
This commit is contained in:
parent
83ca2107dc
commit
a4db4b9cc2
@ -201,7 +201,7 @@ static int smapi_request(u32 inEBX, u32 inECX,
|
||||
"=m"(tmpEDI),
|
||||
"=m"(tmpESI)
|
||||
:"m"(inEBX), "m"(inECX), "m"(inEDI), "m"(inESI),
|
||||
"m"((u16)smapi_port)
|
||||
"m"(smapi_port)
|
||||
:"%eax", "%ebx", "%ecx", "%edx", "%edi",
|
||||
"%esi");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user