ÿØÿà JFIF ` ` ÿþ
|
Server : Apache System : Linux cloud.heroica.com.br 4.18.0-553.36.1.el8_10.x86_64 #1 SMP Wed Jan 22 03:07:54 EST 2025 x86_64 User : farolpborg ( 1053) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /usr/src/snapapi26-0.8.52/ |
Upload File : |
SNAPAPI_FLAGS += $(shell \
if grep -qw ''static.*kmap_atomic\(.*page.*,.*\)'\|'define\ kmap_atomic\(page,.*\)'' $(srctree)/include/linux/highmem.h; then \
echo -DHAVE_KMAP_ATOMIC_2ARGS; \
fi)
SNAPAPI_FLAGS += $(shell \
grep -qw "pid_ns_for_children" $(srctree)/include/linux/nsproxy.h && \
echo -DHAVE_PID_NS_CHILDREN)
SNAPAPI_FLAGS += $(shell \
grep -v '^//' $(srctree)/include/linux/fs.h | grep -qw "f_dentry" && \
echo -DHAVE_FILE_F_DENTRY)
SNAPAPI_FLAGS += $(shell \
grep -qw "set_mb" $(srctree)/arch/x86/include/asm/barrier.h \
$(srctree)/arch/x86/include/asm/system.h \
$(srctree)/include/asm/system.h \
$(srctree)/include/asm-generic/system.h && \
echo -DHAVE_ASM_HAVE_SET_MB)
SNAPAPI_FLAGS += $(shell \
if grep -qw "extern void bio_endio(.*bio.*,.*)" $(srctree)/include/linux/bio.h; then \
echo -DHAVE_BIO_ENDIO_2ARGS; \
fi)
SNAPAPI_FLAGS += $(shell \
if grep -qw "BIO_UPTODATE" $(srctree)/include/linux/blk_types.h \
$(srctree)/include/linux/bio.h ; then \
echo -DHAVE_BIO_UPTODATE; \
elif grep -qw "bi_error" $(srctree)/include/linux/blk_types.h; then \
echo -DHAVE_BIO_BI_ERROR; \
fi)
SNAPAPI_FLAGS += $(shell \
if grep -qw "page_cache_release" $(srctree)/include/linux/pagemap.h; then \
echo -DHAVE_PAGE_CACHE_RELEASE; \
fi)
SNAPAPI_FLAGS += $(shell \
grep -qw "submit_bio(struct bio \*)\|submit_bio(struct bio \*bio)" $(srctree)/include/linux/fs.h \
$(srctree)/include/linux/bio.h && \
echo -DHAVE_SUBMIT_BIO_ONEARG)
SNAPAPI_FLAGS += $(shell \
grep -qw "op_is_write" $(srctree)/include/linux/fs.h \
$(srctree)/include/linux/blk_types.h && \
echo -DHAVE_OP_IS_WRITE)
SNAPAPI_FLAGS += $(shell \
grep -qw "bi_opf" $(srctree)/include/linux/fs.h \
$(srctree)/include/linux/blk_types.h && \
echo -DHAVE_BIO_OPF)
SNAPAPI_FLAGS += $(shell \
grep -qw "virtual_address;" $(srctree)/include/linux/mm.h && \
echo -DHAVE_VMFAULT_VIRTUAL_ADDRESS)
SNAPAPI_FLAGS += $(shell \
grep -qw "fault.(.*,.*)" $(srctree)/include/linux/mm.h && \
echo -DHAVE_VM_FAULT_2ARGS)
SNAPAPI_FLAGS += $(shell \
if grep -qw "bio_set_dev" $(srctree)/include/linux/bio.h; then \
echo -DHAVE_BIO_SET_DEV; \
fi)
SNAPAPI_FLAGS += $(shell \
if grep -qw "init_timer" $(srctree)/include/linux/timer.h; then \
echo -DHAVE_INIT_TIMER; \
fi)
SNAPAPI_FLAGS += $(shell \
grep -qw vm_fault_t $(srctree)/include/linux/mm_types.h && \
echo -DHAVE_VMFAULT_T)
SNAPAPI_FLAGS += $(shell \
grep -qw "bi_bdev" $(srctree)/include/linux/blk_types.h \
$(srctree)/include/linux/bio.h && \
echo -DHAVE_BIO_BI_BDEV)
SNAPAPI_FLAGS += $(shell \
grep -qw "bdget" $(srctree)/include/linux/fs.h && \
echo -DHAVE_BDGET)
SNAPAPI_FLAGS += $(shell \
grep -qw "thaw_bdev(.*,.*)" $(srctree)/include/linux/fs.h \
$(srctree)/include/linux/buffer_head.h \
$(srctree)/include/linux/blkdev.h && \
echo -DHAVE_THAW_BDEV_2ARGS)
SNAPAPI_FLAGS += $(shell \
grep -qw "bd_part" $(srctree)/include/linux/blk_types.h \
$(srctree)/include/linux/fs.h && \
echo -DHAVE_BD_PART)
SNAPAPI_FLAGS += $(shell \
grep -qw "__state;" $(srctree)/include/linux/sched.h && \
echo -DHAVE_UNDERLINE_STATE)
SNAPAPI_FLAGS += $(shell \
grep -qw "complete_and_exit" $(srctree)/include/linux/kernel.h && \
echo -DHAVE_COMPLETE_AND_EXIT)
SNAPAPI_FLAGS += $(shell \
grep -qw "bio_alloc(.*,.*)" $(srctree)/include/linux/bio.h && \
echo -DHAVE_BIO_ALLOC_2ARGS)
EXTRA_CFLAGS += $(SNAPAPI_FLAGS) $(DKMS_CFLAGS) -Wno-error -g
obj-m += snapapi26.o
obj-m += snumbd26.o