[Fairphone 1] elchi1234:
I have got the same error.

But it seems to work for me if I remove a few lines.

Edit fs/file_table.c.

[...]
#include "internal.h"

[Remove the code that is here. Do not remove the lines above and below!]

/* sysctl tunables... */
struct files_stat_struct files_stat = {
.max_files = NR_FILE
};
[...]

It doesn't exist in the original kernel source, either.

Edit:

The next error:

CC [M] mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.o
In file included from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_os.h:585:0,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/include/precomp.h:173,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:948:
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c: In function 'wlanReleasePendingOid':
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_kal.h:1860:1: error: inlining failed in call to always_inline 'kalOidComplete': function body not available
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:2355:35: error: called from here
In file included from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_os.h:585:0,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/include/precomp.h:173,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:948:
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c: In function 'wlanReleaseCommand':
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_kal.h:1860:1: error: inlining failed in call to always_inline 'kalOidComplete': function body not available
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:2274:27: error: called from here
In file included from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_os.h:585:0,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/include/precomp.h:173,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:948:
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c: In function 'wlanProcessCommandQueue':
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_kal.h:1860:1: error: inlining failed in call to always_inline 'kalOidComplete': function body not available
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:2097:39: error: called from here
In file included from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_os.h:585:0,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/include/precomp.h:173,
from mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:948:
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c: In function 'wlanReleasePendingCMDbyNetwork':
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/include/gl_kal.h:1860:1: error: inlining failed in call to always_inline 'kalOidComplete': function body not available
mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/common/wlan_lib.c:2427:35: error: called from here

Edit:

And I found this in the changelog:

???

Edit:

But it does exist in mediatek/kernel/drivers/combo/drv_wlan/mt6628/wlan/os/linux/gl_kal.c :

VOID
kalOidComplete (
IN P_GLUE_INFO_T prGlueInfo,
IN BOOLEAN fgSetQuery,
IN UINT_32 u4SetQueryInfoLen,
IN WLAN_STATUS rOidStatus
)
{

ASSERT(prGlueInfo);
/* remove timeout check timer */
wlanoidClearTimeoutCheck(prGlueInfo->prAdapter);

//if (prGlueInfo->u4TimeoutFlag != 1) {
prGlueInfo->rPendStatus = rOidStatus;
complete(&prGlueInfo->rPendComp);
prGlueInfo->u4OidCompleteFlag = 1;
//}
/* else let it timeout on kalIoctl entry */
}