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

Commit d7f305e9 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by James Bottomley
Browse files

[SCSI] sym53c8xx: Fix bogus sym_que_entry re-implementation of container_of



The sym53c8xx driver, for some reason, seems to mostly re-implement
linux/list.h with added bogosity. The main one is it's implementation
of sym_que_entry which spits warnings with recent gcc's on some
64 bits architectures.

Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 02a1e3ce
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -121,9 +121,7 @@ static __inline void sym_que_move(struct sym_quehead *orig,
	}
}

#define sym_que_entry(ptr, type, member) \
	((type *)((char *)(ptr)-(unsigned int)(&((type *)0)->member)))

#define sym_que_entry(ptr, type, member) container_of(ptr, type, member)

#define sym_insque(new, pos)		__sym_que_add(new, pos, (pos)->flink)