mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 19:23:57 +08:00
9bb218828c
Normally the debugfs framework will return error pointer with -ENODEV for function calls when DEBUG_FS is not set. batman does not notice this error code and continues trying to create debugfs files and executes more code. We can avoid this code execution by disabling compiling debugfs.c when DEBUG_FS is not set. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
40 lines
1.4 KiB
Makefile
40 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2007-2015 B.A.T.M.A.N. contributors:
|
|
#
|
|
# Marek Lindner, Simon Wunderlich
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of version 2 of the GNU General Public
|
|
# License as published by the Free Software Foundation.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
obj-$(CONFIG_BATMAN_ADV) += batman-adv.o
|
|
batman-adv-y += bat_iv_ogm.o
|
|
batman-adv-y += bitarray.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_BLA) += bridge_loop_avoidance.o
|
|
batman-adv-$(CONFIG_DEBUG_FS) += debugfs.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_DAT) += distributed-arp-table.o
|
|
batman-adv-y += fragmentation.o
|
|
batman-adv-y += gateway_client.o
|
|
batman-adv-y += gateway_common.o
|
|
batman-adv-y += hard-interface.o
|
|
batman-adv-y += hash.o
|
|
batman-adv-y += icmp_socket.o
|
|
batman-adv-y += main.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_NC) += network-coding.o
|
|
batman-adv-y += originator.o
|
|
batman-adv-y += routing.o
|
|
batman-adv-y += send.o
|
|
batman-adv-y += soft-interface.o
|
|
batman-adv-y += sysfs.o
|
|
batman-adv-y += translation-table.o
|
|
batman-adv-$(CONFIG_BATMAN_ADV_MCAST) += multicast.o
|