Skip to contentSkip to conversation

lib/crypto: md5: remove unused header

PATCH Applied Mohamad Raizudeen 2 participants 2 messages Oct 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 lib/crypto: md5: remove unused header

The <linux/unaligned.h> header is included but never actually used. The code handles memory accesses using memcpy() instead of the unaligned helpers.

Remove this unused header to avoid false dependencies.

---
Changes in v3:
- Update the commit message to accurately describe memory accesses.

 lib/crypto/md5.c | 1 -
 1 file changed, 1 deletion(-)
lib/crypto/md5.c +0 -1
index 3d2b017a0525..ded7ccd1a5fc 100644
@@ -16,7 +16,6 @@
 #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 = {
Signature · 1 line
2.53.0
maintainer Applied
#1 lore raw
Quoted 10 lines · Mohamad Raizudeen

The <linux/unaligned.h> header is included but never actually used. The code handles memory accesses using memcpy() instead of the unaligned helpers.

Remove this unused header to avoid false dependencies.

---
Changes in v3:
- Update the commit message to accurately describe memory accesses.

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

- Eric