Commit eba4f554 authored by Natanael Copa's avatar Natanael Copa
Browse files

*/*-vanilla: remove linux-vanilla. replaced by linux-lts

Users should use linux-lts. We remove linux-vanilla to reduce
reduce the maintenance burden.
parent 93a22829
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# Jool version
# Keep _ver in sync with community/jool-tools!
# When changing _ver we *must* bump _rel!
_name=jool-modules
_ver=4.0.6
_rel=0
# For custom kernels set $FLAVOR.
_flavor="$FLAVOR"
_extra_flavors=""
if [ -z "$FLAVOR" ]; then
_flavor=vanilla
case $CARCH in
x86 | x86_64) _extra_flavors="virt";;
esac
fi
# Kernel version
# Keep in sync with main/linux-vanilla!
_kpkg=linux-$_flavor
_kver=4.19.90
_krel=0
_kpkgver="$_kver-r$_krel"
pkgname=$_name-$_flavor
pkgver=$_kver
pkgrel=$(( $_krel + $_rel ))
pkgdesc="SIIT and NAT64 for Linux (kernel modules for linux-$_flavor)"
url="https://jool.mx"
arch="all"
license="GPL-2.0-or-later"
depends="$_kpkg=$_kpkgver"
makedepends="$_kpkg-dev=$_kpkgver linux-headers"
install_if="$_kpkg=$_kpkgver jool-tools"
subpackages=""
source="https://github.com/NICMx/Jool/releases/download/v$_ver/jool-$_ver.tar.gz"
builddir="$srcdir/jool-$_ver"
options="!check" # no tests provided
for _f in $_extra_flavors; do
makedepends="$makedepends linux-$_f-dev=$_kpkgver"
subpackages="$subpackages $_name-$_f:_extra"
done
prepare() {
default_prepare
if [ -z "$FLAVOR" ]; then
( . "$startdir"/../../main/linux-$_flavor/APKBUILD
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
[ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
return 0
)
fi
local flavor; for flavor in $_flavor $_extra_flavors; do
cp -r "$builddir" "$srcdir"/$flavor
done
}
build() {
unset LDFLAGS
local flavor; for flavor in $_flavor $_extra_flavors; do
make -C "$srcdir"/"$flavor"/src/mod \
MODULES_DIR="/lib/modules/$_kver-$_krel-$flavor"
done
}
package() {
_modules_install "$_flavor" "$pkgdir"
}
_extra() {
local flavor=${subpkgname##*-}
depends="linux-$flavor=$_kpkgver"
install_if="linux-$flavor=$_kpkgver jool-tools"
pkgdesc="SIIT and NAT64 for Linux (kernel modules for linux-$flavor)"
_modules_install "$flavor" "$subpkgdir"
}
_modules_install() {
local flavor="$1"
local destdir="$2"
make -C "$srcdir"/$flavor/src/mod modules_install \
MODULES_DIR=/lib/modules/$_kver-$_krel-$flavor \
INSTALL_MOD_PATH="$destdir"
}
sha512sums="8648cc876d801b34c4bc9616da642727d1e49ed2937daa7fdca58c0fd80dbd1c432018af410c44c1d24224aba5289f726f43adc259cdf8193832d39a86d0f6a6 jool-4.0.6.tar.gz"
# Maintainer: Ben Allen <bensallen@me.com>
# Contributor: Ben Allen <bensallen@me.com>
# when changing _ver we *must* bump _rel
_name=virtualbox-guest-modules
_ver=6.0.14
_rel=0
_flavor=${FLAVOR:-vanilla}
_kpkg=linux-$_flavor
_kver=4.19.90
_krel=0
_kpkgver="$_kver-r$_krel"
_kabi=$_kver-$_krel-$_flavor
_kabi_virt=$_kver-$_krel-virt
pkgname=$_name-$_flavor
pkgver=$_kver
pkgrel=$(($_krel + $_rel))
pkgdesc="VirtualBox Additions guest kernel modules for $_flavor"
arch='x86_64' # seems to fail on x86: https://github.com/alpinelinux/aports/pull/8215#issuecomment-496630776
url='https://virtualbox.org/'
license="GPL-2.0 custom"
makedepends="linux-vanilla-dev=$_kpkgver linux-virt-dev=$_kpkgver sed coreutils"
subpackages="$_name-virt:virt"
source="https://download.virtualbox.org/virtualbox/$_ver/VirtualBox-$_ver.tar.bz2
"
install_if="linux-$_flavor=$_kpkgver virtualbox-guest-additions"
builddir="$srcdir"/VirtualBox-$_ver
prepare() {
local i
cd "$builddir"
default_prepare
# verify the kernel version
local _kapkbuild=../../main/linux-$_flavor-/APKBUILD
if [ -f $_kapkbuild ]; then
( . $_kapkbuild
pkgname=$_name-$_flavor
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
[ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
return 0
)
fi
KERN_VER=$_kabi "$builddir"/src/VBox/Additions/linux/export_modules.sh \
"$srcdir/vbox-kmod-$_ver.tar.gz"
for i in $_kabi $_kabi_virt; do
mkdir -p "$srcdir/$i"
tar -C "$srcdir/$i" -zxf "$srcdir"/vbox-kmod-$_ver.tar.gz
done
}
build() {
local i
for i in $_kabi $_kabi_virt; do
cd "$srcdir/$i"
# Build Kernel Modules
msg "Build for $i"
make KERN_DIR=/lib/modules/${i}/build all
done
}
check() {
local i
for i in $_kabi $_kabi_virt; do
cd "$srcdir/$i"
make KERN_DIR=/lib/modules/${i}/build check
done
}
package() {
local i module=
for i in $_kabi $_kabi_virt; do
cd "$srcdir/$i"
for module in *.ko; do
install -v -D -m644 ${module} \
"$pkgdir/lib/modules/$i/misc/${module}"
done
done
}
virt() {
pkgdesc="VirtualBox Additions kernel modules for virt"
install_if="linux-virt=$_kpkgver virtualbox-guest-additions"
mkdir -p "$subpkgdir"/lib/modules/
# vboxvideo.ko won't load with virt kernel as it doesn't have DRM
rm "$pkgdir"/lib/modules/$_kabi_virt/misc/vboxvideo.ko
mv "$pkgdir"/lib/modules/$_kabi_virt \
"$subpkgdir"/lib/modules/
}
sha512sums="e1a64c6633987e178b368dc17e738c6fbef4ab262c574188819f1186bf33f38d8c5accd6a566279a12ccd3544bab4ee5a1f8dce7c8c56d7373489c5ff7f8556d VirtualBox-6.0.14.tar.bz2"
diff --git a/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c b/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
index bd81000..aa9d6b0 100644
--- a/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
+++ b/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
@@ -958,7 +958,7 @@ EXPORT_SYMBOL(VBoxGuestIDCCall);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
/** log and dbg_log parameter setter. */
-static int vgdrvLinuxParamLogGrpSet(const char *pszValue, struct kernel_param *pParam)
+static int vgdrvLinuxParamLogGrpSet(const char *pszValue, const struct kernel_param *pParam)
{
if (g_fLoggerCreated)
{
@@ -973,7 +973,7 @@ static int vgdrvLinuxParamLogGrpSet(const char *pszValue, struct kernel_param *p
}
/** log and dbg_log parameter getter. */
-static int vgdrvLinuxParamLogGrpGet(char *pszBuf, struct kernel_param *pParam)
+static int vgdrvLinuxParamLogGrpGet(char *pszBuf, const struct kernel_param *pParam)
{
PRTLOGGER pLogger = pParam->name[0] == 'd' ? RTLogDefaultInstance() : RTLogRelGetDefaultInstance();
*pszBuf = '\0';
@@ -984,7 +984,7 @@ static int vgdrvLinuxParamLogGrpGet(char *pszBuf, struct kernel_param *pParam)
/** log and dbg_log_flags parameter setter. */
-static int vgdrvLinuxParamLogFlagsSet(const char *pszValue, struct kernel_param *pParam)
+static int vgdrvLinuxParamLogFlagsSet(const char *pszValue, const struct kernel_param *pParam)
{
if (g_fLoggerCreated)
{
@@ -998,7 +998,7 @@ static int vgdrvLinuxParamLogFlagsSet(const char *pszValue, struct kernel_param
}
/** log and dbg_log_flags parameter getter. */
-static int vgdrvLinuxParamLogFlagsGet(char *pszBuf, struct kernel_param *pParam)
+static int vgdrvLinuxParamLogFlagsGet(char *pszBuf, const struct kernel_param *pParam)
{
PRTLOGGER pLogger = pParam->name[0] == 'd' ? RTLogDefaultInstance() : RTLogRelGetDefaultInstance();
*pszBuf = '\0';
@@ -1009,7 +1009,7 @@ static int vgdrvLinuxParamLogFlagsGet(char *pszBuf, struct kernel_param *pParam)
/** log and dbg_log_dest parameter setter. */
-static int vgdrvLinuxParamLogDstSet(const char *pszValue, struct kernel_param *pParam)
+static int vgdrvLinuxParamLogDstSet(const char *pszValue, const struct kernel_param *pParam)
{
if (g_fLoggerCreated)
{
@@ -1023,7 +1023,7 @@ static int vgdrvLinuxParamLogDstSet(const char *pszValue, struct kernel_param *p
}
/** log and dbg_log_dest parameter getter. */
-static int vgdrvLinuxParamLogDstGet(char *pszBuf, struct kernel_param *pParam)
+static int vgdrvLinuxParamLogDstGet(char *pszBuf, const struct kernel_param *pParam)
{
PRTLOGGER pLogger = pParam->name[0] == 'd' ? RTLogDefaultInstance() : RTLogRelGetDefaultInstance();
*pszBuf = '\0';
@@ -1034,7 +1034,7 @@ static int vgdrvLinuxParamLogDstGet(char *pszBuf, struct kernel_param *pParam)
/** r3_log_to_host parameter setter. */
-static int vgdrvLinuxParamR3LogToHostSet(const char *pszValue, struct kernel_param *pParam)
+static int vgdrvLinuxParamR3LogToHostSet(const char *pszValue, const struct kernel_param *pParam)
{
if ( pszValue == NULL
|| *pszValue == '\0'
@@ -1052,7 +1052,7 @@ static int vgdrvLinuxParamR3LogToHostSet(const char *pszValue, struct kernel_par
}
/** r3_log_to_host parameter getter. */
-static int vgdrvLinuxParamR3LogToHostGet(char *pszBuf, struct kernel_param *pParam)
+static int vgdrvLinuxParamR3LogToHostGet(char *pszBuf, const struct kernel_param *pParam)
{
strcpy(pszBuf, g_DevExt.fLoggingEnabled ? "enabled" : "disabled");
return strlen(pszBuf);
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
# wireguard version
_ver=0.0.20191212
_rel=0
# kernel version
_kver=4.19.90
_krel=0
_kpkgver="$_kver-r$_krel"
# for custom kernels set $FLAVOR
_extra_flavors=
if [ -z "$FLAVOR" ]; then
_flavor=vanilla
case $CARCH in
x86|x86_64) _extra_flavors="virt";;
esac
else
_flavor=$FLAVOR
fi
_kpkg=linux-$_flavor
pkgname=wireguard-$_flavor
pkgver=$_kver
pkgrel=$(( $_rel + $_krel))
pkgdesc="Next generation secure network tunnel: kernel modules for $_flavor"
arch="all"
url="https://www.wireguard.com"
license="GPL-2.0"
depends="linux-$_flavor=$_kpkgver"
makedepends="
libmnl-dev
linux-$_flavor-dev=$_kpkgver
linux-firmware-none
"
install_if="wireguard-tools-wg=$_ver-r$_rel linux-$_flavor=$_kpkgver"
options="!check"
source="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$_ver.tar.xz"
builddir="$srcdir"/WireGuard-$_ver
for f in $_extra_flavors; do
makedepends="$makedepends linux-$f-dev=$_kpkgver"
subpackages="$subpackages wireguard-$f:_extra"
done
prepare() {
default_prepare
if [ -z "$FLAVOR" ]; then
( . "$startdir"/../../main/linux-$_flavor/APKBUILD
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
[ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
return 0
)
fi
local flavor=
for flavor in $_flavor $_extra_flavors; do
cp -r "$builddir" "$srcdir"/$flavor
done
}
build() {
unset LDFLAGS
local flavor= kabi=
for flavor in $_flavor $_extra_flavors; do
kabi="$_kver-$_krel-$flavor"
make -C "$srcdir/$flavor"/src \
KERNELDIR=/lib/modules/$kabi/build module
done
}
package() {
local kabi="$_kver-$_krel-$_flavor"
install -Dm644 "$srcdir"/$_flavor/src/wireguard.ko \
"$pkgdir/lib/modules/$kabi/extra/wireguard.ko"
}
_extra() {
flavor=${subpkgname##*-}
depends="linux-$flavor=$_kpkgver"
install_if="wireguard-tools-wg=$_ver-r$_rel linux-$flavor=$_kpkgver"
pkgdesc="Next generation secure network tunnel: kernel modules for $flavor"
local kabi="$_kver-$_krel-$flavor"
install -Dm644 "$srcdir"/virt/src/wireguard.ko \
"$subpkgdir/lib/modules/$kabi/extra/wireguard.ko"
}
sha512sums="3e6b3841c72f0b30dab6e61ba07a865c5601617047f90a228cefc4ed6eb0511b9c76d745df9a89dfc71791937e1268bbc0b1cfa6f7291b77a4db0f2fb14d272a WireGuard-0.0.20191212.tar.xz"
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
# when changing _ver we *must* bump _rel
_name=dahdi-linux
_ver=3.0.0
_rel=0
_flavor=${FLAVOR:-vanilla}
_kpkg=linux-$_flavor
_kver=4.19.90
_krel=0
_kpkgver="$_kver-r$_krel"
_kabi="$_kver-$_krel-$_flavor"
pkgname=$_name-$_flavor
pkgver=$_kver
pkgrel=$(( $_krel + $_rel ))
pkgdesc="Digium Asterisk Hardware Device Interface drivers $_ver"
url="http://www.asterisk.org"
arch="x86 x86_64"
license="GPL-2.0"
depends="dahdi-linux $_kpkg=$_kpkgver"
# we need wget and tar because make install downloads firmware and uses fancy
# options for tar and wget.
makedepends="$_kpkg-dev=$_kpkgver wget tar perl"
subpackages="$pkgname-dev"
options="net"
#provides="${_name}-grsec=${pkgver}-r${pkgrel}"
source="http://downloads.digium.com/pub/telephony/dahdi-linux/releases/${_name}-$_ver.tar.gz
dahdi-depmod.patch
dahdi-bri_dchan.patch
dahdi-zaphfc.patch
zaphfc-dahdi-flortz.patch
zaphfc-dahdi-2.4.0.patch
zaphfc-dahdi-2.5.0.patch
zaphfc-dahdi-2.6.0.patch
zaphfc-dahdi-2.7.0.patch
"
builddir="$srcdir/$_name-$_ver"
# grsec legacy
[ "$_flavor" = "hardened" ] && provides="$_name-grsec=$pkgver-r$pkgrel"
prepare() {
default_prepare
# verify the kernel version
local _kapkbuild=../../main/linux-$_flavor/APKBUILD
if [ -f $_kapkbuild ]; then
( . $_kapkbuild
pkgname=$_name-$_flavor
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
[ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
return 0
)
fi
}
build() {
cd "$srcdir/$_name-$_ver"
make KVERS="${_kabi}" DYNFS="yes" MODULES_EXTRA="zaphfc"
}
package() {
cd "$srcdir/$_name-$_ver"
make KVERS="${_kabi}" DYNFS="yes" MODULES_EXTRA="zaphfc" \
DESTDIR="$pkgdir" install-modules
rm -rf "$pkgdir"/lib/firmware "$pkgdir"/usr/lib/hotplug/firmware \
"$pkgdir"/usr/include || true
}
# since we sourced the APKBUILD above we got the dev() function there to
# so we override it again.
depends_dev="dahdi-linux-dev"
dev() {
default_dev
local dir="$subpkgdir"/usr/src/dahdi-headers-${_kabi}
install -D "$srcdir"/$_name-$_ver/drivers/dahdi/Module.symvers \
"$dir"/drivers/dahdi/Module.symvers
ln -s /usr/include "$dir"/include
}
sha512sums="7c281059f4c8faf3733f7790dc184d810a4a2839ceaa79d6190128bea182db38bc293f04a996254950531abea5532cb030d50265cd044e0847f1e8ece7b15395 dahdi-linux-3.0.0.tar.gz
aba01eb90d9db1c595ff22078c76aadb20900486b5794d38b7ee61fa30d2fb51be318a4d059246017640447aee03fb09bb5514c818e3caa1cd98e331ec065173 dahdi-depmod.patch
fa2fa9e96eefc0f31a1a4a8f8f44e77936f6da0d7b74fe3c3d1f0de085621744ae4367932ac97a10b7f96b7d0954843b0bfe07a251b85434079cc6da29e243ba dahdi-bri_dchan.patch
8ef31c9723237da83954832df5aee1f5daa23f8fefe07a1a191a2c5da2c2308001d68cee83500f7ef43166bfc0d65552b0ca5362789c5c82a7217e09362fd5fe dahdi-zaphfc.patch
f18043fd18a05be7e49daa9d8c96c8a8c45936b14e82e30523e4d88b1620a73147f765d24d2038c4ec0855901e36e8e2b188d596f94437dfb80f6d76ab699d9d zaphfc-dahdi-flortz.patch
8068fcbba81b819bbd14a1a324457d0febd5350d16c6443be035c50f7759010376bd92d3c7ea69b47309e02603e587387b643f64663652e162853515371a6da5 zaphfc-dahdi-2.4.0.patch
95811d56f5567bbab1e6fac89fdc7a4d78252a54a416e884903ae2709f8922f5cd02c492de0bad5c35fdfd52250ec231ed11457e36ba33f8747c3226491882de zaphfc-dahdi-2.5.0.patch
7533c640817f71789c922bb9a5a3b6132b5b47958770929b1c9a50a1e2e6de914e278f466a85ef99759e291e5907c56d60926c74075f4e731a9910a46c1be3ea zaphfc-dahdi-2.6.0.patch
daca74da31c655265164a854987d45ca5ee3af1defbe2d49a9f1a70a48a43dc2bc3ceba724781ae29e3a9078b827f641d2e29809fb25101986f2f69c767d1382 zaphfc-dahdi-2.7.0.patch"
--- ./drivers/dahdi/voicebus/voicebus.h.orig
+++ ./drivers/dahdi/voicebus/voicebus.h
@@ -89,7 +89,7 @@
void (*handle_receive)(struct voicebus *vb, struct list_head *buffers);
void (*handle_transmit)(struct voicebus *vb, struct list_head *buffers);
void (*handle_error)(struct voicebus *vb);
-};
+} __no_const;
/**
* struct voicebus_descriptor_list - A single descriptor list.
--- ./drivers/dahdi/wctc4xxp/base.c.orig
+++ ./drivers/dahdi/wctc4xxp/base.c
@@ -3193,7 +3193,7 @@
return ret;
}
-static void wctc4xxp_setup_file_operations(struct file_operations *fops)
+static void wctc4xxp_setup_file_operations(file_operations_no_const *fops)
{
fops->owner = THIS_MODULE;
fops->read = wctc4xxp_read;
Index: dahdi-linux-2.5.0/drivers/dahdi/xpp/card_bri.c
===================================================================
--- dahdi-linux-2.5.0.orig/drivers/dahdi/xpp/card_bri.c 2011-08-15 14:42:29.000000000 +0300
+++ dahdi-linux-2.5.0/drivers/dahdi/xpp/card_bri.c 2011-08-15 14:51:37.000000000 +0300
@@ -274,7 +274,6 @@
int frame_begin;
priv = xpd->priv;
- BUG_ON(!priv);
if(transmit) {
direction = "TX";
frame_begin = priv->txframe_begin;
@@ -312,9 +311,7 @@
{
struct BRI_priv_data *priv;
- BUG_ON(!xpd);
priv = xpd->priv;
- BUG_ON(!priv);
if(priv->dchan_alive == up)
return;
if(up) {
@@ -332,9 +329,7 @@
{
struct BRI_priv_data *priv;
- BUG_ON(!xpd);
priv = xpd->priv;
- BUG_ON(!priv);
if(priv->layer1_up == up)
return;
priv->layer1_up = up;
@@ -348,9 +343,7 @@
struct BRI_priv_data *priv;
byte curr_state;
- BUG_ON(!xpd);
priv = xpd->priv;
- BUG_ON(!priv);
curr_state = priv->state_register.bits.v_su_sta;
XPD_DBG(SIGNAL, xpd, "%s\n", (on)?"ON":"OFF");
if(on) {
@@ -391,9 +384,7 @@
struct BRI_priv_data *priv;
byte curr_state;
- BUG_ON(!xpd);
priv = xpd->priv;
- BUG_ON(!priv);
curr_state = priv->state_register.bits.v_su_sta;
XPD_DBG(SIGNAL, xpd, "%s\n", (on)?"ON":"OFF");
if(on) {
@@ -443,7 +434,6 @@
struct BRI_priv_data *priv;
priv = xpd->priv;
- BUG_ON(!priv);
#ifdef CONFIG_DAHDI_BRI_DCHANS
if(debug & DBG_COMMANDS)
dump_hex_buf(xpd, "D-Chan(abort) RX: dchan_rbuf",
@@ -460,7 +450,6 @@
byte status;
priv = xpd->priv;
- BUG_ON(!priv);
#ifdef CONFIG_DAHDI_BRI_DCHANS
if(priv->dchan_r_idx < 4) {
XPD_NOTICE(xpd, "D-Chan RX short frame (dchan_r_idx=%d)\n",
@@ -503,7 +492,6 @@
int idx;
priv = xpd->priv;
- BUG_ON(!priv);
dchan_buf = dchan->readchunk;
idx = priv->dchan_r_idx;
if(idx + len >= DCHAN_BUFSIZE) {
@@ -527,7 +515,6 @@
struct BRI_priv_data *priv;
priv = xpd->priv;
- BUG_ON(!priv);
#ifdef CONFIG_DAHDI_BRI_DCHANS
dchan->bytes2receive = priv->dchan_r_idx - 1;
dchan->eofrx = 1;
@@ -556,10 +543,7 @@
return 0;
if(!SPAN_REGISTERED(xpd)) /* Nowhere to copy data */
return 0;
- BUG_ON(!xpd);
priv = xpd->priv;
- BUG_ON(!priv);
- xbus = xpd->xbus;
dchan = XPD_CHAN(xpd, 2);
if(!IS_OFFHOOK(xpd, 2)) { /* D-chan is used? */
static int rate_limit;
@@ -629,9 +613,7 @@
return 0;
if(!SPAN_REGISTERED(xpd)) /* Nowhere to copy data */
return 0;
- BUG_ON(!xpd);
priv = xpd->priv;
- BUG_ON(!priv);
dchan = XPD_CHAN(xpd, 2);
if(!IS_OFFHOOK(xpd, 2)) { /* D-chan is used? */
static int rate_limit;
@@ -677,7 +659,6 @@
struct BRI_priv_data *priv;
priv = xpd->priv;
- BUG_ON(!priv);
dchan = XPD_CHAN(xpd, 2);
if (dchan == chan) {
atomic_inc(&priv->hdlc_pending);
@@ -716,7 +697,6 @@
int ret;
priv = xpd->priv;
- BUG_ON(!priv);
#ifndef CONFIG_DAHDI_BRI_DCHANS
if(atomic_read(&priv->hdlc_pending) == 0)
return 0;
@@ -769,7 +749,6 @@
{
struct BRI_priv_data *priv;
- BUG_ON(!xpd);
priv = xpd->priv;
XPD_DBG(PROC, xpd, "\n");
#ifdef CONFIG_PROC_FS
@@ -784,7 +763,6 @@