From 33923d816cb26cd5f54403e165a4be403639f6f7 Mon Sep 17 00:00:00 2001 From: hartkopp Date: Sat, 27 Feb 2010 15:55:14 +0000 Subject: [PATCH] Declare local modification functions as static. Fix typo. git-svn-id: svn://svn.berlios.de//socketcan/trunk@1149 030b6a49-0b11-0410-94ab-b0dab22257f2 --- kernel/2.6/net/can/gw.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/kernel/2.6/net/can/gw.c b/kernel/2.6/net/can/gw.c index 42f7fe7..7225b5f 100644 --- a/kernel/2.6/net/can/gw.c +++ b/kernel/2.6/net/can/gw.c @@ -117,45 +117,45 @@ struct gw_job { }; }; -/* content of u32 gwjob.flags */ +/* content of u32 gw_job.flags */ #define CAN_TX_ECHO 0x00000001 #define CAN_TX_SRC_TSTAMP 0x00000002 /* modification functions that are invoked in the hot path in gw_rcv */ -void mod_and_id (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_and_id (struct can_frame *cf, struct can_can_gw *mod) { cf->can_id &= mod->modframe.and.can_id; } -void mod_and_dlc (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_and_dlc (struct can_frame *cf, struct can_can_gw *mod) { cf->can_dlc &= mod->modframe.and.can_dlc; } -void mod_and_data (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_and_data (struct can_frame *cf, struct can_can_gw *mod) { *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data; } -void mod_or_id (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_or_id (struct can_frame *cf, struct can_can_gw *mod) { cf->can_id |= mod->modframe.or.can_id; } -void mod_or_dlc (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_or_dlc (struct can_frame *cf, struct can_can_gw *mod) { cf->can_dlc |= mod->modframe.or.can_dlc; } -void mod_or_data (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_or_data (struct can_frame *cf, struct can_can_gw *mod) { *(u64 *)cf->data |= *(u64 *)mod->modframe.or.data; } -void mod_xor_id (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_xor_id (struct can_frame *cf, struct can_can_gw *mod) { cf->can_id ^= mod->modframe.xor.can_id; } -void mod_xor_dlc (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_xor_dlc (struct can_frame *cf, struct can_can_gw *mod) { cf->can_dlc ^= mod->modframe.xor.can_dlc; } -void mod_xor_data (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_xor_data (struct can_frame *cf, struct can_can_gw *mod) { *(u64 *)cf->data ^= *(u64 *)mod->modframe.xor.data; } -void mod_set_id (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_set_id (struct can_frame *cf, struct can_can_gw *mod) { cf->can_id = mod->modframe.set.can_id; } -void mod_set_dlc (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_set_dlc (struct can_frame *cf, struct can_can_gw *mod) { cf->can_dlc = mod->modframe.set.can_dlc; } -void mod_set_data (struct can_frame *cf, struct can_can_gw *mod) { +static void mod_set_data (struct can_frame *cf, struct can_can_gw *mod) { *(u64 *)cf->data = *(u64 *)mod->modframe.set.data; } -- 2.39.2