Skip to content

Commit

Permalink
m68knommu: move EXPORT of local checksumming functions to definitions
Browse files Browse the repository at this point in the history
The EXPORT_SYMBOL() of the local lib checksum functions belongs with
the definitions, not in some other random code file. So move then there.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Greg Ungerer committed May 24, 2011
1 parent 67cc09e commit b33972e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/m68k/kernel/m68k_ksyms_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@

/* platform dependent support */

EXPORT_SYMBOL(ip_fast_csum);

EXPORT_SYMBOL(kernel_thread);

/* Networking helper routines. */
EXPORT_SYMBOL(csum_partial_copy_nocheck);

/*
* libgcc functions - functions that are used internally by the
* compiler... (prototypes are not correct though, but that
Expand Down
3 changes: 3 additions & 0 deletions arch/m68k/lib/checksum_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
{
return (__force __sum16)~do_csum(iph,ihl*4);
}
EXPORT_SYMBOL(ip_fast_csum);
#endif

/*
Expand Down Expand Up @@ -140,6 +141,7 @@ csum_partial_copy_from_user(const void __user *src, void *dst,
memcpy(dst, (__force const void *)src, len);
return csum_partial(dst, len, sum);
}
EXPORT_SYMBOL(csum_partial_copy_from_user);

/*
* copy from ds while checksumming, otherwise like csum_partial
Expand All @@ -151,3 +153,4 @@ csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
memcpy(dst, src, len);
return csum_partial(dst, len, sum);
}
EXPORT_SYMBOL(csum_partial_copy_nocheck);

0 comments on commit b33972e

Please sign in to comment.