[Xiaomi Mi A1 ROMs, Kernels, Recoveries, & Other De] nicolasmart:
Nope, it's not the same error. Here are the errors that I have:

root@pop-os:~/android_kernel_xiaomi_tissot# make -k
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm64/kernel/bootinfo.o
In file included from arch/arm64/kernel/bootinfo.c:18:0:
include/linux/qpnp/power-on.h:99:1: error: expected identifier or '(' before '+' token
+static inline int qpnp_pon_is_lpk(void) { return -ENODEV; }
^
include/linux/qpnp/power-on.h:100:1: error: expected identifier or '(' before '+' token
+static inline int qpnp_pon_is_ps_hold_reset(void) { return -ENODEV; }
^
arch/arm64/kernel/bootinfo.c: In function 'powerup_reason_show':
arch/arm64/kernel/bootinfo.c:83:3: error: implicit declaration of function 'qpnp_pon_is_ps_hold_reset' [-Werror=implicit-function-declaration]
&& qpnp_pon_is_ps_hold_reset()) ||
^
arch/arm64/kernel/bootinfo.c:95:2: error: implicit declaration of function 'qpnp_pon_is_lpk' [-Werror=implicit-function-declaration]
if (qpnp_pon_is_lpk() &&
^
In file included from arch/arm64/kernel/bootinfo.c:18:0:
arch/arm64/kernel/bootinfo.c: At top level:
include/linux/qpnp/power-on.h:77:12: warning: 'qpnp_pon_system_pwr_off' defined but not used [-Wunused-function]
error, forbidden warning: power-on.h:77
make[1]: *** [scripts/Makefile.build:258: arch/arm64/kernel/bootinfo.o] Error 1
make[1]: Target '__build' not remade because of errors.
make: *** [Makefile:941: arch/arm64/kernel] Error 2
CC arch/arm64/mm/dma-mapping.o
In file included from ./arch/arm64/include/asm/dma-iommu.h:12:0,
from arch/arm64/mm/dma-mapping.c:33:
include/linux/dma-mapping-fast.h:46:15: warning: 'struct dma_iommu_mapping' declared inside parameter list
error, forbidden warning: dma-mapping-fast.h:46
make[1]: *** [scripts/Makefile.build:258: arch/arm64/mm/dma-mapping.o] Error 1
CC arch/arm64/mm/mmap.o
arch/arm64/mm/mmap.c: In function 'arch_mmap_rnd':
arch/arm64/mm/mmap.c:62:2: warning: 'rnd' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: mmap.c:62
make[1]: *** [scripts/Makefile.build:258: arch/arm64/mm/mmap.o] Error 1
make[1]: Target '__build' not remade because of errors.
make: *** [Makefile:941: arch/arm64/mm] Error 2
CC kernel/time/posix-cpu-timers.o
kernel/time/posix-cpu-timers.c: In function 'set_process_cpu_timer':
kernel/time/posix-cpu-timers.c:1220:13: warning: 'now' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: posix-cpu-timers.c:1220
make[2]: *** [scripts/Makefile.build:258: kernel/time/posix-cpu-timers.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [scripts/Makefile.build:402: kernel/time] Error 2
CHK kernel/config_data.h
make[1]: Target '__build' not remade because of errors.
make: *** [Makefile:941: kernel] Error 2
CC fs/jbd/journal.o
fs/jbd/journal.c: In function 'journal_init_inode':
fs/jbd/journal.c:855:15: warning: 'blocknr' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: journal.c:855
make[2]: *** [scripts/Makefile.build:258: fs/jbd/journal.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [scripts/Makefile.build:402: fs/jbd] Error 2
make[1]: Target '__build' not remade because of errors.
make: *** [Makefile:941: fs] Error 2
CC drivers/mmc/card/block.o
In file included from drivers/mmc/card/block.c:47:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
In file included from include/linux/kernel.h:13:0,
from include/linux/moduleparam.h:6,
from drivers/mmc/card/block.c:20:
drivers/mmc/card/block.c: In function 'mmc_blk_cmdq_reset_all':
drivers/mmc/card/block.c:2986:31: error: 'struct mmc_host' has no member named 'clk_requests'
ctx_info->active_reqs, host->clk_requests);
^
include/linux/printk.h:272:38: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/card/block.o] Error 1
CC drivers/mmc/card/queue.o
In file included from drivers/mmc/card/queue.c:23:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/card/queue.o] Error 1
CC [M] drivers/mmc/card/mmc_block_test.o
In file included from drivers/mmc/card/mmc_block_test.c:21:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:264: drivers/mmc/card/mmc_block_test.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:402: drivers/mmc/card] Error 2
CC drivers/mmc/core/core.o
In file included from drivers/mmc/core/core.c:39:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/core.o] Error 1
CC drivers/mmc/core/bus.o
In file included from drivers/mmc/core/bus.c:22:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/bus.o] Error 1
CC drivers/mmc/core/host.o
In file included from drivers/mmc/core/host.c:27:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/host.o] Error 1
CC drivers/mmc/core/mmc.o
In file included from drivers/mmc/core/mmc.c:18:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/mmc.o] Error 1
CC drivers/mmc/core/mmc_ops.o
In file included from drivers/mmc/core/mmc_ops.c:17:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/mmc_ops.o] Error 1
CC drivers/mmc/core/sd.o
In file included from drivers/mmc/core/sd.c:19:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sd.o] Error 1
CC drivers/mmc/core/sd_ops.o
In file included from drivers/mmc/core/sd_ops.c:17:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sd_ops.o] Error 1
CC drivers/mmc/core/sdio.o
In file included from drivers/mmc/core/sdio.c:16:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sdio.o] Error 1
CC drivers/mmc/core/sdio_ops.o
In file included from drivers/mmc/core/sdio_ops.c:14:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sdio_ops.o] Error 1
CC drivers/mmc/core/sdio_bus.o
In file included from drivers/mmc/core/sdio_bus.c:23:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sdio_bus.o] Error 1
CC drivers/mmc/core/sdio_cis.o
In file included from drivers/mmc/core/sdio_cis.c:19:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sdio_cis.o] Error 1
CC drivers/mmc/core/sdio_io.o
In file included from drivers/mmc/core/sdio_io.c:13:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sdio_io.o] Error 1
CC drivers/mmc/core/sdio_irq.o
In file included from drivers/mmc/core/sdio_irq.c:24:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/sdio_irq.o] Error 1
CC drivers/mmc/core/slot-gpio.o
In file included from drivers/mmc/core/slot-gpio.c:16:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/slot-gpio.o] Error 1
CC drivers/mmc/core/debugfs.o
In file included from drivers/mmc/core/debugfs.c:21:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/core/debugfs.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:402: drivers/mmc/core] Error 2
CC drivers/mmc/host/mmci.o
In file included from drivers/mmc/host/mmci.c:25:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/host/mmci.o] Error 1
CC drivers/mmc/host/sdhci.o
In file included from drivers/mmc/host/sdhci.c:29:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
In file included from include/linux/kernel.h:13:0,
from include/linux/delay.h:10,
from drivers/mmc/host/sdhci.c:16:
drivers/mmc/host/sdhci.c: In function 'sdhci_dump_state':
drivers/mmc/host/sdhci.c:97:38: error: 'struct mmc_host' has no member named 'clk_gated'
mmc_hostname(mmc), host->clock, mmc->clk_gated,
^
include/linux/printk.h:247:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
drivers/mmc/host/sdhci.c:101:40: error: 'struct dev_pm_info' has no member named 'runtime_status'
mmc_hostname(mmc), mmc->parent->power.runtime_status,
^
include/linux/printk.h:247:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from include/linux/delay.h:10,
from drivers/mmc/host/sdhci.c:16:
drivers/mmc/host/sdhci.c:102:34: error: 'struct dev_pm_info' has no member named 'usage_count'
atomic_read(&mmc->parent->power.usage_count),
^
include/linux/compiler.h:483:43: note: in definition of macro 'ACCESS_ONCE'
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
^
include/linux/printk.h:247:34: note: in expansion of macro 'atomic_read'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
drivers/mmc/host/sdhci.c:100:2: note: in expansion of macro 'pr_info'
pr_info("%s: rpmstatus[pltfm](runtime-suspend:usage_count:disable_depth)(%d:%d:%d)\n",
^
drivers/mmc/host/sdhci.c:102:34: error: 'struct dev_pm_info' has no member named 'usage_count'
atomic_read(&mmc->parent->power.usage_count),
^
include/linux/compiler.h:483:50: note: in definition of macro 'ACCESS_ONCE'
#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
^
include/linux/printk.h:247:34: note: in expansion of macro 'atomic_read'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
drivers/mmc/host/sdhci.c:100:2: note: in expansion of macro 'pr_info'
pr_info("%s: rpmstatus[pltfm](runtime-suspend:usage_count:disable_depth)(%d:%d:%d)\n",
^
In file included from include/linux/kernel.h:13:0,
from include/linux/delay.h:10,
from drivers/mmc/host/sdhci.c:16:
drivers/mmc/host/sdhci.c:103:21: error: 'struct dev_pm_info' has no member named 'disable_depth'
mmc->parent->power.disable_depth);
^
include/linux/printk.h:247:34: note: in definition of macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/host/sdhci.o] Error 1
CC drivers/mmc/host/mmc_spi.o
In file included from drivers/mmc/host/mmc_spi.c:37:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/host/mmc_spi.o] Error 1
CC drivers/mmc/host/of_mmc_spi.o
In file included from drivers/mmc/host/of_mmc_spi.c:26:0:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/host/of_mmc_spi.o] Error 1
CC drivers/mmc/host/sdhci-pltfm.o
In file included from include/linux/mmc/sdhci.h:19:0,
from drivers/mmc/host/sdhci.h:21,
from drivers/mmc/host/sdhci-pltfm.h:16,
from drivers/mmc/host/sdhci-pltfm.c:37:
include/linux/mmc/host.h:321:39: error: field 'ondemand_gov_data' has incomplete type
struct devfreq_simple_ondemand_data ondemand_gov_data;
^
make[3]: *** [scripts/Makefile.build:258: drivers/mmc/host/sdhci-pltfm.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:402: drivers/mmc/host] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [scripts/Makefile.build:402: drivers/mmc] Error 2
CC drivers/scsi/scsi_pm.o
drivers/scsi/scsi_pm.c: In function 'scsi_dev_type_resume':
drivers/scsi/scsi_pm.c:85:25: error: 'do_scsi_runtime_resume' undeclared (first use in this function)
if (err == 0 && (cb != do_scsi_runtime_resume)) {
^
drivers/scsi/scsi_pm.c:85:25: note: each undeclared identifier is reported only once for each function it appears in
drivers/scsi/scsi_pm.c:98:27: error: 'struct request_queue' has no member named 'dev'
if (sdev->request_queue->dev)
^
make[2]: *** [scripts/Makefile.build:258: drivers/scsi/scsi_pm.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [scripts/Makefile.build:402: drivers/scsi] Error 2
CC drivers/tty/serial/amba-pl011.o
In file included from ./include/uapi/linux/posix_types.h:4:0,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from drivers/tty/serial/amba-pl011.c:37:
drivers/tty/serial/amba-pl011.c: In function 'pl011_shutdown':
include/linux/stddef.h:8:14: error: called object is not a function or function pointer
#define NULL ((void *)0)
^
drivers/tty/serial/amba-pl011.c:1162:32: note: in expansion of macro 'NULL'
#define pl011_dma_flush_buffer NULL
^
drivers/tty/serial/amba-pl011.c:1692:2: note: in expansion of macro 'pl011_dma_flush_buffer'
pl011_dma_flush_buffer(port);
^
make[3]: *** [scripts/Makefile.build:258: drivers/tty/serial/amba-pl011.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:402: drivers/tty/serial] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [scripts/Makefile.build:402: drivers/tty] Error 2
make[1]: Target '__build' not remade because of errors.
make: *** [Makefile:941: drivers] Error 2
CC net/ipv4/tcp_metrics.o
net/ipv4/tcp_metrics.c: In function 'tcp_metrics_nl_cmd_get':
net/ipv4/tcp_metrics.c:81:5: warning: 'saddr.family' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: tcp_metrics.c:81
make[2]: *** [scripts/Makefile.build:258: net/ipv4/tcp_metrics.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [scripts/Makefile.build:402: net/ipv4] Error 2
make[1]: Target '__build' not remade because of errors.
make: *** [Makefile:941: net] Error 2
make: Target '_all' not remade because of errors.

#### make failed to build some targets (19 seconds) ####