Skip to content

Instantly share code, notes, and snippets.

@ThEMarD
Created May 16, 2024 14:59
Show Gist options
  • Save ThEMarD/ac8007bd0f3027e9676491a37dc72efa to your computer and use it in GitHub Desktop.
Save ThEMarD/ac8007bd0f3027e9676491a37dc72efa to your computer and use it in GitHub Desktop.
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1305:8: error: arithmetic on a pointer to an incomplete type 'struct mhi_tre'
dev_rp--;
~~~~~~^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1277:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1309:23: error: arithmetic on a pointer to an incomplete type 'struct mhi_tre'
ev_ring->wp = dev_rp - 1;
~~~~~~ ^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1277:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1314:14: error: incomplete definition of type 'struct mhi_tre'
if (WARN_ON(MHI_TRE_GET_EV_TYPE(dev_rp) != MHI_PKT_TYPE_TSYNC_EVENT)) {
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:314:36: note: expanded from macro 'MHI_TRE_GET_EV_TYPE'
#define MHI_TRE_GET_EV_TYPE(tre) ((MHI_TRE_GET_DWORD(tre, 1) >> 16) & 0xFF)
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:302:56: note: expanded from macro 'MHI_TRE_GET_DWORD'
#define MHI_TRE_GET_DWORD(tre, word) (le32_to_cpu((tre)->dword[(word)]))
^
../../../../../../kernel/motorola/sm8550/include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
../../../../../../kernel/motorola/sm8550/include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON'
int __ret_warn_on = !!(condition); \
^~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1277:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1321:13: error: incomplete definition of type 'struct mhi_tre'
sequence = MHI_TRE_GET_EV_SEQ(dev_rp);
^~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:317:33: note: expanded from macro 'MHI_TRE_GET_EV_SEQ'
#define MHI_TRE_GET_EV_SEQ(tre) MHI_TRE_GET_DWORD(tre, 0)
^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:302:56: note: expanded from macro 'MHI_TRE_GET_DWORD'
#define MHI_TRE_GET_DWORD(tre, word) (le32_to_cpu((tre)->dword[(word)]))
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1277:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1322:16: error: incomplete definition of type 'struct mhi_tre'
remote_time = MHI_TRE_GET_EV_TIME(dev_rp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:318:35: note: expanded from macro 'MHI_TRE_GET_EV_TIME'
#define MHI_TRE_GET_EV_TIME(tre) (MHI_TRE_GET_EV_PTR(tre))
^~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:310:51: note: expanded from macro 'MHI_TRE_GET_EV_PTR'
#define MHI_TRE_GET_EV_PTR(tre) (le64_to_cpu((tre)->ptr))
~~~~~~~~~~~~~~~~~^~~~~~
../../../../../../kernel/motorola/sm8550/include/uapi/linux/byteorder/little_endian.h:33:51: note: expanded from macro '__le64_to_cpu'
#define __le64_to_cpu(x) ((__force __u64)(__le64)(x))
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1277:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1416:11: error: incomplete definition of type 'struct mhi_tre'
dev_rp->ptr,
~~~~~~^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.h:80:43: note: expanded from macro 'MHI_VERB'
dev_dbg(dev, "[D][%s] " fmt, __func__, ##__VA_ARGS__); \
^~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/include/linux/dev_printk.h:163:47: note: expanded from macro 'dev_dbg'
dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/include/linux/dev_printk.h:129:34: note: expanded from macro 'dev_printk'
_dev_printk(level, dev, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1416:11: error: incomplete definition of type 'struct mhi_tre'
dev_rp->ptr,
~~~~~~^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.h:83:13: note: expanded from macro 'MHI_VERB'
##__VA_ARGS__); \
^~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1425:8: error: arithmetic on a pointer to an incomplete type 'struct mhi_tre'
dev_rp--;
~~~~~~^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1429:23: error: arithmetic on a pointer to an incomplete type 'struct mhi_tre'
ev_ring->wp = dev_rp - 1;
~~~~~~ ^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1434:14: error: incomplete definition of type 'struct mhi_tre'
if (WARN_ON(MHI_TRE_GET_EV_TYPE(dev_rp) != MHI_PKT_TYPE_BW_REQ_EVENT)) {
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:314:36: note: expanded from macro 'MHI_TRE_GET_EV_TYPE'
#define MHI_TRE_GET_EV_TYPE(tre) ((MHI_TRE_GET_DWORD(tre, 1) >> 16) & 0xFF)
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:302:56: note: expanded from macro 'MHI_TRE_GET_DWORD'
#define MHI_TRE_GET_DWORD(tre, word) (le32_to_cpu((tre)->dword[(word)]))
^
../../../../../../kernel/motorola/sm8550/include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
../../../../../../kernel/motorola/sm8550/include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON'
int __ret_warn_on = !!(condition); \
^~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1440:32: error: incomplete definition of type 'struct mhi_tre'
link_info.target_link_speed = MHI_TRE_GET_EV_LINKSPEED(dev_rp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:321:41: note: expanded from macro 'MHI_TRE_GET_EV_LINKSPEED'
#define MHI_TRE_GET_EV_LINKSPEED(tre) ((MHI_TRE_GET_DWORD(tre, 1) >> 24) & 0xFF)
^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:302:56: note: expanded from macro 'MHI_TRE_GET_DWORD'
#define MHI_TRE_GET_DWORD(tre, word) (le32_to_cpu((tre)->dword[(word)]))
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1441:32: error: incomplete definition of type 'struct mhi_tre'
link_info.target_link_width = MHI_TRE_GET_EV_LINKWIDTH(dev_rp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:322:40: note: expanded from macro 'MHI_TRE_GET_EV_LINKWIDTH'
#define MHI_TRE_GET_EV_LINKWIDTH(tre) (MHI_TRE_GET_DWORD(tre, 0) & 0xFF)
^~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/internal.h:302:56: note: expanded from macro 'MHI_TRE_GET_DWORD'
#define MHI_TRE_GET_DWORD(tre, word) (le32_to_cpu((tre)->dword[(word)]))
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1442:27: error: incomplete definition of type 'struct mhi_tre'
link_info.sequence_num = MHI_TRE_GET_EV_BW_REQ_SEQ(dev_rp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.h:40:47: note: expanded from macro 'MHI_TRE_GET_EV_BW_REQ_SEQ'
#define MHI_TRE_GET_EV_BW_REQ_SEQ(tre) (((tre)->dword[0] >> 8) & 0xFF)
~~~~~^
../../../../../../kernel/motorola/sm8550/drivers/bus/mhi/host/misc.c:1387:9: note: forward declaration of 'struct mhi_tre'
struct mhi_tre *dev_rp;
^
13 errors generated.
make[5]: *** [/home/themard/android/lineage-21/kernel/motorola/sm8550/scripts/Makefile.build:287: drivers/bus/mhi/host/misc.o] Error 1
make[4]: *** [/home/themard/android/lineage-21/kernel/motorola/sm8550/scripts/Makefile.build:549: drivers/bus/mhi/host] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment