Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 5 additions & 1 deletion src/inner.h
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ BIT_LENGTH(uint32_t x)
k += GT(x, 0x0001);
return k;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)

#ifndef MIN
/*
* Compute the minimum of x and y.
*/
Expand All @@ -933,7 +934,9 @@ MIN(uint32_t x, uint32_t y)
{
return MUX(GT(x, y), y, x);
}
#endif

#ifndef MAX
/*
* Compute the maximum of x and y.
*/
Expand All @@ -943,6 +946,7 @@ MAX(uint32_t x, uint32_t y)
return MUX(GT(x, y), x, y);
}
#endif

/*
* Multiply two 32-bit integers, with a 64-bit result. This default
* implementation assumes that the basic multiplication operator
Expand Down
2 changes: 1 addition & 1 deletion src/linuxkm.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ EXPORT_SYMBOL(br_prng_seeder_system);
EXPORT_SYMBOL(br_x509_decoder_init);
EXPORT_SYMBOL(br_x509_decoder_push);
EXPORT_SYMBOL(br_ssl_engine_set_suites);
EXPORT_SYMBOL(br_sslrec_out_clear_vtable);
EXPORT_SYMBOL(br_ssl_engine_current_state);
EXPORT_SYMBOL(br_ssl_engine_recvrec_buf);
EXPORT_SYMBOL(br_ssl_engine_recvrec_ack);
Expand Down Expand Up @@ -63,3 +62,4 @@ module_init(bearssl_init);
module_exit(bearssl_exit);

MODULE_LICENSE("Dual MIT/GPL");
MODULE_AUTHOR("Riptides Labs, Inc <tech@riptides.io>");