mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 08:26:40 +07:00
90926f0e58
Instead of looking up the dentry of an NCCI node again in capifs_free_ncci pass the pointer via the capifs user. This patch also reduces the #ifdef mess in capi.c a bit as far as capifs was causing it. Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: David S. Miller <davem@davemloft.net>
29 lines
658 B
C
29 lines
658 B
C
/* $Id: capifs.h,v 1.1.2.2 2004/01/16 21:09:26 keil Exp $
|
|
*
|
|
* Copyright 2000 by Carsten Paeth <calle@calle.de>
|
|
*
|
|
* This software may be used and distributed according to the terms
|
|
* of the GNU General Public License, incorporated herein by reference.
|
|
*
|
|
*/
|
|
|
|
#include <linux/dcache.h>
|
|
|
|
#if defined(CONFIG_ISDN_CAPI_CAPIFS) || defined(CONFIG_ISDN_CAPI_CAPIFS_MODULE)
|
|
|
|
struct dentry *capifs_new_ncci(unsigned int num, dev_t device);
|
|
void capifs_free_ncci(struct dentry *dentry);
|
|
|
|
#else
|
|
|
|
static inline struct dentry *capifs_new_ncci(unsigned int num, dev_t device)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline void capifs_free_ncci(struct dentry *dentry)
|
|
{
|
|
}
|
|
|
|
#endif
|