.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* ds.c: Domain Services driver for Logical Domains |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net> |
---|
.. | .. |
---|
86 | 87 | __u64 handle; |
---|
87 | 88 | __u16 major; |
---|
88 | 89 | __u16 minor; |
---|
89 | | - char svc_id[0]; |
---|
| 90 | + char svc_id[]; |
---|
90 | 91 | }; |
---|
91 | 92 | |
---|
92 | 93 | struct ds_reg_ack { |
---|
.. | .. |
---|
554 | 555 | |
---|
555 | 556 | printk(KERN_INFO "ds-%llu: Starting cpu %d...\n", |
---|
556 | 557 | dp->id, cpu); |
---|
557 | | - err = cpu_up(cpu); |
---|
| 558 | + err = add_cpu(cpu); |
---|
558 | 559 | if (err) { |
---|
559 | 560 | __u32 res = DR_CPU_RES_FAILURE; |
---|
560 | 561 | __u32 stat = DR_CPU_STAT_UNCONFIGURED; |
---|
.. | .. |
---|
610 | 611 | |
---|
611 | 612 | printk(KERN_INFO "ds-%llu: Shutting down cpu %d...\n", |
---|
612 | 613 | dp->id, cpu); |
---|
613 | | - err = cpu_down(cpu); |
---|
| 614 | + err = remove_cpu(cpu); |
---|
614 | 615 | if (err) |
---|
615 | 616 | dr_cpu_mark(resp, cpu, ncpus, |
---|
616 | 617 | DR_CPU_RES_FAILURE, |
---|
.. | .. |
---|
700 | 701 | |
---|
701 | 702 | struct ds_var_set_msg { |
---|
702 | 703 | struct ds_var_hdr hdr; |
---|
703 | | - char name_and_value[0]; |
---|
| 704 | + char name_and_value[]; |
---|
704 | 705 | }; |
---|
705 | 706 | |
---|
706 | 707 | struct ds_var_delete_msg { |
---|
707 | 708 | struct ds_var_hdr hdr; |
---|
708 | | - char name[0]; |
---|
| 709 | + char name[]; |
---|
709 | 710 | }; |
---|
710 | 711 | |
---|
711 | 712 | struct ds_var_resp { |
---|
.. | .. |
---|
876 | 877 | |
---|
877 | 878 | static void ds_conn_reset(struct ds_info *dp) |
---|
878 | 879 | { |
---|
879 | | - printk(KERN_ERR "ds-%llu: ds_conn_reset() from %pf\n", |
---|
| 880 | + printk(KERN_ERR "ds-%llu: ds_conn_reset() from %ps\n", |
---|
880 | 881 | dp->id, __builtin_return_address(0)); |
---|
881 | 882 | } |
---|
882 | 883 | |
---|
.. | .. |
---|
988 | 989 | struct ds_info *dp; |
---|
989 | 990 | int req_len; |
---|
990 | 991 | int __pad; |
---|
991 | | - u64 req[0]; |
---|
| 992 | + u64 req[]; |
---|
992 | 993 | }; |
---|
993 | 994 | |
---|
994 | 995 | static void process_ds_work(void) |
---|