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

Warnings on kernel 5.10 "BITS_TO_BYTES" redefined #313

Open
razvanphp opened this issue Feb 12, 2024 · 1 comment
Open

Warnings on kernel 5.10 "BITS_TO_BYTES" redefined #313

razvanphp opened this issue Feb 12, 2024 · 1 comment

Comments

@razvanphp
Copy link

I would love to update the kernel, but nvidia jetson/jetpack is unfortunately stuck with this version for now.

Can we fix those? Not sure if it can actually introduce issues:

/home/jetson/rtw89-main/core.h:4759: warning: "BITS_TO_BYTES" redefined
 4759 | #define BITS_TO_BYTES(nr)       __KERNEL_DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
      |
In file included from ./include/linux/kernel.h:12,
                 from ./include/asm-generic/bug.h:20,
                 from ./arch/arm64/include/asm/bug.h:26,
                 from ./include/linux/bug.h:5,
                 from ./include/linux/average.h:5,
                 from /home/jetson/rtw89-main/core.h:8,
                 from /home/jetson/rtw89-main/phy.h:8,
                 from /home/jetson/rtw89-main/rtw8852a_rfk_table.h:8,
                 from /home/jetson/rtw89-main/rtw8852a_rfk_table.c:5:
./include/linux/bitops.h:18: note: this is the location of the previous definition
   18 | #define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_TYPE(char))
      |
In file included from /home/jetson/rtw89-main/debug.h:8,
                 from /home/jetson/rtw89-main/txrx.h:8,
                 from /home/jetson/rtw89-main/pci.h:8,
                 from /home/jetson/rtw89-main/rtw8852ae.c:8:

BTW: if we can recompile the kernel, can we backport the missing features from 5.15?

Thank you!
R

@lwfinger
Copy link
Owner

That warning is harmless. It will not cause any problems.

Backporting features from 5.15 to 5.10 would be a large problem. We are working on getting a backports project that will do that, but it is not yet ready for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants