From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: "David S. Miller" <davem@redhat.com>,
Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [PATCH 2.6 IrDA] (8/14) crc16 symbol exports
Date: Tue, 9 Mar 2004 11:08:23 -0800 [thread overview]
Message-ID: <20040309190823.GI14543@bougret.hpl.hp.com> (raw)
ir264_irsyms_08_crc.diff :
~~~~~~~~~~~~~~~~~~~~~~~~
<Patch from Stephen Hemminger>
(8/14) crc16 symbol exports
Move crc16 exports out of irsyms. Make type __u16 rather than
unsigned short to match input parameter.
diff -u -p -r linux/include/net/irda.s7/crc.h linux/include/net/irda/crc.h
--- linux/include/net/irda.s7/crc.h Wed Dec 17 18:58:38 2003
+++ linux/include/net/irda/crc.h Mon Mar 8 19:10:29 2004
@@ -28,6 +28,6 @@ static inline __u16 irda_fcs(__u16 fcs,
}
/* Recompute the FCS with len bytes appended. */
-unsigned short irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len);
+__u16 irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len);
#endif
diff -u -p -r linux/net/irda.s7/crc.c linux/net/irda/crc.c
--- linux/net/irda.s7/crc.c Wed Dec 17 18:58:41 2003
+++ linux/net/irda/crc.c Mon Mar 8 19:10:29 2004
@@ -14,6 +14,7 @@
********************************************************************/
#include <net/irda/crc.h>
+#include <linux/module.h>
/*
* This mysterious table is just the CRC of each possible byte. It can be
@@ -56,10 +57,12 @@ __u16 const irda_crc16_table[256] =
0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330,
0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78
};
+EXPORT_SYMBOL(irda_crc16_table);
-unsigned short irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len)
+__u16 irda_calc_crc16( __u16 fcs, __u8 const *buf, size_t len)
{
while (len--)
fcs = irda_fcs(fcs, *buf++);
return fcs;
}
+EXPORT_SYMBOL(irda_calc_crc16);
diff -u -p -r linux/net/irda.s7/irsyms.c linux/net/irda/irsyms.c
--- linux/net/irda.s7/irsyms.c Mon Mar 8 19:08:50 2004
+++ linux/net/irda/irsyms.c Mon Mar 8 19:10:29 2004
@@ -97,8 +97,6 @@ EXPORT_SYMBOL(irda_task_execute);
EXPORT_SYMBOL(irda_task_next_state);
EXPORT_SYMBOL(irda_task_delete);
-EXPORT_SYMBOL(irda_calc_crc16);
-EXPORT_SYMBOL(irda_crc16_table);
EXPORT_SYMBOL(irda_start_timer);
#ifdef CONFIG_IRDA_DEBUG
reply other threads:[~2004-03-09 19:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040309190823.GI14543@bougret.hpl.hp.com \
--to=jt@bougret.hpl.hp.com \
--cc=davem@redhat.com \
--cc=jt@hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®