
To prevent using macros before they are defined, enfoce calling them in an appropriate order. Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
18 lines
514 B
Bash
18 lines
514 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright(c) 2012-2019 Intel Corporation
|
|
# SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
#
|
|
|
|
. `dirname $0`/conf_framework
|
|
|
|
if compile_module "struct dentry dentry;dentry.d_u.d_alias" "linux/dcache.h"
|
|
then
|
|
add_define "CAS_ALIAS_NODE_TO_DENTRY(alias) \\
|
|
container_of(alias, struct dentry, d_u.d_alias)"
|
|
elif compile_module "struct dentry dentry;dentry.d_alias" "linux/dcache.h"
|
|
then
|
|
add_define "CAS_ALIAS_NODE_TO_DENTRY(alias) \\
|
|
container_of(alias, struct dentry, d_alias)"
|
|
fi
|