Revision 205902ecc7bcb2a007ed27bb3518e8f70e5d113e authored by Alexey Dobriyan on 23 May 2005, 20:09:19 UTC, committed by David S. Miller on 23 May 2005, 20:09:19 UTC
Everybody does struct packet_type foo_packet_type = { .type = __constant_htons(ETH_P_FOO); }; 5 introduced warnings will be properly fixed later. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d865925
unaligned.h
#ifndef __H8300_UNALIGNED_H
#define __H8300_UNALIGNED_H
#include <linux/config.h>
/* Use memmove here, so gcc does not insert a __builtin_memcpy. */
#define get_unaligned(ptr) \
({ __typeof__(*(ptr)) __tmp; memmove(&__tmp, (ptr), sizeof(*(ptr))); __tmp; })
#define put_unaligned(val, ptr) \
({ __typeof__(*(ptr)) __tmp = (val); \
memmove((ptr), &__tmp, sizeof(*(ptr))); \
(void)0; })
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...