Giter VIP home page Giter VIP logo

iomemory-vsl's People

Contributors

vinsonlee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iomemory-vsl's Issues

Support for Kernel 4.12

Hi there!
I'm interested in getting this working with 3.2.15 and the Linux kernel 4.12 on Centos 7. My C++ is a bit stale, but wanted to share my experiences when attempting to compile your src under that environment.

Not sure if you have any plans to continue the development for the latest kernel, but you at least have one person who is out there, and interested!

:

Linux randomserver.localdomain 4.12.1-1.el7.elrepo.x86_64 #1 SMP Thu Jul 13 07:25:32 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

This was the output as I attempted to build:

  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/khotplug.o
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kmem.c: In function 'kfio_get_user_pages':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kmem.c:757:85: warning: passing argument 5 of 'get_user_pages' from incompatible pointer type [enabled by default]
     retval =  get_user_pages(GET_USER_PAGES_TASK start, nr_pages, write, 0, (struct page **) pages, NULL);
                                                                                     ^
In file included from ./include/linux/pagemap.h:7:0,
                 from ./include/linux/blkdev.h:15,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/port-internal.h:62,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kmem.c:33:
./include/linux/mm.h:1320:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kmem.c:757:85: error: too many arguments to function 'get_user_pages'
     retval =  get_user_pages(GET_USER_PAGES_TASK start, nr_pages, write, 0, (struct page **) pages, NULL);
                                                                                     ^
In file included from ./include/linux/pagemap.h:7:0,
                 from ./include/linux/blkdev.h:15,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/port-internal.h:62,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kmem.c:33:
./include/linux/mm.h:1320:6: note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kfio.c: In function 'kfio_pci_enable_msix':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kfio.c:509:5: error: implicit declaration of function 'pci_enable_msix' [-Werror=implicit-function-declaration]
     err = pci_enable_msix(pdev, msi, nr_vecs);
     ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/pci.c:293:3: error: unknown field 'link_reset' specified in initializer
   link_reset:iodrive_pcie_link_reset,
   ^
make[2]: *** [/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kmem.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/pci.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kfio.o] Error 1
In file included from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:59:0:
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function 'kfio_dump_bio':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:104:49: error: 'BIO_OP_SHIFT' undeclared (first use in this function)
 #define bio_flags(bio)  ((bio)->bi_opf & ((1 << BIO_OP_SHIFT) - 1))
                                                 ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/include/fio/port/dbgset.h:202:58: note: in definition of macro 'infprint'
 #define infprint(...)  kfio_print(KERN_INFO "fioinf " AT __VA_ARGS__)
                                                          ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:938:65: note: in expansion of macro 'bio_flags'
              sector, (unsigned long)bio->bi_flags, bio_op(bio), bio_flags(bio), bio->bi_vcnt);
                                                                 ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:104:49: note: each undeclared identifier is reported only once for each function it appears in
 #define bio_flags(bio)  ((bio)->bi_opf & ((1 << BIO_OP_SHIFT) - 1))
                                                 ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/include/fio/port/dbgset.h:202:58: note: in definition of macro 'infprint'
 #define infprint(...)  kfio_print(KERN_INFO "fioinf " AT __VA_ARGS__)
                                                          ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:938:65: note: in expansion of macro 'bio_flags'
              sector, (unsigned long)bio->bi_flags, bio_op(bio), bio_flags(bio), bio->bi_vcnt);
                                                                 ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function '__kfio_bio_sync':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:104:49: error: 'BIO_OP_SHIFT' undeclared (first use in this function)
 #define bio_flags(bio)  ((bio)->bi_opf & ((1 << BIO_OP_SHIFT) - 1))
                                                 ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:991:12: note: in expansion of macro 'bio_flags'
     return bio_flags(bio) == REQ_SYNC;
            ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function 'complete_list_entries':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:1926:34: error: 'struct request' has no member named 'errors'
         kfio_end_request(req, req->errors < 0 ? req->errors : 1);
                                  ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:1926:52: error: 'struct request' has no member named 'errors'
         kfio_end_request(req, req->errors < 0 ? req->errors : 1);
                                                    ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function 'kfio_elevator_change':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:2045:5: warning: passing argument 1 of 'elevator_exit' from incompatible pointer type [enabled by default]
     elevator_exit(q->elevator);
     ^
In file included from ./include/linux/blkdev.h:261:0,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/port-internal.h:62,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:58:
./include/linux/elevator.h:223:13: note: expected 'struct request_queue *' but argument is of type 'struct elevator_queue *'
 extern void elevator_exit(struct request_queue *, struct elevator_queue *);
             ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:2045:5: error: too few arguments to function 'elevator_exit'
     elevator_exit(q->elevator);
     ^
In file included from ./include/linux/blkdev.h:261:0,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/port-internal.h:62,
                 from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:58:
./include/linux/elevator.h:223:13: note: declared here
 extern void elevator_exit(struct request_queue *, struct elevator_queue *);
             ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function 'kfio_req_completor':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:2200:8: error: 'struct request' has no member named 'errors'
     req->errors = error;
        ^
In file included from /root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:59:0:
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function 'kfio_request_to_bio':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:104:49: error: 'BIO_OP_SHIFT' undeclared (first use in this function)
 #define bio_flags(bio)  ((bio)->bi_opf & ((1 << BIO_OP_SHIFT) - 1))
                                                 ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/include/fio/port/dbgset.h:201:58: note: in definition of macro 'errprint'
 #define errprint(...)  kfio_print(KERN_ERR  "fioerr " AT __VA_ARGS__)
                                                          ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:2360:40: note: in expansion of macro 'bio_flags'
                          bio_op(lbio), bio_flags(lbio));
                                        ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function 'kfio_do_request':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:2476:24: error: 'struct request' has no member named 'cmd_type'
                 if (req->cmd_type == REQ_TYPE_FS)
                        ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:2476:38: error: 'REQ_TYPE_FS' undeclared (first use in this function)
                 if (req->cmd_type == REQ_TYPE_FS)
                                      ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function 'kfio_fetch_next_bio':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:2667:21: error: 'struct request' has no member named 'errors'
                 creq->errors = -EIO;
                     ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c: In function '__kfio_bio_sync':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.c:1001:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[2]: *** [/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/kblock.o] Error 1
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/khotplug.c: In function 'kfio_register_cpu_notifier':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/khotplug.c:117:9: error: implicit declaration of function 'register_cpu_notifier' [-Werror=implicit-function-declaration]
         register_cpu_notifier(&kfio_linux_cpu_notifier);
         ^
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/khotplug.c: In function 'kfio_unregister_cpu_notifier':
/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/khotplug.c:154:9: error: implicit declaration of function 'unregister_cpu_notifier' [-Werror=implicit-function-declaration]
         unregister_cpu_notifier(&kfio_linux_cpu_notifier);
         ^
cc1: some warnings being treated as errors
make[2]: *** [/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source/khotplug.o] Error 1
make[1]: *** [_module_/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source] Error 2
make[1]: Leaving directory `/usr/src/kernels/4.12.1-1.el7.elrepo.x86_64'
make: *** [modules] Error 2
make: Leaving directory `/root/rpmbuild/BUILD/iomemory-vsl-3.2.15.1699/driver_source'
+ set +x
ERROR:

error: Bad exit status from /var/tmp/rpm-tmp.WqHfoA (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.WqHfoA (%build)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.