Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6139425iog; Thu, 23 Jun 2022 12:09:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uKEUs0Pc+J5JYHJ0691zPi7M4r0XwgL3ZOBg6Z03TQ7UCKthtEcXNAk91nYx3pcnFEbyVi X-Received: by 2002:a17:902:e1d1:b0:16a:1748:19a8 with SMTP id t17-20020a170902e1d100b0016a174819a8mr26766104pla.80.1656011398740; Thu, 23 Jun 2022 12:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011398; cv=none; d=google.com; s=arc-20160816; b=QS68I8sRlGJGHswdSU16xSVfsbHxWuJXLmLJg7yMTKTn5hyXBqcG8vzIwC2ixTwKyB OV/h2pelIfbdvI7aW9LJRw/AsueCo0UlwVAevbrZq5GFGNrmtAWjS9UP5BOQA+vDs204 OdCltb0MRaZfOwgqrPn9Pus4paacK6XpKqOsw6Vib597ARCHe7eSfQnMc9N0nHQzWCHD qwp5NRSIqrKSACF7O41RBxUfv4BlroJquSUfVpPZ8Yx7fHdkO1d8S+Hrh6oCfkfT3YLI /pzTsPEHItl3qSdJ9i0EC/A0Vk34Z9PAfu4ImXpb5LqUuc4T8I2xdEy5CErFQSnbdTg9 lOcw== 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=l7VcpH+ohF4/u/wQGZqTu2sNJcb0DXp0wILZK2PIPWI=; b=vHbHLFJymE5kGq9cYDsmjzZkmzL4GzjWExylWsfbrliLXaST7N/ynafnmNgPu7aS84 J3LUIa1jIfg2pngwRm7ChCvJMnrAt8RXaqiuMtjazyvrabU6VEOL6YyJhhpl29X1FOQy vvfmp+AiI++6FgA/wl0IEeVPsOQ2P+Qswy4wN3URRI/vi3WeNaie9t4bM4x+gq0DtJpa y4SMQN4yPMDbsSxBBl7nZ2+wdS6gK/21w/0ke5TCHxkc73N7U9aL6Cm7JHkkuIooGudo zNNecXZBmZ15gRD20AHdTFFfXjtK0XhDwwJIxPa+WDPPOGXWDgsgmSNMFaWnbCQL1Ndh VS8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ATnfUNnU; 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 s34-20020a056a0017a200b00525659add83si1687842pfg.294.2022.06.23.12.09.47; Thu, 23 Jun 2022 12:09:58 -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=ATnfUNnU; 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 S232413AbiFWR5C (ORCPT + 99 others); Thu, 23 Jun 2022 13:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235989AbiFWRxm (ORCPT ); Thu, 23 Jun 2022 13:53:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AE8456F9A; Thu, 23 Jun 2022 10:14:33 -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 ams.source.kernel.org (Postfix) with ESMTPS id BD18AB824BA; Thu, 23 Jun 2022 17:14:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D39B8C3411B; Thu, 23 Jun 2022 17:14:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656004470; bh=ae2D2tKswpPnQf+75FHprNitIsIz5BouRfkpCcPwMOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ATnfUNnUR8zeg79i8Kap46kXmoItLIqn6sAalDOji+AMtjRbD0rCiMSLF0mCm73zD ZZGe3tPfpiZoVECO8mRGF66rJzvSi0wpsqVjwQqqk7nf707q6oLZsf8xFD/hhiUYZK aRLXwe2kNIARBIueerNOcsHOFIHQehDCIKy1fH3U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Borislav Petkov , Dave Hansen , Dexuan Cui , "H. Peter Anvin" , Haiyang Zhang , Ingo Molnar , "K. Y. Srinivasan" , Stephen Hemminger , Thomas Gleixner , Wei Liu , linux-hyperv@vger.kernel.org, x86@kernel.org, Sebastian Andrzej Siewior , "Jason A. Donenfeld" Subject: [PATCH 4.19 049/234] random: remove unused irq_flags argument from add_interrupt_randomness() Date: Thu, 23 Jun 2022 18:41:56 +0200 Message-Id: <20220623164344.454446083@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220623164343.042598055@linuxfoundation.org> References: <20220623164343.042598055@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: Sebastian Andrzej Siewior commit 703f7066f40599c290babdb79dd61319264987e9 upstream. Since commit ee3e00e9e7101 ("random: use registers from interrupted code for CPU's w/o a cycle counter") the irq_flags argument is no longer used. Remove unused irq_flags. Cc: Borislav Petkov Cc: Dave Hansen Cc: Dexuan Cui Cc: H. Peter Anvin Cc: Haiyang Zhang Cc: Ingo Molnar Cc: K. Y. Srinivasan Cc: Stephen Hemminger Cc: Thomas Gleixner Cc: Wei Liu Cc: linux-hyperv@vger.kernel.org Cc: x86@kernel.org Signed-off-by: Sebastian Andrzej Siewior Acked-by: Wei Liu Signed-off-by: Jason A. Donenfeld Signed-off-by: Greg Kroah-Hartman --- drivers/char/random.c | 4 ++-- drivers/hv/hv.c | 2 +- drivers/hv/vmbus_drv.c | 2 +- include/linux/random.h | 2 +- kernel/irq/handle.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -200,7 +200,7 @@ * void add_device_randomness(const void *buf, unsigned int size); * void add_input_randomness(unsigned int type, unsigned int code, * unsigned int value); - * void add_interrupt_randomness(int irq, int irq_flags); + * void add_interrupt_randomness(int irq); * void add_disk_randomness(struct gendisk *disk); * void add_hwgenerator_randomness(const char *buffer, size_t count, * size_t entropy); @@ -1272,7 +1272,7 @@ static __u32 get_reg(struct fast_pool *f return *ptr; } -void add_interrupt_randomness(int irq, int irq_flags) +void add_interrupt_randomness(int irq) { struct entropy_store *r; struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness); --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -115,7 +115,7 @@ static void hv_stimer0_isr(void) hv_cpu = this_cpu_ptr(hv_context.cpu_context); hv_cpu->clk_evt->event_handler(hv_cpu->clk_evt); - add_interrupt_randomness(stimer0_vector, 0); + add_interrupt_randomness(stimer0_vector); } static int hv_ce_set_next_event(unsigned long delta, --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -1146,7 +1146,7 @@ static void vmbus_isr(void) tasklet_schedule(&hv_cpu->msg_dpc); } - add_interrupt_randomness(HYPERVISOR_CALLBACK_VECTOR, 0); + add_interrupt_randomness(HYPERVISOR_CALLBACK_VECTOR); } /* --- a/include/linux/random.h +++ b/include/linux/random.h @@ -35,7 +35,7 @@ static inline void add_latent_entropy(vo extern void add_input_randomness(unsigned int type, unsigned int code, unsigned int value) __latent_entropy; -extern void add_interrupt_randomness(int irq, int irq_flags) __latent_entropy; +extern void add_interrupt_randomness(int irq) __latent_entropy; extern void get_random_bytes(void *buf, int nbytes); extern int wait_for_random_bytes(void); --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -188,7 +188,7 @@ irqreturn_t handle_irq_event_percpu(stru retval = __handle_irq_event_percpu(desc, &flags); - add_interrupt_randomness(desc->irq_data.irq, flags); + add_interrupt_randomness(desc->irq_data.irq); if (!noirqdebug) note_interrupt(desc, retval);