Received: by 10.192.165.148 with SMTP id m20csp3319677imm; Sun, 29 Apr 2018 20:13:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrQkIbxFPWOBz8uhTIWIqNhYJLzPVY/Lj0dYnRt3+7qHHZTG5hFuKhuHeUTZcoSD6P+S7DN X-Received: by 2002:a63:8dc1:: with SMTP id z184-v6mr8901751pgd.114.1525057982839; Sun, 29 Apr 2018 20:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525057982; cv=none; d=google.com; s=arc-20160816; b=UIpmVach8GQihtgu4QvbMdIsU/5w5KOHkOeSHS23EC6E38adCm0KAmfWFrshSrLu0J QALJB5XUUaZt0+YssVtgTZKfgt+2IgLX86TV4vDefTgDcLKxDF9mJeT4XrjRmeCoHyUH Z20qXphVne7VKmksIltSu0HFA2bMsuNaH/C4XR44Cri/BCK9kRyj5K+A2FiHHmwmUbau oxOc/7mVQUsToFPu8NMNMjugQ0PcfkiCkr9tKrf4tbqEQ5FgOnmOjDSd7Pz+laJT8WAz 7gmBTwSq0JmtGYzPHhgG4sQAQnJLowzMtW4XHIRw/Vt6nlaqOIlr08sSuqvIOWWCyHjO ivXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=gcE/kdyL3iypS5U2GYrrwqhh3ln7GbO8xfMGnxxOtHk=; b=Jv9c0Qi09Luvcdvhcmjr7u0TSuBY6c1kBKWujYmlpGMDnU7jAlBJVT0Eh/ejy0GeAb Rep2SARgytmSb/KUFTFmFszlukU63jEoRflQi5tFlp9fmVHgZvzJbEyX7pO7zWyTKGyT 7TOFq91eYGopiPZKZhPs56sjtIhY6AxkMRxwlSGxKs3dJOKwlXStp+HUz4dzTQArjeSW oywrT8xXdvFChbQK+FX7IuYm+yB2WK8Cjy/hLSN6TFR3Vx5Wi4LEjcF+4jBoH7yyYipz n27L5Xqy+pQkxJqSHY/WGM+2AujbaJTDCho5qKSoW+GUW2y2a9HIAuOmZGwNtbbwIbAw QRvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PByJaaoH; 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 s6-v6si6893733plj.192.2018.04.29.20.12.37; Sun, 29 Apr 2018 20: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=PByJaaoH; 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 S1751405AbeD3DM2 (ORCPT + 99 others); Sun, 29 Apr 2018 23:12:28 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:41303 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751231AbeD3DM1 (ORCPT ); Sun, 29 Apr 2018 23:12:27 -0400 Received: by mail-ot0-f196.google.com with SMTP id t1-v6so8060774oth.8 for ; Sun, 29 Apr 2018 20:12:26 -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:mime-version:content-disposition :user-agent; bh=gcE/kdyL3iypS5U2GYrrwqhh3ln7GbO8xfMGnxxOtHk=; b=PByJaaoH4bHJsov3AzB7QnyD4kVDr/lVtc+sQHaZw0CGZOr2V2r0HKD8UyrcMl89hc DoFE1uTAvcqEHKklv+L1cTbJBSYmL05KD8SNPBGKT2CRr8Ukvy/ETP0RcIUaWUyGJ1WL 6HkjdSG59cOIlv/qpymLDL3MUb6WR2shTggjztYc3Go8u+89en2xf7on1zmRH0lno1Ss R7ZU/RwIKv2w2Nv865uO+8l5O01jyGaE79qbMWxfnc53hNpZz3FHrKj0OhZJJ7uqZwdJ N0L5kWFgaM4nNFK157yurMXim+s25EhDmpvvAuuToiYSoPX8hTEC3UNt5Py7Nd8D+DxB SqZw== 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:mime-version :content-disposition:user-agent; bh=gcE/kdyL3iypS5U2GYrrwqhh3ln7GbO8xfMGnxxOtHk=; b=W9zdF83wX6WlJTA9ZWoKleifsA4LqxDBbMWzyeoro/Gni/v191f9QWy3OrHuC6vJ+K 7AxBbTKbj3r9dNrHGWFBjMbkU7DEzbj3UUDNsQ1w867Hgpp9fYiQl2zXFAS4DdFZTeFY gW/U4/50714iO7wW2sZFhUe2DFT+DY7pR+d8S1n9iyMy8E3pi5lpGEpj2bSeQ6kHIIg3 qa9hEHra9uSgzUixlenRv6GdE7rxNzIWyN/tx0P/AsyOJO/h0RtsfP9eA2lVnsK1AeLM 76FyUr66arm5DwNjR2BHsK6gcdCyPNJeQODdmdlUxul/BAqEMxQ5zCMchhJhrV8juVar tfKg== X-Gm-Message-State: ALQs6tBF6d5FhO0PI6oHr5JkVQulrN/+kJPD1R1IXZTiKIvTeVZk9+96 OM6HFVY0RlE7mHFvDgQCUeLIdw== X-Received: by 2002:a9d:3d4a:: with SMTP id a68-v6mr6785968otc.167.1525057946067; Sun, 29 Apr 2018 20:12:26 -0700 (PDT) Received: from sultan-box ([107.193.118.89]) by smtp.gmail.com with ESMTPSA id z78-v6sm4082400oig.24.2018.04.29.20.12.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Apr 2018 20:12:25 -0700 (PDT) Date: Sun, 29 Apr 2018 20:12:22 -0700 From: Sultan Alsawaf To: linux-kernel@vger.kernel.org Cc: tytso@mit.edu Subject: [PATCH] random: remove unused argument from add_interrupt_randomness() Message-ID: <20180430031222.mapajgwprkkr6p36@sultan-box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 cdc2a03f93fdec88ad040a212605e20ab97c3e19 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/vmbus_drv.c | 2 +- include/linux/random.h | 2 +- kernel/irq/handle.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/char/random.c b/drivers/char/random.c index 38729baed6ee..d9e38523b383 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 @@ -1164,7 +1164,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/vmbus_drv.c b/drivers/hv/vmbus_drv.c index bc65c4d79c1f..777096d560cb 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -1016,7 +1016,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 4024f7d9c77d..b71f87dbf7cd 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 79f987b942b8..1bc4dcc489d0 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c @@ -186,7 +186,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