mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 23:55:36 +07:00
97139d4a6f
Kernel source files need not include <linux/kconfig.h> explicitly because the top Makefile forces to include it with: -include $(srctree)/include/linux/kconfig.h This commit removes explicit includes except the following: * arch/s390/include/asm/facilities_src.h * tools/testing/radix-tree/linux/kernel.h These two are used for host programs. Link: http://lkml.kernel.org/r/1473656164-11929-1-git-send-email-yamada.masahiro@socionext.com Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
69 lines
1.6 KiB
C
69 lines
1.6 KiB
C
/* Copyright (C) 2010-2016 B.A.T.M.A.N. contributors:
|
|
*
|
|
* Marek Lindner
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
#ifndef _NET_BATMAN_ADV_DEBUGFS_H_
|
|
#define _NET_BATMAN_ADV_DEBUGFS_H_
|
|
|
|
#include "main.h"
|
|
|
|
struct net_device;
|
|
|
|
#define BATADV_DEBUGFS_SUBDIR "batman_adv"
|
|
|
|
#if IS_ENABLED(CONFIG_BATMAN_ADV_DEBUGFS)
|
|
|
|
void batadv_debugfs_init(void);
|
|
void batadv_debugfs_destroy(void);
|
|
int batadv_debugfs_add_meshif(struct net_device *dev);
|
|
void batadv_debugfs_del_meshif(struct net_device *dev);
|
|
int batadv_debugfs_add_hardif(struct batadv_hard_iface *hard_iface);
|
|
void batadv_debugfs_del_hardif(struct batadv_hard_iface *hard_iface);
|
|
|
|
#else
|
|
|
|
static inline void batadv_debugfs_init(void)
|
|
{
|
|
}
|
|
|
|
static inline void batadv_debugfs_destroy(void)
|
|
{
|
|
}
|
|
|
|
static inline int batadv_debugfs_add_meshif(struct net_device *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void batadv_debugfs_del_meshif(struct net_device *dev)
|
|
{
|
|
}
|
|
|
|
static inline
|
|
int batadv_debugfs_add_hardif(struct batadv_hard_iface *hard_iface)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline
|
|
void batadv_debugfs_del_hardif(struct batadv_hard_iface *hard_iface)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _NET_BATMAN_ADV_DEBUGFS_H_ */
|