Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2486744pxb; Thu, 3 Feb 2022 07:39:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfRZi7nf5G9ldsvWlXuMDgksG0sn/B121vQQ5TeSyDYIrnUSez7+kQHKaFLbj8YsFRKby7 X-Received: by 2002:a05:6402:358e:: with SMTP id y14mr35851670edc.136.1643902785926; Thu, 03 Feb 2022 07:39:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643902785; cv=none; d=google.com; s=arc-20160816; b=T1iYQzmteDJ4EvqsPKNcgPezSYD3jVj1nW2AZFKEdNBVPUWnvK4e9igRJwYFTyvzqo F6qh0AuBHdfzUdrXWFN8e/2mG3t76+jp/4Gxjae4p8iMd2laZuoGFOX2KZaFi/nl8Nyn LPFxUbguUeIMn1F/kxES27nLxLZ3owi2Lv4IqFQ1B0yOfSv6cOjQlF9+AAaWxor76Ws5 R1aA1tJXwpjLjXqv6ODOWgf0USTkmfjXM/Shszy0TFtPId9JA1jtuKrFUlcAC1zMuYqm HS/15tfQ1mNrYP5NZy6X9MHq41HKhwG69x6AjOBnFO7bC+VCOPsH3FmYUuX9PnQM6uev 0how== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=YMvPdu1FDdP95BRsv+5Teh17OUBAE/eVt5OmqC+P+NU=; b=UJ5cml47CdA0p/XKBbQg4Wiok9lNSx5cIPEaYcUfIY3a/FlHgVpujIFUzOMZ/4qPj+ 2GshwqoA5yBM0O90/9Lh02r+qSAywuyKkDOWrPiNXxAoztODtAq3SLrw01c03O8YV+ab qDVMnwhuf0Mrbt3RfqAispLtL0v2QEyaOII2PPF+6oFeMmOmM5RpBBOIIrBBsDKPM8G9 eQBUX4O/aMDbgfxNOtd5+mMyb/dkatI1Lb83YfPatWftBlZ0plbR1k7zVfduy/gUyAJq +AlCeei6pPHXtt1X/94rKOUwrq35ol/DAACMKiKkDC69WvCj5UF8buxcHbBqW2AXJs7p pMQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13si16907344edz.583.2022.02.03.07.39.21; Thu, 03 Feb 2022 07:39:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350834AbiBCNr2 (ORCPT + 99 others); Thu, 3 Feb 2022 08:47:28 -0500 Received: from mail-ua1-f47.google.com ([209.85.222.47]:45031 "EHLO mail-ua1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbiBCNr1 (ORCPT ); Thu, 3 Feb 2022 08:47:27 -0500 Received: by mail-ua1-f47.google.com with SMTP id p26so5190513uaa.11; Thu, 03 Feb 2022 05:47:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YMvPdu1FDdP95BRsv+5Teh17OUBAE/eVt5OmqC+P+NU=; b=p6uTcMomaYfMRVHqw4AlDMn8L9ODGmvx/+13AWgn82M+O/GgYp0hwOP9aG3yANvFAW GNSMOagcum4HI5XU5duIhWP+cHiuGsHaLt7cxL7EWGp9z3f+jsl1UsVCTyveVILLnddi s3bekcV32orNdnNUbm7rFeBBvO5uNs++K+qwEy3tUDsLHy/eh4NF7pOtZQJlPXq3VtYC N4wNdrCPY0Vdn8b8v2XwcLnjNbTy1h2LTTiPw/ymGBfJyHKMjPTGgkqiVC4RCyPPub03 qEiqujKIgJq3M/ocR0QtEnhea0/9rYZBaevNR1PMhRQjGXmUFMfoso5dH+r749I6s6YH P2mQ== X-Gm-Message-State: AOAM530Thr7vjodxCWtayUvRitFpT1W7+lmOFGjStN3ZK/vHLYmJ7d1W KCg8ztq1jLx/uADc1FX/u8iburoXilxzZg== X-Received: by 2002:a67:e901:: with SMTP id c1mr13975103vso.38.1643896046807; Thu, 03 Feb 2022 05:47:26 -0800 (PST) Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com. [209.85.222.43]) by smtp.gmail.com with ESMTPSA id g22sm5625844vsk.26.2022.02.03.05.47.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Feb 2022 05:47:25 -0800 (PST) Received: by mail-ua1-f43.google.com with SMTP id u76so5288058uau.3; Thu, 03 Feb 2022 05:47:25 -0800 (PST) X-Received: by 2002:a67:5f83:: with SMTP id t125mr13059550vsb.68.1643896045081; Thu, 03 Feb 2022 05:47:25 -0800 (PST) MIME-Version: 1.0 References: <20220131210552.482606-1-daniel.vetter@ffwll.ch> <20220131210552.482606-10-daniel.vetter@ffwll.ch> <723422bf-eb13-095f-66c5-e4011653e21d@suse.de> In-Reply-To: <723422bf-eb13-095f-66c5-e4011653e21d@suse.de> From: Geert Uytterhoeven Date: Thu, 3 Feb 2022 14:47:13 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/21] fbcon: Replace FBCON_FLAGS_INIT with a boolean To: Thomas Zimmermann Cc: Daniel Vetter , DRI Development , Intel Graphics Development , Linux Fbdev development list , LKML , Daniel Vetter , Daniel Vetter , Tetsuo Handa , Greg Kroah-Hartman , Du Cheng , Claudio Suarez Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 2, 2022 at 10:25 AM Thomas Zimmermann wrote: > Am 31.01.22 um 22:05 schrieb Daniel Vetter: > > It's only one flag and slightly tidier code. > > > > Signed-off-by: Daniel Vetter > > Cc: Daniel Vetter > > Cc: Tetsuo Handa > > Cc: Greg Kroah-Hartman > > Cc: Du Cheng > > Cc: Thomas Zimmermann > > Cc: Claudio Suarez > > Acked-by: Thomas Zimmermann > > +++ b/drivers/video/fbdev/core/fbcon.h > > @@ -18,8 +18,6 @@ > > > > #include > > > > -#define FBCON_FLAGS_INIT 1 > > - > > /* > > * This is the interface between the low-level console driver and the > > * low-level frame buffer device > > @@ -77,7 +75,7 @@ struct fbcon_ops { > > int blank_state; > > int graphics; > > int save_graphics; /* for debug enter/leave */ > > - int flags; > > + bool initialized; > > This will add 3 bytes of padding. Maybe you can put the bool elsewhere. Several of the int variables are used as boolean flags, too. Perhaps convert them all to bitfields? unsigned int initialized : 1; ... > > int rotate; > > int cur_rotate; > > char *cursor_data; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds