From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDDE3C43461 for ; Wed, 9 Sep 2020 10:01:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AF7A021D7B for ; Wed, 9 Sep 2020 10:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726535AbgIIKB6 (ORCPT ); Wed, 9 Sep 2020 06:01:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:33370 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725877AbgIIKBx (ORCPT ); Wed, 9 Sep 2020 06:01:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 00E1CAD80; Wed, 9 Sep 2020 10:01:53 +0000 (UTC) Date: Wed, 9 Sep 2020 12:01:51 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Andrea Parri , Paul McKenney , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v4 4/6] printk: ringbuffer: change representation of states Message-ID: <20200909100151.GF3864@alley> References: <20200908202859.2736-1-john.ogness@linutronix.de> <20200908202859.2736-5-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200908202859.2736-5-john.ogness@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2020-09-08 22:34:57, John Ogness wrote: > Rather than deriving the state by evaluating bits within the flags > area of the state variable, assign the states explicit values and > set those values in the flags area. Introduce macros to make it > simple to read and write state values for the state variable. > > Although the functionality is preserved, the binary representation > for the states is changed. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr