From b2b0105667237db714950db400fbbe3f82cb667b Mon Sep 17 00:00:00 2001 From: Mandl Date: Fri, 5 Jan 2018 00:58:22 +0100 Subject: [PATCH] Fix compile 4.4.0-104-generic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ubuntu 16.04.3 LTS ddbridge-main.c:41:38: error: expected ‘;’ before ‘{’ token for_each_pci_msi_entry(entry, dev) { ddbridge-main.c:52:31: error: dereferencing pointer to incomplete type ‘struct msi_desc’ if (WARN_ON_ONCE(nr >= entry->nvec_used)) --- ddbridge/Kbuild | 4 +++- ddbridge/ddbridge-main.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ddbridge/Kbuild b/ddbridge/Kbuild index d5a3f25..7f882e5 100644 --- a/ddbridge/Kbuild +++ b/ddbridge/Kbuild @@ -8,4 +8,6 @@ obj-$(CONFIG_DVB_OCTONET) += octonet.o EXTRA_CFLAGS += -Idrivers/media/dvb/frontends -Idrivers/media/dvb-frontends EXTRA_CFLAGS += -Idrivers/media/common/tuners -NOSTDINC_FLAGS += -I$(SUBDIRS)/frontends -I$(SUBDIRS)/include -I$(SUBDIRS)/dvb-core \ No newline at end of file +NOSTDINC_FLAGS += -I$(SUBDIRS)/frontends -I$(SUBDIRS)/include -I$(SUBDIRS)/dvb-core +EXTRA_CFLAGS += -Wno-error=implicit-function-declaration + diff --git a/ddbridge/ddbridge-main.c b/ddbridge/ddbridge-main.c index 67159e3..92ae3ef 100644 --- a/ddbridge/ddbridge-main.c +++ b/ddbridge/ddbridge-main.c @@ -25,6 +25,7 @@ #include "ddbridge-io.h" #ifdef CONFIG_PCI_MSI +#include static int msi = 1; module_param(msi, int, 0444); MODULE_PARM_DESC(msi,