Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp910884imm; Wed, 17 Oct 2018 10:08:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV63xjZQMekai4FQjXSxBji4FKV4uC2WhBHt89OGQ8usgBkRp/8sijcCilNXAkRBUqRGMntwq X-Received: by 2002:a63:2f81:: with SMTP id v123-v6mr24233345pgv.223.1539796099880; Wed, 17 Oct 2018 10:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539796099; cv=none; d=google.com; s=arc-20160816; b=vA/Pj/oMzYQbw5PsWVq9IJzVY8iqcC4zYrNT6j09LxDZfGlpVrpYi/5PdMfzwTQKBF iR3kjZxXdl4byQ5bJ167kG1WI5MfRE0OyDqECCQCA+KLV/PUpo/ucY5nbLGFit2V7bU4 AkfYaAQ3aa6+ifqid1cCVlP2TeilMlImB/aG11hL+gppDmvpVkzA/eAWjAyihU5WJY5G Sp0Nuscgw9Hbg0zWVpu9+fnOZabypOd74Ne8zNmby6Qp7oE36P/tsjR7kgxIaH2jJHtP PyB15skqPs3U2Cb0xTPbfrViClPPiWiuUgnQYzG3gbCBxB9I0EIUb9OuoHFU9QAnwAKd mK8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5X1wEtln4inwQcGGjiQufSAgfdyVzKYDYhWW4KVssmw=; b=xrinn7UKer3pUl6ZoPf0MJrmxiZ7AzqYyIClsOTxM5mbpdEDT2wyNkyzor3FQqYGOP Dg0I+oMeyqzIzhzPyzxzW/izBlKzD9uELfb3WFfwM0c7le4Hnv7EMtmy6QIt1x8YqE6N Aj3A6RloNqIpuDgp45Z8+qdFlOFzVTTKp5pHAcMHd+PvXw9PPOVr0y0vtVUPQj0pDWRI aXsUIbESFLy3dZseEHP//rUxh0L0t6LnqtPFdhQWlFcJKKJdtiTSmrXa3VpyMHniEF7G kp/cu9u2KofZyEvamy79XmqoNqWr+Fmpi0es1gHz3CiX9AGku17bsJzK0AN23oTi+xxL i7mQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si17447982plb.167.2018.10.17.10.08.04; Wed, 17 Oct 2018 10:08:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727788AbeJRBCi (ORCPT + 99 others); Wed, 17 Oct 2018 21:02:38 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60772 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727245AbeJRBCi (ORCPT ); Wed, 17 Oct 2018 21:02:38 -0400 Received: from localhost ([127.0.0.1] helo=bazinga.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1gCpGh-0003Ud-Bj; Wed, 17 Oct 2018 19:05:59 +0200 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, linux-kbuild@vger.kernel.org, Sebastian Andrzej Siewior , Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , kvm@vger.kernel.org Subject: [PATCH 3/3] kvm: don't redefine flags as something else Date: Wed, 17 Oct 2018 19:05:54 +0200 Message-Id: <20181017170554.18841-4-bigeasy@linutronix.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181017170554.18841-1-bigeasy@linutronix.de> References: <20181017170554.18841-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function irqfd_wakeup() has flags defined as __poll_t and then it has additional flags which is used for irqflags. Redefine the inner flags variable as iflags so it does not shadow the outer flags. Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: kvm@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- virt/kvm/eventfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index b20b751286fc6..d15a51622d53e 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -214,9 +214,9 @@ irqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) if (flags & EPOLLHUP) { /* The eventfd is closing, detach from KVM */ - unsigned long flags; + unsigned long iflags; - spin_lock_irqsave(&kvm->irqfds.lock, flags); + spin_lock_irqsave(&kvm->irqfds.lock, iflags); /* * We must check if someone deactivated the irqfd before @@ -230,7 +230,7 @@ irqfd_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) if (irqfd_is_active(irqfd)) irqfd_deactivate(irqfd); - spin_unlock_irqrestore(&kvm->irqfds.lock, flags); + spin_unlock_irqrestore(&kvm->irqfds.lock, iflags); } return 0; -- 2.19.1