Received: by 10.192.165.148 with SMTP id m20csp3898299imm; Mon, 30 Apr 2018 08:13:03 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoZRtxYqNhxLV7rc0IqA2R7yuh5f2n7ua0HjNe0Jefl7tOfLCvmXkv8Oho1dpTK4ALUnED0 X-Received: by 10.98.152.203 with SMTP id d72mr12314922pfk.98.1525101182942; Mon, 30 Apr 2018 08:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525101182; cv=none; d=google.com; s=arc-20160816; b=UH+Ar9N1Qd7TTvBgEMoMFNdZY1EaE3MYPFJxAcOJwjYoPLJGuJHkVR20fsp3OW2EsP 7go8RIWAcg4mtoy4v31JVmd/LMY0LY8zmj8IB8BgXHuubIY8F3JQe3r3sYGlhr4OyPem uoYJcq4QKElay9WdLbshJZPGSwm8ZV2FK2Xj6X12nxYCQ2Zq9AcGr23Z0tGHDzW+Guyc hXftb/AJfbRXBOTjhSc5DS3UIS1O94IaRf+VzlvUwqp7h94gDxRJsjit6ED9jwZv7ijt 1u2CQvs0KVXIZElc9QPDCBuQ3ZmKHPVLXl0YjPsGYLVau4lvDhctN+d79hqk7PJ/bay1 kbSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=y6gEQzWWdUJWEfpThcAxdHfN4F5SpbcKouVFtYM+ojI=; b=MlUzA+qrzSHZ+e8RoSg+Q4vJxctYZnouBUE0IJx5PcQonyqhUMtZTKyYTmDZyTp/ye uM/828feY7WeRRzBfgPaTsBQOkBebjW9anEw0r7runMe5KdK38N9iyUVlk0BvbyAvarM Dk60GGO4ImVnImnXWMhG4mL6j/TyRU2uyuVcIl7CL/iqrRIeaNXQLyz2+tjMeXZW9T7w nFSzA9+uzmPcIIkQxGqo6YYa7lVXNk1P+BL8craS6C75+zpB3I36sulgaMfA1ZhRCO9S lzNPXCCnAbm4dcN5CEYTHYmRnEE7vuhQnc+cUHYzG3s//a0w+Cb3dpfgW+9GuX7Rd9N/ pjxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QTtpXtnh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2-v6si6244847pgp.234.2018.04.30.08.12.48; Mon, 30 Apr 2018 08:13:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QTtpXtnh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754579AbeD3PMh (ORCPT + 99 others); Mon, 30 Apr 2018 11:12:37 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:39839 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbeD3PMf (ORCPT ); Mon, 30 Apr 2018 11:12:35 -0400 Received: by mail-ot0-f193.google.com with SMTP id l12-v6so9833140oth.6 for ; Mon, 30 Apr 2018 08:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=y6gEQzWWdUJWEfpThcAxdHfN4F5SpbcKouVFtYM+ojI=; b=QTtpXtnhNcghPgGFuEt0UVTQMR0yrNjEtdIhKv5mnpiXuynm8xNNT9ZTEHzUEcXknl SJ7UwmOa6CaVI5dsCKqhB2iYMn+Xqc/35Q2otiiSlvTtgEY+JsTUxXgEyttMx1NWUVaY sFaFwW9/w8nKGC3ihXxzO7OylkoRxNqSE28hlsIrMObX5qsohax6h/uE/hNuT7K50M5B TwyTANpcsoL5QnLfsbov5MXmexeCH8G3CniQ9Yxn1QBp7ygM+9AHXm4psfM5YIHAqwDB 6kS61fgKX/6i4T5LGNoXoQAFdW73mfOTLvmO8YyzHT6oQCu2Ot9aX6lxZ+7QFO9pKNWm tw9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=y6gEQzWWdUJWEfpThcAxdHfN4F5SpbcKouVFtYM+ojI=; b=X9ioUImiLh7Oz91fnFF5aPr0uV7uBWDwTmNTA1NCLl3TXK6/KwcY1bZ964T+LXgZnl 3ZZ9UMfr/guf5Hktg2YnNvQGy/okFOmerjD/qFENdwNInV0LTmxWBLzeoWE64shjqtJq LIRsSf85m4JSwhJybAsDlQMDZDzTUF5lLjZdlsQI+1KVCqUPcmE51QcNTSyLtQ5zDsCt su4ku7TGkxs05yCtZxUIfWXBcupoUayj5Zr/zSkKxkv+H4/5X4BwNr/mM6PGZRzNwb76 4xKUMHoRBNx9d121sjmeNJDs4RQYeKJVByRQDLvq8O4QBOcd/E/GL2rt6q+48kSCdSBk LUFg== X-Gm-Message-State: ALQs6tDVWop7V8AqeOdJrarleDYpW0MMvR1WRiKB13A5tkmwPVoVzA1n bO/9qK67gAhVbCif7/qPQSoaCg== X-Received: by 2002:a9d:2572:: with SMTP id j47-v6mr8168071otd.280.1525101154719; Mon, 30 Apr 2018 08:12:34 -0700 (PDT) Received: from sultan-box ([107.193.118.89]) by smtp.gmail.com with ESMTPSA id x35-v6sm5000547oth.27.2018.04.30.08.12.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 08:12:33 -0700 (PDT) Date: Mon, 30 Apr 2018 08:12:29 -0700 From: Sultan Alsawaf To: linux-kernel@vger.kernel.org Cc: tytso@mit.edu Subject: Re: [PATCH] random: remove unused argument from add_interrupt_randomness() Message-ID: <20180430151229.pen4kay5qjbrg2f3@sultan-box> References: <20180430031222.mapajgwprkkr6p36@sultan-box> <201804301721.JEar9rKK%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201804301721.JEar9rKK%fengguang.wu@intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From a872cf4f0bb57a7bb3c95ea557082fb7733344f8 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Sun, 29 Apr 2018 20:04:35 -0700 Subject: [PATCH] random: remove unused argument from add_interrupt_randomness() The irq_flags parameter is not used. Remove it. Signed-off-by: Sultan Alsawaf --- 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(-) diff --git a/drivers/char/random.c b/drivers/char/random.c index 3cd3aae24d6d..125c1f545277 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -131,7 +131,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); * * add_device_randomness() is for adding data to the random pool that @@ -1189,7 +1189,7 @@ static __u32 get_reg(struct fast_pool *f, struct pt_regs *regs) 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); diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 9b82549cbbc8..4b76ba23d666 100644 --- 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, diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index b10fe26c4891..41f4116f8c31 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -1015,7 +1015,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); } diff --git a/include/linux/random.h b/include/linux/random.h index 2ddf13b4281e..210400258fef 100644 --- a/include/linux/random.h +++ b/include/linux/random.h @@ -32,7 +32,7 @@ static inline void add_latent_entropy(void) {} 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); diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 38554bc35375..e2f7afcb1ae6 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -188,7 +188,7 @@ irqreturn_t handle_irq_event_percpu(struct irq_desc *desc) 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); -- 2.14.1