Skip to content
Permalink
Browse files
dcookies: Make dcookies depend on CONFIG_OPROFILE
The dcookies stuff is used only with OPROFILE and there is no need to
build it if CONFIG_OPROFILE isn't enabled. Build it depending on
CONFIG_OPROFILE instead of CONFIG_PROFILING.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[ Viresh: Update the name in #endif part ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
  • Loading branch information
arndb authored and intel-lab-lkp committed Jan 11, 2021
1 parent 7c53f6b commit d48f031313d175610c430e9f04c3b6974e3fd3e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -64,7 +64,7 @@ obj-$(CONFIG_SYSFS) += sysfs/
obj-$(CONFIG_CONFIGFS_FS) += configfs/
obj-y += devpts/

obj-$(CONFIG_PROFILING) += dcookies.o
obj-$(CONFIG_OPROFILE) += dcookies.o
obj-$(CONFIG_DLM) += dlm/

# Do not add any filesystems before this line
@@ -11,7 +11,7 @@
#define DCOOKIES_H


#ifdef CONFIG_PROFILING
#ifdef CONFIG_OPROFILE

#include <linux/dcache.h>
#include <linux/types.h>
@@ -64,6 +64,6 @@ static inline int get_dcookie(const struct path *path, unsigned long *cookie)
return -ENOSYS;
}

#endif /* CONFIG_PROFILING */
#endif /* CONFIG_OPROFILE */

#endif /* DCOOKIES_H */

0 comments on commit d48f031

Please sign in to comment.