Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Wshift-count-overflow in arch/arm/plat-orion/common.o #295

Closed
shenki opened this issue Dec 12, 2018 · 1 comment
Closed

-Wshift-count-overflow in arch/arm/plat-orion/common.o #295

shenki opened this issue Dec 12, 2018 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@shenki
Copy link
Member

shenki commented Dec 12, 2018

make multi_v5_defconfig
./scripts/config -d CONFIG_FTRACE
  CC      arch/arm/plat-orion/common.o
arch/arm/plat-orion/common.c:625:29: warning: shift count >= width of type [-Wshift-count-overflow]
                .coherent_dma_mask      = DMA_BIT_MASK(64),
                                          ^~~~~~~~~~~~~~~~
./include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                     ^ ~~~
arch/arm/plat-orion/common.c:686:29: warning: shift count >= width of type [-Wshift-count-overflow]
                .coherent_dma_mask      = DMA_BIT_MASK(64),
                                          ^~~~~~~~~~~~~~~~
./include/linux/dma-mapping.h:139:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
                                                     ^ ~~~
@shenki shenki added [BUG] linux A bug that should be fixed in the mainline kernel. [ARCH] arm32 This bug impacts ARCH=arm -Wshift-overflow labels Dec 12, 2018
@nickdesaulniers
Copy link
Member

dupe of #92

@nickdesaulniers nickdesaulniers added duplicate This issue or pull request already exists and removed -Wshift-overflow [ARCH] arm32 This bug impacts ARCH=arm [BUG] linux A bug that should be fixed in the mainline kernel. labels Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants