Skip to content

Commit e9e8bcb

Browse files
amaloncjb
authored andcommitted
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>
1 parent 3e71337 commit e9e8bcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/misc/cb710/sgbuf2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static uint32_t sg_dwiter_read_buffer(struct sg_mapping_iter *miter)
4747

4848
static inline bool needs_unaligned_copy(const void *ptr)
4949
{
50-
#ifdef HAVE_EFFICIENT_UNALIGNED_ACCESS
50+
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
5151
return false;
5252
#else
5353
return ((ptr - NULL) & 3) != 0;

0 commit comments

Comments
 (0)