[Devel] [PATCH VZ10 v5 7/9] ve: Introduce per-VE failcount

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Mon Aug 17 14:54:21 MSK 2026


On Sun, 02 Aug 2026 11:40:37 +0000, Vladimir Riabchun <vladimir.riabchun at virtuozzo.com> wrote:
> diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
> index dc3faa0b1d76..a5c93be759ac 100644
> --- a/kernel/ve/ve.c
> +++ b/kernel/ve/ve.c
> @@ -1066,6 +1083,50 @@ VE_RESOURCE(mnt);
> [ ... skip 19 lines ... ]
> +static int ve_failcount_read(struct seq_file *sf, void *v)
> +{
> +	struct ve_struct *ve = css_to_ve(seq_css(sf));
> +	struct ve_failcount_entry *entry;
> +	atomic_t *fc;
> +

kernel/ve/ve.c: In function ‘ve_failcount_read’:
kernel/ve/ve.c:1107:20: warning: assignment discards ‘const’ qualifier 
from pointer target type [-Wdiscarded-qualifiers]
  1107 |         for (entry = ve_failcounts; entry->name; entry++) {
       |                    ^
kernel/ve/ve.c: In function ‘ve_failcount_write’:
kernel/ve/ve.c:1121:20: warning: assignment discards ‘const’ qualifier 
from pointer target type [-Wdiscarded-qualifiers]
  1121 |         for (entry = ve_failcounts; entry->name; entry++) {

the left-hand pointee must carry all qualifiers of the right-hand pointee according to C11

-- 
Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>


More information about the Devel mailing list