OSDN Git Service

tp_smapi: fix a building issue with clang
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 21 Jun 2018 10:52:20 +0000 (18:52 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 21 Jun 2018 10:52:20 +0000 (18:52 +0800)
commit4870ff9f794c40a28fb3f1ddde7d44e7f8c09e57
treeaa81e7c86d02579baa49a18e2ae14cc975cf854c
parent495685b9d093bb0c99e1c88a54cab5bdb01188f3
tp_smapi: fix a building issue with clang

The clang complains:

/android-x86/out/target/product/x86_64/obj/kmodule/tp_smapi/tp_smapi.c:202:14: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                         "m"((u16)smapi_port)
                             ~~~~~^~~~~~~~~~
1 error generated.
tp_smapi/tp_smapi.c