Skip to content

Commit

Permalink
Revert "ANDROID: GKI: set vfs-only exports into their own namespace"
Browse files Browse the repository at this point in the history
This reverts commit d483eed.
  • Loading branch information
simonswine committed Jan 21, 2024
1 parent bc60600 commit 72402ed
Show file tree
Hide file tree
Showing 124 changed files with 79 additions and 186 deletions.
1 change: 0 additions & 1 deletion drivers/bluetooth/rtk_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2107,4 +2107,3 @@ void print_event(struct sk_buff *skb)
#endif
}

MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/input/sensors/accel/mc3230.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,4 +1351,3 @@ module_i2c_driver(gsensor_mc3230_driver);

MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("mc3230 3-Axis accelerometer driver");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/input/touchscreen/elan/elan_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -2359,4 +2359,3 @@ module_exit(elan_ts_exit);
MODULE_DESCRIPTION("ELAN HID-I2C and I2C Touchscreen Driver");
MODULE_AUTHOR("Minger Zhang <[email protected]>");
MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/input/touchscreen/gt1x/gt1x.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,4 +842,3 @@ module_exit(gt1x_ts_exit);

MODULE_DESCRIPTION("GTP Series Driver");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/media/platform/rockchip/isp/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,4 +1034,3 @@ struct platform_driver rkisp_plat_drv = {
MODULE_AUTHOR("Rockchip Camera/ISP team");
MODULE_DESCRIPTION("Rockchip ISP platform driver");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/media/platform/rockchip/ispp/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,3 @@ struct platform_driver rkispp_plat_drv = {
MODULE_AUTHOR("Rockchip Camera/ISP team");
MODULE_DESCRIPTION("Rockchip ISPP platform driver");
MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/media/spi/rk1608_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2794,4 +2794,3 @@ module_exit(preisp_mod_exit);
MODULE_AUTHOR("Rockchip Camera/ISP team");
MODULE_DESCRIPTION("A DSP driver for rk1608 chip");
MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/misc/rockchip/pcie-rkep.c
Original file line number Diff line number Diff line change
Expand Up @@ -848,4 +848,3 @@ module_pci_driver(pcie_rkep_driver);

MODULE_DESCRIPTION("Rockchip pcie-rkep demo function driver");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/mtd/nand/raw/nandsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,5 @@ static void __exit ns_cleanup_module(void)
module_exit(ns_cleanup_module);

MODULE_LICENSE ("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
MODULE_AUTHOR ("Artem B. Bityuckiy");
MODULE_DESCRIPTION ("The NAND flash simulator");
1 change: 0 additions & 1 deletion drivers/mtd/ubi/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -1469,4 +1469,3 @@ MODULE_VERSION(__stringify(UBI_VERSION));
MODULE_DESCRIPTION("UBI - Unsorted Block Images");
MODULE_AUTHOR("Artem Bityutskiy");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ void rwnx_rx_handle_msg(struct aic_sdio_dev *sdiodev, struct ipc_e2a_msg *msg)
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

#define MD5(x) x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15]
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/aic8800_sdio/aic8800_fdrv/rwnx_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7234,7 +7234,6 @@ static void __exit rwnx_mod_exit(void)


#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

module_init(rwnx_mod_init);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ static int rwnx_plat_tl4_fw_upload(struct rwnx_plat *rwnx_plat, u8 *fw_addr,
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 0)
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif

#if 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ extern void dhd_enable_oob_intr(struct dhd_bus *bus, bool enable);
static void dhd_hang_process(struct work_struct *work_data);
#endif /* #OEM_ANDROID */
MODULE_LICENSE("GPL and additional rights");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

#ifdef CONFIG_BCM_DETECT_CONSECUTIVE_HANG
#define MAX_CONSECUTIVE_HANG_COUNTS 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ extern void dhd_enable_oob_intr(struct dhd_bus *bus, bool enable);
static void dhd_hang_process(struct work_struct *work_data);
#endif /* #OEM_ANDROID */
MODULE_LICENSE("GPL and additional rights");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

#ifdef CONFIG_BCM_DETECT_CONSECUTIVE_HANG
#define MAX_CONSECUTIVE_HANG_COUNTS 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ extern void dhd_enable_oob_intr(struct dhd_bus *bus, bool enable);
static void dhd_hang_process(struct work_struct *work_data);
#endif /* OEM_ANDROID */
MODULE_LICENSE("GPL and additional rights");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

#if defined(MULTIPLE_SUPPLICANT)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
MODULE_AUTHOR("Realtek Semiconductor Corp.");
MODULE_VERSION(DRIVERVERSION);
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

int netdev_open(struct net_device *pnetdev);
static int netdev_close(struct net_device *pnetdev);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
MODULE_AUTHOR("Realtek Semiconductor Corp.");
MODULE_VERSION(DRIVERVERSION);
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

int netdev_open(struct net_device *pnetdev);
static int netdev_close(struct net_device *pnetdev);
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/uwe5622/tty-sdio/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,4 +849,3 @@ module_platform_driver(mtty_driver);

MODULE_AUTHOR("Unisoc wcn bt");
MODULE_DESCRIPTION("Unisoc marlin tty driver");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/net/wireless/uwe5622/unisocwcn/platform/wcn_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -4114,4 +4114,3 @@ module_exit(marlin_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Spreadtrum WCN Marlin Driver");
MODULE_AUTHOR("Yufeng Yang <[email protected]>");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/net/wireless/uwe5622/unisocwcn/usb/wcn_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ struct virtual_buf {
#define virtual_to_head(x) ((char *)x - sizeof(unsigned char))

MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

static int mdbg_virtual_pop(int channel, struct mbuf_t *head,
struct mbuf_t *tail, int num)
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/uwe5622/unisocwifi/wl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,4 +850,3 @@ module_platform_driver(sprdwl_driver);
MODULE_DESCRIPTION("Spreadtrum Wireless LAN Driver");
MODULE_AUTHOR("Spreadtrum WCN Division");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/nvme/target/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,4 +1604,3 @@ module_init(nvmet_init);
module_exit(nvmet_exit);

MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/target/target_core_configfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3652,7 +3652,6 @@ static void __exit target_core_exit_configfs(void)
MODULE_DESCRIPTION("Target_Core_Mod/ConfigFS");
MODULE_AUTHOR("[email protected]");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

module_init(target_core_init_configfs);
module_exit(target_core_exit_configfs);
1 change: 0 additions & 1 deletion drivers/target/target_core_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,6 @@ static void __exit fileio_module_exit(void)
MODULE_DESCRIPTION("TCM FILEIO subsystem plugin");
MODULE_AUTHOR("[email protected]");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

module_init(fileio_module_init);
module_exit(fileio_module_exit);
1 change: 0 additions & 1 deletion drivers/usb/gadget/function/f_mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -3493,7 +3493,6 @@ static struct usb_function *fsg_alloc(struct usb_function_instance *fi)

DECLARE_USB_FUNCTION_INIT(mass_storage, fsg_alloc_inst, fsg_alloc);
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
MODULE_AUTHOR("Michal Nazarewicz");

/************************* Module parameters *************************/
Expand Down
1 change: 0 additions & 1 deletion drivers/usb/gadget/function/f_uac1_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,5 +1021,4 @@ static struct usb_function *f_audio_alloc(struct usb_function_instance *fi)

DECLARE_USB_FUNCTION_INIT(uac1_legacy, f_audio_alloc_inst, f_audio_alloc);
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
MODULE_AUTHOR("Bryan Wu");
1 change: 0 additions & 1 deletion drivers/usb/gadget/function/storage_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,4 +522,3 @@ ssize_t fsg_store_inquiry_string(struct fsg_lun *curlun, const char *buf,
EXPORT_SYMBOL_GPL(fsg_store_inquiry_string);

MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
1 change: 0 additions & 1 deletion drivers/video/rockchip/rga3/rga_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,5 +1615,4 @@ MODULE_AUTHOR("[email protected]");
MODULE_DESCRIPTION("Driver for rga device");
MODULE_LICENSE("GPL");
#ifdef MODULE_IMPORT_NS
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
#endif
1 change: 0 additions & 1 deletion fs/9p/v9fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,4 +738,3 @@ MODULE_AUTHOR("Latchesar Ionkov <[email protected]>");
MODULE_AUTHOR("Eric Van Hensbergen <[email protected]>");
MODULE_AUTHOR("Ron Minnich <[email protected]>");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);
2 changes: 0 additions & 2 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# Rewritten to use lists instead of if-statements.
#

subdir-ccflags-y += -DANDROID_GKI_VFS_EXPORT_ONLY=VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver

obj-y := open.o read_write.o file_table.o super.o \
char_dev.o stat.o exec.o pipe.o namei.o fcntl.o \
ioctl.o readdir.o select.o dcache.o inode.o \
Expand Down
1 change: 0 additions & 1 deletion fs/adfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,4 +492,3 @@ static void __exit exit_adfs_fs(void)
module_init(init_adfs_fs)
module_exit(exit_adfs_fs)
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);
1 change: 0 additions & 1 deletion fs/affs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,6 @@ static void __exit exit_affs_fs(void)

MODULE_DESCRIPTION("Amiga filesystem support for Linux");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);

module_init(init_affs_fs)
module_exit(exit_affs_fs)
1 change: 0 additions & 1 deletion fs/afs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
MODULE_DESCRIPTION("AFS Client File System");
MODULE_AUTHOR("Red Hat, Inc.");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);

unsigned afs_debug;
module_param_named(debug, afs_debug, uint, S_IWUSR | S_IRUGO);
Expand Down
6 changes: 3 additions & 3 deletions fs/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int setattr_prepare(struct dentry *dentry, struct iattr *attr)

return 0;
}
EXPORT_SYMBOL_NS(setattr_prepare, ANDROID_GKI_VFS_EXPORT_ONLY);
EXPORT_SYMBOL(setattr_prepare);

/**
* inode_newsize_ok - may this inode be truncated to a given size
Expand Down Expand Up @@ -160,7 +160,7 @@ int inode_newsize_ok(const struct inode *inode, loff_t offset)
out_big:
return -EFBIG;
}
EXPORT_SYMBOL_NS(inode_newsize_ok, ANDROID_GKI_VFS_EXPORT_ONLY);
EXPORT_SYMBOL(inode_newsize_ok);

/**
* setattr_copy - copy simple metadata updates into the generic inode
Expand Down Expand Up @@ -347,4 +347,4 @@ int notify_change(struct dentry * dentry, struct iattr * attr, struct inode **de

return error;
}
EXPORT_SYMBOL_NS(notify_change, ANDROID_GKI_VFS_EXPORT_ONLY);
EXPORT_SYMBOL(notify_change);
1 change: 0 additions & 1 deletion fs/autofs/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ static void __exit exit_autofs_fs(void)
module_init(init_autofs_fs)
module_exit(exit_autofs_fs)
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);
4 changes: 2 additions & 2 deletions fs/bad_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void make_bad_inode(struct inode *inode)
inode->i_opflags &= ~IOP_XATTR;
inode->i_fop = &bad_file_ops;
}
EXPORT_SYMBOL_NS(make_bad_inode, ANDROID_GKI_VFS_EXPORT_ONLY);
EXPORT_SYMBOL(make_bad_inode);

/*
* This tests whether an inode has been flagged as bad. The test uses
Expand All @@ -227,7 +227,7 @@ bool is_bad_inode(struct inode *inode)
return (inode->i_op == &bad_inode_ops);
}

EXPORT_SYMBOL_NS(is_bad_inode, ANDROID_GKI_VFS_EXPORT_ONLY);
EXPORT_SYMBOL(is_bad_inode);

/**
* iget_failed - Mark an under-construction inode as dead and release it
Expand Down
1 change: 0 additions & 1 deletion fs/befs/linuxvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
MODULE_DESCRIPTION("BeOS File System (BeFS) driver");
MODULE_AUTHOR("Will Dyson");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);

/* The units the vfs expects inode->i_blocks to be in */
#define VFS_BLOCK_SIZE 512
Expand Down
1 change: 0 additions & 1 deletion fs/bfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
MODULE_AUTHOR("Tigran Aivazian <[email protected]>");
MODULE_DESCRIPTION("SCO UnixWare BFS filesystem for Linux");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);

#undef DEBUG

Expand Down
1 change: 0 additions & 1 deletion fs/binfmt_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,4 +832,3 @@ static void __exit exit_misc_binfmt(void)
core_initcall(init_misc_binfmt);
module_exit(exit_misc_binfmt);
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);
4 changes: 2 additions & 2 deletions fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ int sb_set_blocksize(struct super_block *sb, int size)
return sb->s_blocksize;
}

EXPORT_SYMBOL_NS(sb_set_blocksize, ANDROID_GKI_VFS_EXPORT_ONLY);
EXPORT_SYMBOL(sb_set_blocksize);

int sb_min_blocksize(struct super_block *sb, int size)
{
Expand All @@ -196,7 +196,7 @@ int sb_min_blocksize(struct super_block *sb, int size)
return sb_set_blocksize(sb, size);
}

EXPORT_SYMBOL_NS(sb_min_blocksize, ANDROID_GKI_VFS_EXPORT_ONLY);
EXPORT_SYMBOL(sb_min_blocksize);

static int
blkdev_get_block(struct inode *inode, sector_t iblock,
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2622,7 +2622,6 @@ late_initcall(init_btrfs_fs);
module_exit(exit_btrfs_fs)

MODULE_LICENSE("GPL");
MODULE_IMPORT_NS(ANDROID_GKI_VFS_EXPORT_ONLY);
MODULE_SOFTDEP("pre: crc32c");
MODULE_SOFTDEP("pre: xxhash64");
MODULE_SOFTDEP("pre: sha256");
Expand Down
Loading

0 comments on commit 72402ed

Please sign in to comment.