Skip to content

Using TCP/IP for DSM #2

@moharaka

Description

@moharaka

Hi,

I am trying to compile using the TCP/IP for network communication. However, when I compile I get this error:

$ make
...
arch/x86/kvm/krdma.c: In function ‘krdma_connect_single’:
arch/x86/kvm/krdma.c:325:2: warning: ignoring return value of ‘kstrtol’, declared with attribute warn_unused_result [-Wunused-result]
  kstrtol(port, 10, &portdec);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/krdma.c: In function ‘krdma_listen’:
arch/x86/kvm/krdma.c:550:2: warning: ignoring return value of ‘kstrtol’, declared with attribute warn_unused_result [-Wunused-result]
  kstrtol(port, 10, &portdec);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC      arch/x86/kvm/dsm.o
arch/x86/kvm/dsm.c: In function ‘kvm_dsm_init’:
arch/x86/kvm/dsm.c:573:19: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  network_ops.send = ktcp_send;
                   ^
arch/x86/kvm/dsm.c:574:22: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
  network_ops.receive = ktcp_receive;
                      ^
arch/x86/kvm/dsm.c:553:2: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
  copy_from_user(user_cluster_iplist, params->cluster_iplist, sizeof(void *) *
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    params->cluster_iplist_len);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/dsm.c:561:3: warning: ignoring return value of ‘strncpy_from_user’, declared with attribute warn_unused_result [-Wunused-result]
   strncpy_from_user(kvm->arch.cluster_iplist[i], user_cluster_iplist[i], 20);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:293: recipe for target 'arch/x86/kvm/dsm.o' failed
make[2]: *** [arch/x86/kvm/dsm.o] Error 1
scripts/Makefile.build:544: recipe for target 'arch/x86/kvm' failed
make[1]: *** [arch/x86/kvm] Error 2
Makefile:995: recipe for target 'arch/x86' failed
make: *** [arch/x86] Error 2

Any idea on the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions