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

Fixed build on kernels of 5.10 LTS newer than 5.10.188 . #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion aq_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len);
#define platform_get_ethdev_address(dev, netdev) (-1)
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) && \
// eth_hw_addr_set was added in 5.15, but later it was backported into LTS kernel 5.10.188
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 188) || (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))) && \
RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8, 6)
static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr)
{
Expand Down