From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasileios Almpanis Date: Mon, 17 Aug 2026 11:54:21 +0000 Subject: Re: [Devel] [PATCH VZ10 v5 7/9] ve: Introduce per-VE failcount In-Reply-To: <4ccd2bf8a399dd400c8cff87c01adb0c91294af7.1785669419.git.vladimir.riabchun@virtuozzo.com> References: <4ccd2bf8a399dd400c8cff87c01adb0c91294af7.1785669419.git.vladimir.riabchun@virtuozzo.com> Message-ID: <178696766161.213331.2446685212456143421.b4-review@b4> List-Id: On Sun, 02 Aug 2026 11:40:37 +0000, Vladimir Riabchun 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