Commit b8c2ab08 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Linus Torvalds

[PATCH] ftape EXPORT_SYMBOL damage clean-up

The reason for the ftape messup of export-objs is the usage of the
strange FT_KSYM macro in ftape_syms.c.

That exist solely for backwards compatibility for kernel 2.1.18 and older.

Better clean it up.
parent 48b3fb54
......@@ -42,62 +42,48 @@
#include "../lowlevel/ftape-buffer.h"
#include "../lowlevel/ftape-format.h"
#if LINUX_VERSION_CODE >= KERNEL_VER(2,1,18)
# define FT_KSYM(sym) EXPORT_SYMBOL(sym);
#else
# define FT_KSYM(sym) X(sym),
#endif
#if LINUX_VERSION_CODE < KERNEL_VER(2,1,18)
struct symbol_table ftape_symbol_table = {
#include <linux/symtab_begin.h>
#endif
/* bad sector handling from ftape-bsm.c */
FT_KSYM(ftape_get_bad_sector_entry)
FT_KSYM(ftape_find_end_of_bsm_list)
EXPORT_SYMBOL(ftape_get_bad_sector_entry);
EXPORT_SYMBOL(ftape_find_end_of_bsm_list);
/* from ftape-rw.c */
FT_KSYM(ftape_set_state)
EXPORT_SYMBOL(ftape_set_state);
/* from ftape-ctl.c */
FT_KSYM(ftape_seek_to_bot)
FT_KSYM(ftape_seek_to_eot)
FT_KSYM(ftape_abort_operation)
FT_KSYM(ftape_get_status)
FT_KSYM(ftape_enable)
FT_KSYM(ftape_disable)
FT_KSYM(ftape_mmap)
FT_KSYM(ftape_calibrate_data_rate)
EXPORT_SYMBOL(ftape_seek_to_bot);
EXPORT_SYMBOL(ftape_seek_to_eot);
EXPORT_SYMBOL(ftape_abort_operation);
EXPORT_SYMBOL(ftape_get_status);
EXPORT_SYMBOL(ftape_enable);
EXPORT_SYMBOL(ftape_disable);
EXPORT_SYMBOL(ftape_mmap);
EXPORT_SYMBOL(ftape_calibrate_data_rate);
/* from ftape-io.c */
FT_KSYM(ftape_reset_drive)
FT_KSYM(ftape_command)
FT_KSYM(ftape_parameter)
FT_KSYM(ftape_ready_wait)
FT_KSYM(ftape_report_operation)
FT_KSYM(ftape_report_error)
EXPORT_SYMBOL(ftape_reset_drive);
EXPORT_SYMBOL(ftape_command);
EXPORT_SYMBOL(ftape_parameter);
EXPORT_SYMBOL(ftape_ready_wait);
EXPORT_SYMBOL(ftape_report_operation);
EXPORT_SYMBOL(ftape_report_error);
/* from ftape-read.c */
FT_KSYM(ftape_read_segment_fraction)
FT_KSYM(ftape_zap_read_buffers)
FT_KSYM(ftape_read_header_segment)
FT_KSYM(ftape_decode_header_segment)
EXPORT_SYMBOL(ftape_read_segment_fraction);
EXPORT_SYMBOL(ftape_zap_read_buffers);
EXPORT_SYMBOL(ftape_read_header_segment);
EXPORT_SYMBOL(ftape_decode_header_segment);
/* from ftape-write.c */
FT_KSYM(ftape_write_segment)
FT_KSYM(ftape_start_writing)
FT_KSYM(ftape_loop_until_writes_done)
EXPORT_SYMBOL(ftape_write_segment);
EXPORT_SYMBOL(ftape_start_writing);
EXPORT_SYMBOL(ftape_loop_until_writes_done);
/* from ftape-buffer.h */
FT_KSYM(ftape_set_nr_buffers)
EXPORT_SYMBOL(ftape_set_nr_buffers);
/* from ftape-format.h */
FT_KSYM(ftape_format_track)
FT_KSYM(ftape_format_status)
FT_KSYM(ftape_verify_segment)
EXPORT_SYMBOL(ftape_format_track);
EXPORT_SYMBOL(ftape_format_status);
EXPORT_SYMBOL(ftape_verify_segment);
/* from tracing.c */
#ifndef CONFIG_FT_NO_TRACE_AT_ALL
FT_KSYM(ftape_tracing)
FT_KSYM(ftape_function_nest_level)
FT_KSYM(ftape_trace_call)
FT_KSYM(ftape_trace_exit)
FT_KSYM(ftape_trace_log)
#endif
/* end of ksym table */
#if LINUX_VERSION_CODE < KERNEL_VER(2,1,18)
#include <linux/symtab_end.h>
};
EXPORT_SYMBOL(ftape_tracing);
EXPORT_SYMBOL(ftape_function_nest_level);
EXPORT_SYMBOL(ftape_trace_call);
EXPORT_SYMBOL(ftape_trace_exit);
EXPORT_SYMBOL(ftape_trace_log);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment