Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9e8bcb8 authored by James Hogan's avatar James Hogan Committed by Chris Ball
Browse files

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: default avatarJames Hogan <james@albanarts.com>
Acked-by: default avatarMichał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 3e713373
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -47,7 +47,7 @@ static uint32_t sg_dwiter_read_buffer(struct sg_mapping_iter *miter)


static inline bool needs_unaligned_copy(const void *ptr)
static inline bool needs_unaligned_copy(const void *ptr)
{
{
#ifdef HAVE_EFFICIENT_UNALIGNED_ACCESS
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
	return false;
	return false;
#else
#else
	return ((ptr - NULL) & 3) != 0;
	return ((ptr - NULL) & 3) != 0;