Skip to content

Commit fe8015c

Browse files
Mike FrysingerBryan Wu
authored andcommitted
Blackfin arch: move EXPORT_SYMBOL to the place where it is actually defined
- kernel_thread - irq_flags - checksum Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
1 parent dc26aec commit fe8015c

4 files changed

Lines changed: 6 additions & 9 deletions

File tree

‎arch/blackfin/kernel/bfin_ksyms.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,9 @@
3838

3939
EXPORT_SYMBOL(__ioremap);
4040

41-
EXPORT_SYMBOL(ip_fast_csum);
42-
43-
EXPORT_SYMBOL(kernel_thread);
44-
4541
EXPORT_SYMBOL(is_in_rom);
4642
EXPORT_SYMBOL(bfin_return_from_exception);
4743

48-
/* Networking helper routines. */
49-
EXPORT_SYMBOL(csum_partial_copy);
50-
5144
/* The following are special because they're not called
5245
* explicitly (the C compiler generates them). Fortunately,
5346
* their interface isn't gonna change any time soon now, so
@@ -96,15 +89,13 @@ EXPORT_SYMBOL(insw_8);
9689
EXPORT_SYMBOL(outsl);
9790
EXPORT_SYMBOL(insl);
9891
EXPORT_SYMBOL(insl_16);
99-
EXPORT_SYMBOL(irq_flags);
10092
EXPORT_SYMBOL(iounmap);
10193
EXPORT_SYMBOL(blackfin_dcache_invalidate_range);
10294
EXPORT_SYMBOL(blackfin_icache_dcache_flush_range);
10395
EXPORT_SYMBOL(blackfin_icache_flush_range);
10496
EXPORT_SYMBOL(blackfin_dcache_flush_range);
10597
EXPORT_SYMBOL(blackfin_dflush_page);
10698

107-
EXPORT_SYMBOL(csum_partial);
10899
EXPORT_SYMBOL(__init_begin);
109100
EXPORT_SYMBOL(__init_end);
110101
EXPORT_SYMBOL(_ebss_l1);

‎arch/blackfin/kernel/process.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ pid_t kernel_thread(int (*fn) (void *), void *arg, unsigned long flags)
154154
return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, &regs, 0, NULL,
155155
NULL);
156156
}
157+
EXPORT_SYMBOL(kernel_thread);
157158

158159
void flush_thread(void)
159160
{

‎arch/blackfin/lib/checksum.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3030
*/
3131

32+
#include <linux/module.h>
3233
#include <net/checksum.h>
3334
#include <asm/checksum.h>
3435

@@ -76,6 +77,7 @@ __sum16 ip_fast_csum(unsigned char *iph, unsigned int ihl)
7677
{
7778
return (__force __sum16)~do_csum(iph, ihl * 4);
7879
}
80+
EXPORT_SYMBOL(ip_fast_csum);
7981

8082
/*
8183
* computes the checksum of a memory block at buff, length len,
@@ -104,6 +106,7 @@ __wsum csum_partial(const void *buff, int len, __wsum sum)
104106

105107
return sum;
106108
}
109+
EXPORT_SYMBOL(csum_partial);
107110

108111
/*
109112
* this routine is used for miscellaneous IP-like checksums, mainly
@@ -137,3 +140,4 @@ __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum)
137140
memcpy(dst, src, len);
138141
return csum_partial(dst, len, sum);
139142
}
143+
EXPORT_SYMBOL(csum_partial_copy);

‎arch/blackfin/mach-common/ints-priority.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
* cannot actually mask out in hardware.
6666
*/
6767
unsigned long irq_flags = 0x1f;
68+
EXPORT_SYMBOL(irq_flags);
6869

6970
/* The number of spurious interrupts */
7071
atomic_t num_spurious;

0 commit comments

Comments
 (0)