All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] lib/crypto: md5: correct header inclusions
@ 2026-10-15  3:38 Mohamad Raizudeen
  2026-10-15  4:47 ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Mohamad Raizudeen @ 2026-10-15  3:38 UTC (permalink / raw)
  To: ebiggers, ardb
  Cc: Jason, skhan, me, jkoolstra, linux-crypto, linux-kernel,
	Mohamad Raizudeen

The file uses 'rol32()' inline function (inside the MD5STEP macro) but
does not explicitly include `<linux/bitops.h>`, currently relying on
indirect includes.

Also, `<linux/unaligned.h>` is included but never used, as the code
relies on direct pointer casts.

Add the missing `<linux/bitops.h>` and remove the unused
`<linux/unaligned.h>`.

Signed-off-by: Mohamad Raizudeen <raizudeen.kerneldev@gmail.com>
---
 lib/crypto/md5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/crypto/md5.c b/lib/crypto/md5.c
index 3d2b017a0525..a838bb90103f 100644
--- a/lib/crypto/md5.c
+++ b/lib/crypto/md5.c
@@ -13,10 +13,10 @@
 #include <crypto/hmac.h>
 #include <crypto/md5.h>
 #include <linux/export.h>
+#include <linux/bitops.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
-#include <linux/unaligned.h>
 #include <linux/wordpart.h>
 
 static const struct md5_block_state md5_iv = {
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-15  5:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-15  3:38 [PATCH] lib/crypto: md5: correct header inclusions Mohamad Raizudeen
2026-10-15  4:47 ` Herbert Xu
2026-10-15  5:18   ` Mohamad Raizudeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.