Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6034123iog; Thu, 23 Jun 2022 10:00:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uAlCOhhFldtXT50T+FJ1q41PBoZk8N/pzBdBvxIMmVZzxorH9GutkVLnjYJA4vQh0UQaxT X-Received: by 2002:a05:6402:388c:b0:435:548c:177e with SMTP id fd12-20020a056402388c00b00435548c177emr11997980edb.231.1656003614061; Thu, 23 Jun 2022 10:00:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656003614; cv=none; d=google.com; s=arc-20160816; b=W87wWr3+ssFwLUx8di444kQySpVPMKUpN4oGcTfi0eEXtsvuEn4tIOrMpAt8h6j5Cz EDm9omOS19q+OVHgBE4UjDtvHwH6UxA6zNtRTUHit8iHOevfURgbKBlPE15v1lB++sUf fBiHo/DHvp+pYKtIukpnxjjzvvjcACWBLjmi9JwlmnrG2zaw9rHPrM/cg7tOtlc8TdJL ONuU00MrojzpJhkxr+CFp/bITMXu2sx2muIXx0GS+rEBC+GUFKkCyEUkJxHQF1ejiQZ+ kBCPuYe5amzYqwziPMGCgLC9k6sc11ZzIzqPDgmRFAYnkt65CI+3nrnT6IoUIcfJMwOw iHfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IHCKD5Tnc9UrG82CgsJm6FiMbo+oZR2xoFpBQdk3jYU=; b=Q2vQItySfK7FNliKoVl5PFKb5Mjeoo1qqmzatFFNpramW5+adcjqg0lP+PIhgiTGr+ z5sAc7Xl0yCO7JuiIWB39728LkbaWJ07EKC1FdQjLE/kEdVaLo9xfc1SSqu6j8XrmUr7 45ZO+AzQIVU20giMcVlLYKJV8PTSrV892xAl6a+/DnQZjNRRU69h0AMLSmBaICru98jg baJ+TekWsbzAYrUoG65LNeAIbzzEgDrN9/r9QjYIwPUXC3/Piw8YEm01I8eFR11E7LRK TcETrjrsXr8qmMA8DfWqLHGW9CQARoZHlp+0fiVnHn0px4N8XCrlQYgHpMY09iVRXuTe co9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nz2foMzq; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho30-20020a1709070e9e00b007157f03b8b4si4354928ejc.293.2022.06.23.09.59.40; Thu, 23 Jun 2022 10:00:14 -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=@linuxfoundation.org header.s=korg header.b=nz2foMzq; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233252AbiFWQ5k (ORCPT + 99 others); Thu, 23 Jun 2022 12:57:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232082AbiFWQwh (ORCPT ); Thu, 23 Jun 2022 12:52:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B92110B6; Thu, 23 Jun 2022 09:52:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B574461FC2; Thu, 23 Jun 2022 16:52:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90A19C341C5; Thu, 23 Jun 2022 16:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003156; bh=YpkhMeXBrmX0JFVy3p78yrqaOUSWZX8GthRE//wHpMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nz2foMzqH5YA/P1PqV7Yh+t8SSGXygZ/O7dmJ3dK2HJUFbBEZJLyBJwEZAB5oprV4 orxx0S2FQV59j8+8f4SJhGP2TPVdcaByE3y9DQUW2mXUH+gf178vvVr+PxLoLWi7SV 4qoJQL1PZt/enjysA87iLPFVDIoxFEvyqxDDW6QM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Corentin Labbe , Herbert Xu , "Jason A. Donenfeld" Subject: [PATCH 4.9 148/264] hwrng: core - Move hwrng miscdev minor number to include/linux/miscdevice.h Date: Thu, 23 Jun 2022 18:42:21 +0200 Message-Id: <20220623164348.252752481@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164344.053938039@linuxfoundation.org> References: <20220623164344.053938039@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Corentin LABBE commit fd50d71f94fb1c8614098949db068cd4c8dbb91d upstream. This patch move the define for hwrng's miscdev minor number to include/linux/miscdevice.h. It's better that all minor number are in the same place. Rename it to HWRNG_MINOR (from RNG_MISCDEV_MINOR) in he process since no other miscdev define have MISCDEV in their name. Signed-off-by: Corentin Labbe Signed-off-by: Herbert Xu Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- drivers/char/hw_random/core.c | 3 +-- include/linux/miscdevice.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c @@ -26,7 +26,6 @@ #define RNG_MODULE_NAME "hw_random" #define PFX RNG_MODULE_NAME ": " -#define RNG_MISCDEV_MINOR 183 /* official */ static struct hwrng *current_rng; static struct task_struct *hwrng_fill; @@ -283,7 +282,7 @@ static const struct file_operations rng_ static const struct attribute_group *rng_dev_groups[]; static struct miscdevice rng_miscdev = { - .minor = RNG_MISCDEV_MINOR, + .minor = HWRNG_MINOR, .name = RNG_MODULE_NAME, .nodename = "hwrng", .fops = &rng_chrdev_ops, --- a/include/linux/miscdevice.h +++ b/include/linux/miscdevice.h @@ -31,6 +31,7 @@ #define SGI_MMTIMER 153 #define STORE_QUEUE_MINOR 155 /* unused */ #define I2O_MINOR 166 +#define HWRNG_MINOR 183 #define MICROCODE_MINOR 184 #define VFIO_MINOR 196 #define TUN_MINOR 200