Commit 383d2444 authored by Nathan Scott's avatar Nathan Scott

[XFS] Dont build objects which are not linked into the kernel ever.

SGI Modid: 2.5.x-xfs:slinx:160314a
parent db15c97a
...@@ -61,9 +61,14 @@ xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \ ...@@ -61,9 +61,14 @@ xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \
xfs_qm_syscalls.o \ xfs_qm_syscalls.o \
xfs_qm_bhv.o \ xfs_qm_bhv.o \
xfs_qm.o) xfs_qm.o)
ifeq ($(CONFIG_XFS_QUOTA),y) ifeq ($(CONFIG_XFS_QUOTA),y)
xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o
else
xfs-y += xfs_qmops.o
endif
ifneq ($(CONFIG_XFS_DMAPI),y)
xfs-y += xfs_dmops.o
endif endif
xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o
...@@ -151,7 +156,3 @@ xfs-y += $(addprefix support/, \ ...@@ -151,7 +156,3 @@ xfs-y += $(addprefix support/, \
xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o
# Quota and DMAPI stubs
xfs-y += xfs_dmops.o \
xfs_qmops.o
...@@ -43,8 +43,6 @@ ...@@ -43,8 +43,6 @@
#include "xfs_dmapi.h" #include "xfs_dmapi.h"
#include "xfs_mount.h" #include "xfs_mount.h"
#ifndef CONFIG_XFS_DMAPI
xfs_dmops_t xfs_dmcore_xfs = { xfs_dmops_t xfs_dmcore_xfs = {
.xfs_send_data = (xfs_send_data_t)fs_nosys, .xfs_send_data = (xfs_send_data_t)fs_nosys,
.xfs_send_mmap = (xfs_send_mmap_t)fs_noerr, .xfs_send_mmap = (xfs_send_mmap_t)fs_noerr,
...@@ -52,4 +50,3 @@ xfs_dmops_t xfs_dmcore_xfs = { ...@@ -52,4 +50,3 @@ xfs_dmops_t xfs_dmcore_xfs = {
.xfs_send_namesp = (xfs_send_namesp_t)fs_nosys, .xfs_send_namesp = (xfs_send_namesp_t)fs_nosys,
.xfs_send_unmount = (xfs_send_unmount_t)fs_noval, .xfs_send_unmount = (xfs_send_unmount_t)fs_noval,
}; };
#endif /* CONFIG_XFS_DMAPI */
...@@ -44,7 +44,6 @@ ...@@ -44,7 +44,6 @@
#include "xfs_mount.h" #include "xfs_mount.h"
#ifndef CONFIG_XFS_QUOTA
STATIC struct xfs_dquot * STATIC struct xfs_dquot *
xfs_dqvopchown_default( xfs_dqvopchown_default(
struct xfs_trans *tp, struct xfs_trans *tp,
...@@ -70,4 +69,3 @@ xfs_qmops_t xfs_qmcore_xfs = { ...@@ -70,4 +69,3 @@ xfs_qmops_t xfs_qmcore_xfs = {
.xfs_dqvopchown = xfs_dqvopchown_default, .xfs_dqvopchown = xfs_dqvopchown_default,
.xfs_dqvopchownresv = (xfs_dqvopchownresv_t) fs_noerr, .xfs_dqvopchownresv = (xfs_dqvopchownresv_t) fs_noerr,
}; };
#endif /* CONFIG_XFS_QUOTA */
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