Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3746064lfb; Mon, 9 May 2022 03:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwADqFoefyjxDNXnrunZBk7cNaqjetIZYYsN5dMJY9LqUo0w2ZPsgi6y9A8tan4Uex18B5w X-Received: by 2002:a17:90b:1d03:b0:1dc:9589:7c90 with SMTP id on3-20020a17090b1d0300b001dc95897c90mr17413410pjb.225.1652091178832; Mon, 09 May 2022 03:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652091178; cv=none; d=google.com; s=arc-20160816; b=fRFnZoij0m7LPAjOG5eUTO6LyJk90KwkZ0JPJcSitLvkoWLnVxfMj3hRvZjnoWR99/ 4Av1yYOkdZBXpM8fZHoX2yxDd7CoJBV21vRfZy3Ky3TqOM0e912/qi98R1GVgpMiI66k V1WlcnB52DMa72HKsfTmLGA9WNrccXPaCWAVeZ4NBRp4sPD3DYftETvpdNZjoClehOk9 6ofIBO+aBLH8r5fbb0FP/cSZB+B7oNwUFlGVNdl8Sj1uGBsdBD+OEX28lhr4keemAkot wKp30k4LbqjGPkkx3ZhkuqJ3O9Z3hcaiTYwKZAYTMZuwA+9htwF2x2BGioQXH/3fp4Xn 7DFQ== 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; bh=l8OHsxUlLVDBXsbpqIkTHCNywfyQOjmrIl5Fa/x9L8Y=; b=rJuAmtADhfLRFO5mP2qY08EtIrdya+DGaKQIII7U4yRzZ/2yOFrkTthr3PT6WvJQlb hA6YmVjygEL6t9uAE120WZYr4CozTj2KYeJlmaaOWYfSMjJf4wvFqHo+i6y8f+/FZiHA 5fnAeGs4RqaQ0tYHGtTaKxfJsQM9hR9m7eXvPq4jtgbuy0lcNvwv0o9pPGHIBuW4lGcf qae28KDC+KuXtBeF4YonZCl+5C1ed18/ZWrZ0q/FA4BXFfN9fzCTa56rXKF6nnGSXv5F BFzxK5h+YPufK64ZJj/ir/gJHG0/iIi5w/2u17B6ctq0mJza7rRdardahSd9C6RmHXrQ BJ9Q== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d193-20020a6368ca000000b003c675146c17si8526129pgc.166.2022.05.09.03.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 03:12:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 35CE123EB67; Mon, 9 May 2022 02:51:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234368AbiEIGUg (ORCPT + 99 others); Mon, 9 May 2022 02:20:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235754AbiEIGLD (ORCPT ); Mon, 9 May 2022 02:11:03 -0400 Received: from isilmar-4.linta.de (isilmar-4.linta.de [136.243.71.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 813AB13C099 for ; Sun, 8 May 2022 23:07:09 -0700 (PDT) X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES Received: from owl.dominikbrodowski.net (owl.brodo.linta [10.2.0.111]) by isilmar-4.linta.de (Postfix) with ESMTPSA id 3EE71201342; Mon, 9 May 2022 06:07:07 +0000 (UTC) Received: by owl.dominikbrodowski.net (Postfix, from userid 1000) id D6B4F80822; Mon, 9 May 2022 08:06:03 +0200 (CEST) Date: Mon, 9 May 2022 08:06:03 +0200 From: Dominik Brodowski To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, Joe Perches Subject: Re: [PATCH v2] random: use symbolic constants for crng_init states Message-ID: References: <20220508173610.151998-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220508173610.151998-1-Jason@zx2c4.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Am Sun, May 08, 2022 at 07:36:10PM +0200 schrieb Jason A. Donenfeld: > crng_init represents a state machine, with three states, and various > rules for transitions. For the longest time, we've been managing these > with "0", "1", and "2", and expecting people to figure it out. To make > the code more obvious, replace these with proper enum values > representing the transition, and then redocument what each of these > states mean. > > Cc: Dominik Brodowski > Cc: Joe Perches > Signed-off-by: Jason A. Donenfeld Reviewed-by: Dominik Brodowski Thanks, Dominik