Skip to content

Instantly share code, notes, and snippets.

@Demon000
Created January 15, 2023 17:28
Show Gist options
  • Save Demon000/ac280f718d002b1541a519c5f2dc7871 to your computer and use it in GitHub Desktop.
Save Demon000/ac280f718d002b1541a519c5f2dc7871 to your computer and use it in GitHub Desktop.
/mnt/nvmestorage/lineage-20.0/kernel/motorola/sm8475/drivers/gpu/msm/kgsl.c:4808:24: warning: shift count >= width of type [-Wshift-count-overflow]
static u64 dma_mask = DMA_BIT_MASK(64);
^~~~~~~~~~~~~~~~
/mnt/nvmestorage/lineage-20.0/kernel/motorola/sm8475/include/linux/dma-mapping.h:94:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
/mnt/nvmestorage/lineage-20.0/kernel/motorola/sm8475/drivers/gpu/msm/kgsl.c:4848:36: warning: implicit conversion from 'unsigned long long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
dma_set_max_seg_size(device->dev, DMA_BIT_MASK(32));
~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
/mnt/nvmestorage/lineage-20.0/kernel/motorola/sm8475/include/linux/dma-mapping.h:94:40: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^~~~~
/mnt/nvmestorage/lineage-20.0/kernel/motorola/sm8475/drivers/gpu/msm/kgsl.c:4945:36: warning: shift count >= width of type [-Wshift-count-overflow]
dma_set_coherent_mask(&pdev->dev, KGSL_DMA_BIT_MASK);
^~~~~~~~~~~~~~~~~
/mnt/nvmestorage/lineage-20.0/kernel/motorola/sm8475/drivers/gpu/msm/kgsl.c:54:27: note: expanded from macro 'KGSL_DMA_BIT_MASK'
#define KGSL_DMA_BIT_MASK DMA_BIT_MASK(64)
^~~~~~~~~~~~~~~~
/mnt/nvmestorage/lineage-20.0/kernel/motorola/sm8475/include/linux/dma-mapping.h:94:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment