Skip to content

porting KernelSU to android kernel3.18 failed #539

@dabao1955

Description

@dabao1955

Describe the bug
A clear and concise description of what the bug is.
porting KernelSU to android kernel3.18 failed
To Reproduce
Steps to reproduce the behavior:make ARCH=arm64
O=../out
CLANG_TRIPLE=aarch64-linux-gnu-
CROSS_COMPILE=$HOME/aarch64-linux-android-4.9>
CROSS_COMPILE_ARM32=$HOME/arm-linux-androidea>

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
build complete
Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: OPPO R9S
  • OS: lineageos
  • Version 14
  • kernel version:3.18

Additional context
Add any other context about the problem here.

CC drivers/input/touchscreen/of_touchscreen.o
/home/synaptic/linux-3.18/drivers/kernelsu/ksu.c: In function 'kernelsu_init':
/home/synaptic/linux-3.18/drivers/kernelsu/ksu.c:60:2: warning: #warning ("KPROBES is disabled, KernelSU may not work, please check https://kernelsu.org/guide/how-to-integrate-for-non-gki.html") [-Wcpp]
error, forbidden warning: ksu.c:60
make[3]: *** [/home/synaptic/linux-3.18/scripts/Makefile.build:257: drivers/kernelsu/ksu.o] エラー 1
make[2]: *** [/home/synaptic/linux-3.18/scripts/Makefile.build:402: drivers/kernelsu] エラー 2
make[2]: *** 未完了のジョブを待っています....

CC drivers/irqchip/irq-gic-common.o
/home/synaptic/linux-3.18/drivers/kernelsu/allowlist.c: In function 'do_load_allow_list':
/home/synaptic/linux-3.18/drivers/kernelsu/allowlist.c:175:3: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
error, forbidden warning: allowlist.c:175
make[3]: *** [/home/synaptic/linux-3.18/scripts/Makefile.build:257: drivers/kernelsu/allowlist.o] エラー 1
make[2]: *** [/home/synaptic/linux-3.18/scripts/Makefile.build:402: drivers/kernelsu] エラー 2
make[2]: *** 未完了のジョブを待っています....
CC drivers/iommu/iommu-sysfs.o

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions