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

phonet: Protect if_phonet.h against multiple inclusions.

From: Remi Denis-Courmont <remi.denis-courmont@nokia.com>

Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Remi Denis-Courmont and committed by
David S. Miller
6e50e8a2 a57334e9

+6 -5
+6 -5
include/linux/if_phonet.h
··· 5 5 * 6 6 * Copyright (C) 2008 Nokia Corporation. All rights reserved. 7 7 */ 8 + #ifndef LINUX_IF_PHONET_H 9 + #define LINUX_IF_PHONET_H 8 10 9 - #define PHONET_HEADER_LEN 8 /* Phonet header length */ 10 - 11 - #define PHONET_MIN_MTU 6 12 - /* 6 bytes header + 65535 bytes payload */ 13 - #define PHONET_MAX_MTU 65541 11 + #define PHONET_MIN_MTU 6 /* pn_length = 0 */ 12 + #define PHONET_MAX_MTU 65541 /* pn_length = 0xffff */ 14 13 #define PHONET_DEV_MTU PHONET_MAX_MTU 15 14 16 15 #ifdef __KERNEL__ 17 16 extern struct header_ops phonet_header_ops; 17 + #endif 18 + 18 19 #endif