]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
Declare local modification functions as static.
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sat, 27 Feb 2010 15:55:14 +0000 (15:55 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Sat, 27 Feb 2010 15:55:14 +0000 (15:55 +0000)
Fix typo.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@1149 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.6/net/can/gw.c

index 42f7fe7a0ec91f48e7a320af50d5e904589be213..7225b5f061c9c8ff09de712ffcb8153a5975dd86 100644 (file)
@@ -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;
 }