linux/drivers/isdn/capi
Arnd Bergmann 91188544af isdn: kcapi: don't build unused procfs code
The procfs file is completely unused without CONFIG_PROC_FS but causes
a compile time warning:

drivers/isdn/capi/kcapi_proc.c:97:36: error: unused variable 'seq_controller_ops' [-Werror,-Wunused-const-variable]
static const struct seq_operations seq_controller_ops = {
drivers/isdn/capi/kcapi_proc.c:104:36: error: unused variable 'seq_contrstats_ops' [-Werror,-Wunused-const-variable]
drivers/isdn/capi/kcapi_proc.c:179:36: error: unused variable 'seq_applications_ops' [-Werror,-Wunused-const-variable]
drivers/isdn/capi/kcapi_proc.c:186:36: error: unused variable 'seq_applstats_ops' [-Werror,-Wunused-const-variable]

Remove the file from the build in that config and make the calls into
it conditional instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240403080702.3509288-27-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-05 22:11:28 -07:00
..
capi.c isdn: capi: make capi_class constant 2024-03-07 20:26:24 -08:00
capiutil.c isystem: ship and use stdarg.h 2021-08-19 09:02:55 +09:00
kcapi_proc.c proc: mandate ->proc_lseek in "struct proc_ops" 2021-05-06 19:24:11 -07:00
kcapi.c isdn: kcapi: don't build unused procfs code 2024-04-05 22:11:28 -07:00
kcapi.h
Kconfig isdn/capi: Replace HTTP links with HTTPS ones 2020-07-13 17:25:35 -07:00
Makefile isdn: kcapi: don't build unused procfs code 2024-04-05 22:11:28 -07:00