Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2885786rwb; Sat, 24 Sep 2022 17:53:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74wa+IKoh5n0wRYibWlVi9esKAwBAwiAFvkd64JfvBvCL9WmwRhIdvaDra85FQDMNxgSvo X-Received: by 2002:a63:4507:0:b0:43c:9cf4:f1d6 with SMTP id s7-20020a634507000000b0043c9cf4f1d6mr2019874pga.316.1664067213493; Sat, 24 Sep 2022 17:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664067213; cv=none; d=google.com; s=arc-20160816; b=JHBj0NY6hMEBg3Hc8d8mV1HdTYKz0+zZQaIt4ZSmuXMtqrRqexu/zW4Jbf5wyLXRuS WU4mLAHU6UaC9QLzwWDFN7o6eGClqkFvBIt2cUToRQTOTDP5mQptSi8buBtswHnO4Mn6 XWgd8PtlnPx7gAWg1FCHDzfaC1xpljewK6v/SgTqRpmtHLtFX7HYGsQjfZLJA2OVgyRZ iq+Io/p4u0HeVdGRTMVg9BdWXnv5HLltrpf2ImoP+XhXt7cRc4F+SwxIa/DTUiDR1T1J 37pTIXD07XTPjLjwkIptl5xJEL2A9mUbcmImMJ7vRsEGnZhEbd7Hqhw34zJi7T3Q1yTv +4mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DppxKsLVh6ZmQmzczDJR/PGILiF3xOVpf3GavpeSXaA=; b=nGT8qH83Bmk3jvMDp5JY4VJj3RKqOk/sHv9eg4GCd2RSsVpZWQwf4QgNAb98T80aIR mnsfB/BDWn1US8Axop5IwqGAR3mKhnbnelGGRElvCrnKUDUdm5csSJYFIOSiyK2Y1Z5a Ui1Dg7q27IdFLCM6F/CL+NlZD5a6/XmGC63bzWlEuY2Do5ac/GAX7UIcmd7vPS1Yr5Mj CVM6SKA0wXMXH6asJ3J1wRdAr1vosW4LASm/xbEz1BGz2iGzfHwmc53Xegx5yp/yDShp NsuGrpvxTLdEgl1F7W8IZrEGlKadtsk0SjuULKTVxrULOAhe59drp43cCtcI1bShwIp2 l1EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PTFJq7iM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020aa79382000000b0054796c5f15bsi11888184pfe.124.2022.09.24.17.53.21; Sat, 24 Sep 2022 17:53:33 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b=PTFJq7iM; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230396AbiIYAoG (ORCPT + 99 others); Sat, 24 Sep 2022 20:44:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231256AbiIYAn7 (ORCPT ); Sat, 24 Sep 2022 20:43:59 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8054660F for ; Sat, 24 Sep 2022 17:43:52 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id i15-20020a17090a4b8f00b0020073b4ac27so3619425pjh.3 for ; Sat, 24 Sep 2022 17:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=DppxKsLVh6ZmQmzczDJR/PGILiF3xOVpf3GavpeSXaA=; b=PTFJq7iMk3rsXWUCAWedsEyvuAXeHIOF8teXd+MnIZnk3qgxrvlvm2me4WDgNSZUfl eGR9e4eFxMgHfT9ZmIi/2JZsGHSKvYvrxJIDfUwHUcixdPaLO/SJSH3o4BX+IapDDcPC qL1mZQNBznXZkr/wiN/so0gi6hVxMKNlxGmmE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=DppxKsLVh6ZmQmzczDJR/PGILiF3xOVpf3GavpeSXaA=; b=lvZ9E5/fBNZN98ToQ9V0PqjJVCwL42pY4dd5xsDRLyO7uDgi+m4DFCL+pvIJGida47 f/vMot5wyaGsbfAt61eSgr8q5h8dUn7t4wu5jf5Ou0CxBxvYTkx+q6o4a2YK1y3h05Hh dqurZC5C6Ee3/9RdIiBi1jKpH8FbtcgGds+VjK2CL6pRppqZ9eteKgguRCum5ESoAr4o D3xr+J/8bNx48kK2a6bICrAQ+cV3Q3/55B+XSyz0xcun2giPduDoUzTht/Y4CcxhhVI4 RsNDXetlgGM4HeS4vP/1uaCr1/QvZOwUZtiXKrpewMRk6/qihlEW7FdNniBt2CR209b3 uonA== X-Gm-Message-State: ACrzQf0uVDhSLem9/SlRu/j5lViMVKyJXi6Um0BTGWe52tyieiGB5Oo7 P9dgc4NTLZwJssYCoVI6FXJLfA== X-Received: by 2002:a17:902:b68f:b0:178:627d:b38d with SMTP id c15-20020a170902b68f00b00178627db38dmr15532832pls.87.1664066631991; Sat, 24 Sep 2022 17:43:51 -0700 (PDT) Received: from google.com ([240f:75:7537:3187:cfca:1243:a69b:bb70]) by smtp.gmail.com with ESMTPSA id c10-20020a170903234a00b001743ba85d39sm8549293plh.110.2022.09.24.17.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Sep 2022 17:43:50 -0700 (PDT) Date: Sun, 25 Sep 2022 09:43:45 +0900 From: Sergey Senozhatsky To: Helge Deller Cc: John Ogness , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, "James E.J. Bottomley" , Greg Kroah-Hartman , linux-parisc@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH printk 11/18] printk: Convert console_drivers list to hlist Message-ID: References: <20220924000454.3319186-1-john.ogness@linutronix.de> <20220924000454.3319186-12-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (22/09/24 19:20), Helge Deller wrote: > diff --git a/arch/parisc/kernel/pdc_cons.c b/arch/parisc/kernel/pdc_cons.c > index 3f9abf0263ee..f15998aa47a8 100644 > --- a/arch/parisc/kernel/pdc_cons.c > +++ b/arch/parisc/kernel/pdc_cons.c > @@ -262,8 +262,6 @@ void __init pdc_console_init(void) > */ > void pdc_console_restart(bool hpmc) > { > - struct console *console; > - > if (pdc_console_initialized) > return; > > @@ -275,8 +273,8 @@ void pdc_console_restart(bool hpmc) > pdc_cons.flags &= ~CON_PRINTBUFFER; > > while (!hlist_empty(&console_list)) { > - unregister_console(READ_ONCE(hlist_entry(console_list.first, > - struct console, node))); > + unregister_console(hlist_entry(console_list.first, > + struct console, node)); In this case we maybe can use cons_first() macro here (perhaps give it a little more clear name (first_console()?) and move to printk.h) and also do READ_ONCE there