Content-Type: multipart/mixed; boundary="===============8770785927053718480==" MIME-Version: 1.0 From: John Ogness To: kbuild-all@lists.01.org Subject: Re: [PATCH] printk/console: Check consistent sequence number when handling race in console_unlock() Date: Tue, 29 Jun 2021 22:59:57 +0206 Message-ID: <87zgv8bdei.fsf@jogness.linutronix.de> In-Reply-To: <202106300338.57cbEezZ-lkp@intel.com> List-Id: --===============8770785927053718480== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 2021-06-30, kernel test robot wrote: >>> kernel/printk/printk.c:2548:6: warning: variable 'next_seq' set but not= used [-Wunused-but-set-variable] I suppose the correct fix for this warning would be to change the NOP macros. Currently they are: #define prb_read_valid(rb, seq, r) false #define prb_first_valid_seq(rb) 0 They should probably be something like (untested): #define prb_read_valid(rb, seq, r) \ ({ \ (void)(rb); \ (void)(seq); \ (void)(r); \ false; \ }) #define prb_first_valid_seq(rb) \ ({ \ (void)(rb); \ 0; \ }) John Ogness --===============8770785927053718480==--