Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: cb710: fix #ifdef HAVE_EFFICIENT_UNALIGNED_ACCESS

HAVE_EFFICIENT_UNALIGNED_ACCESS is a config option, therefore it needs
the CONFIG_ before it when used by the preprocessor.

Signed-off-by: James Hogan <james@albanarts.com>
Acked-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

James Hogan and committed by
Chris Ball
e9e8bcb8 3e713373

+1 -1
+1 -1
drivers/misc/cb710/sgbuf2.c
··· 47 47 48 48 static inline bool needs_unaligned_copy(const void *ptr) 49 49 { 50 - #ifdef HAVE_EFFICIENT_UNALIGNED_ACCESS 50 + #ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS 51 51 return false; 52 52 #else 53 53 return ((ptr - NULL) & 3) != 0;