Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6146223iog; Thu, 23 Jun 2022 12:17:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sWhtIzG9aRMAgVxZ2ctRzc3lxLG7VT62HO56OlsRF+KSFR+C0MGdh4Aektav0jZueQD0l0 X-Received: by 2002:a05:6a00:885:b0:510:950f:f787 with SMTP id q5-20020a056a00088500b00510950ff787mr41895308pfj.83.1656011874537; Thu, 23 Jun 2022 12:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656011874; cv=none; d=google.com; s=arc-20160816; b=TuwiXu+oZ/ZqSVJwPaJ/pVA3YBY0PjTiyBU2c/dTfPgN0ykesMiWxoY7+KrxRUiI9S 4Nrm7UH+rngttNo1b1ApCeyTbEzSuwJmE1/LdY4xg7+R6LXbdd68iQyl5W68pqlitKHe zuhAo1RiWuCD5pi9e66BPOelWhIqLY+3l4wS7lmKChydmtdCQbQJWgE7KKBvl8hj0EOl Mz1tAqVeyNHHhri7KXvu0hKio4zgm++W2RCrfDq9AFaRMJTtQiYhUNVoPcM+DHTLbSwL Hoth70oJWwwW5hRnmnIdbp7YxCmvgDOzcVzqF31Z+63OpV/7nWWaOChpX+9r0GKY/OkM gwfg== 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=xuyUT6SA0IhDh5oj8P2db/3CPCapYD0n9LKKy95reGk=; b=HhfVOak8gBanSQOObTK52WggWGGJRBkL5sTaKrjartjzzFs7WXQNHZNYAMbvSwbccg qXe8jP5oBDe9u538BoSC2b9iXeU4EHa8f3FIvtY0LNQhlMt9sEYZNwql1LC+taG9rrww Q2qWQftYsMRsKGS2bM5D9nyE3YqudF8X4UhecHr1Vw4s9eAt9Ahg61bKz7BqMS3OOSZg E6VB0gwyQwXZImyy/OE33uoO1EmHJMyFgMmFWIM4FWzydt+c3JLNxC/GxjVl8UEcpzWO I7C83FdypKzogiyVOqfENs+eFuxzryFE9LeWmcczLyynYcE40vGwHh2ilNmvXGjUtdg2 aujA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ursa1TTo; 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 q131-20020a632a89000000b003fe24364064si13407863pgq.822.2022.06.23.12.17.42; Thu, 23 Jun 2022 12:17:54 -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=ursa1TTo; 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 S232921AbiFWQzy (ORCPT + 99 others); Thu, 23 Jun 2022 12:55:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233911AbiFWQvy (ORCPT ); Thu, 23 Jun 2022 12:51:54 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B3B8AA; Thu, 23 Jun 2022 09:51:53 -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 sin.source.kernel.org (Postfix) with ESMTPS id D4E27CE25D9; Thu, 23 Jun 2022 16:51:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E212C3411B; Thu, 23 Jun 2022 16:51:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656003110; bh=8TOfhpl50F0yWhLMPAOE/9uebwUQU6puY1X5AmEb9kA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ursa1TToGPUCzOfXc080coIDEU4P9i9LpVB+5Dp6+A5ndy6nG1ymK3j85ddPEjlIR 5gu/yWnIu0df8p22pCMZ9eVgBc7stdPCG6NttsOkN2+JCFyh7PH4iJp7VvkXqXtDUZ QBtN9NJS/geZQ7+fWf6ZFg4r5JUbZ9Pr6pwtmRTY= 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.9 082/264] random: remove unused irq_flags argument from add_interrupt_randomness() Date: Thu, 23 Jun 2022 18:41:15 +0200 Message-Id: <20220623164346.390524772@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: 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/vmbus_drv.c | 2 +- include/linux/random.h | 2 +- kernel/irq/handle.c | 2 +- 4 files changed, 5 insertions(+), 5 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); @@ -1323,7 +1323,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/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -828,7 +828,7 @@ static void vmbus_isr(void) tasklet_schedule(hv_context.msg_dpc[cpu]); } - add_interrupt_randomness(HYPERVISOR_CALLBACK_VECTOR, 0); + add_interrupt_randomness(HYPERVISOR_CALLBACK_VECTOR); } --- a/include/linux/random.h +++ b/include/linux/random.h @@ -34,7 +34,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 @@ -184,7 +184,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);