binder: Fix up Kconfig dependancy due to removal of .c code
Subsystems (2)
Greg Kroah-Hartman
maintainerPATCH 1/1 binder: Fix up Kconfig dependancy due to removal of .c code
When the .c binder code was removed, building the kernel if the rust binder code was enabled, will cause the binder to not be built at all as the option changed from .c to .rs which is probably not what the original build wanted.
Fix this up by renaming the option back to the _RUST version. If in the future, that suffix wants to be dropped, we can do so and then it will be prompted for a choice again, but for this release cycle, it should stay as-is.
--- drivers/android/Kconfig | 4 ++-- drivers/android/Makefile | 2 +- drivers/android/binder/Makefile | 2 +- tools/testing/selftests/filesystems/binderfs/binderfs_test.c | 2 +- tools/testing/selftests/filesystems/binderfs/config | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
drivers/android/Kconfig +2 -2
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 menu "Android" -config ANDROID_BINDER_IPC +config ANDROID_BINDER_IPC_RUST bool "Android Binder IPC Driver" depends on MMU depends on NET
@@ -17,7 +17,7 @@ config ANDROID_BINDER_IPC config ANDROID_BINDER_DEVICES string "Android Binder devices" - depends on ANDROID_BINDER_IPC + depends on ANDROID_BINDER_IPC_RUST default "binder,hwbinder,vndbinder" help Default value for the binder.devices parameter.
drivers/android/Makefile +1 -1
@@ -1,4 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only ccflags-y += -I$(src) # needed for trace events -obj-$(CONFIG_ANDROID_BINDER_IPC) += binder/ +obj-$(CONFIG_ANDROID_BINDER_IPC_RUST_RUST) += binder/
drivers/android/binder/Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only ccflags-y += -I$(src) # needed for trace events -obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o +obj-$(CONFIG_ANDROID_BINDER_IPC_RUST) += binder.o binder-y := \ rust_binder_main.o \ rust_binderfs.o \
tools/testing/selftests/filesystems/binderfs/binderfs_test.c +1 -1
@@ -414,7 +414,7 @@ TEST(binderfs_stress) ret =mount (NULL , binderfs_mntpt,"binder" ,0 ,0 ); ASSERT_EQ(ret, 0) { -TH_LOG ("%s - Failed to mount binderfs, check if CONFIG_ANDROID_BINDER_IPC is enabled in the running kernel" , +TH_LOG ("%s - Failed to mount binderfs, check if CONFIG_ANDROID_BINDER_IPC_RUST is enabled in the running kernel" ,strerror (errno)); }
tools/testing/selftests/filesystems/binderfs/config +1 -1
@@ -1 +1 @@ -CONFIG_ANDROID_BINDER_IPC=y +CONFIG_ANDROID_BINDER_IPC_RUST=y
Signature · 1 line
2.55.0
Greg Kroah-Hartman
maintainerQuoted 88 lines · Greg Kroah-Hartman
When the .c binder code was removed, building the kernel if the rust binder code was enabled, will cause the binder to not be built at all as the option changed from .c to .rs which is probably not what the original build wanted.
Fix this up by renaming the option back to the
_RUSTversion. If in the future, that suffix wants to be dropped, we can do so and then it will be prompted for a choice again, but for this release cycle, it should stay as-is.Fixes binder: rm -f binder.cSigned-off-by Greg Kroah-Hartman <[email protected]>--- drivers/android/Kconfig | 4 ++-- drivers/android/Makefile | 2 +- drivers/android/binder/Makefile | 2 +- tools/testing/selftests/filesystems/binderfs/binderfs_test.c | 2 +- tools/testing/selftests/filesystems/binderfs/config | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)drivers/android/Kconfig +2
-2@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 menu "Android" -config ANDROID_BINDER_IPC +config ANDROID_BINDER_IPC_RUST bool "Android Binder IPC Driver" depends on MMU depends on NET@@ -17,7 +17,7 @@ config ANDROID_BINDER_IPC config ANDROID_BINDER_DEVICES string "Android Binder devices" - depends on ANDROID_BINDER_IPC + depends on ANDROID_BINDER_IPC_RUST default "binder,hwbinder,vndbinder" help Default value for the binder.devices parameter.drivers/android/Makefile +1
-1@@ -1,4 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only ccflags-y += -I$(src) # needed for trace events -obj-$(CONFIG_ANDROID_BINDER_IPC) += binder/ +obj-$(CONFIG_ANDROID_BINDER_IPC_RUST_RUST) += binder/drivers/android/binder/Makefile +1
-1@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only ccflags-y += -I$(src) # needed for trace events -obj-$(CONFIG_ANDROID_BINDER_IPC) += binder.o +obj-$(CONFIG_ANDROID_BINDER_IPC_RUST) += binder.o binder-y := \ rust_binder_main.o \ rust_binderfs.o \tools/testing/selftests/filesystems/binderfs/binderfs_test.c +1
-1@@ -414,7 +414,7 @@ TEST(binderfs_stress) ret =mount (NULL , binderfs_mntpt,"binder" ,0 ,0 ); ASSERT_EQ(ret, 0) { -TH_LOG ("%s - Failed to mount binderfs, check if CONFIG_ANDROID_BINDER_IPC is enabled in the running kernel" , +TH_LOG ("%s - Failed to mount binderfs, check if CONFIG_ANDROID_BINDER_IPC_RUST is enabled in the running kernel" ,strerror (errno)); }tools/testing/selftests/filesystems/binderfs/config +1
-1@@ -1 +1 @@ -CONFIG_ANDROID_BINDER_IPC=y +CONFIG_ANDROID_BINDER_IPC_RUST=ySignature · 1 line
2.55.0
This fixes up my build issues, can you test it out before/after applying the removal patch and see if it keeps building the rust binder properly?
thanks,
greg k-h