Received: by 10.192.165.156 with SMTP id m28csp1003302imm; Wed, 11 Apr 2018 10:38:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/xdS3tMqtCnEZjTQtEW5LAQCbVwVUZYAP66XkXtOhzrFo2MnjQDyKjKszf6cTu4VW/bX6t X-Received: by 10.101.101.207 with SMTP id y15mr4047210pgv.84.1523468305529; Wed, 11 Apr 2018 10:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523468305; cv=none; d=google.com; s=arc-20160816; b=nNwW+zl2LCaf4D5cRrIjoSpc/0SyZ0Ujc68sc9hurc1qlyh2yU1zv8IF0ZdEFzKVp5 lvWrDmgKCG+2qOebwvIUnwILHV7zzEQAxt0cBnzS9htI4Cl+q9SauDvEO0tlOrLbW8xK rkIDa63OgYMuWjAeIfHIxC1nElrPqB6HrccdJ/DsqFxyVTj7ktJ6iYqkhlTEQWJBBmal rRSDDrAbCikaOpZX0T1BZ0RrCQd6SeFQbY5iUkMO0zvFzWQTJIjBek8QsnDNJmT/ybSl t4Q634AaRLfpUChpgpiKH3bTrLxb+ac+e71ZeLWcT6SmDbQa1l01rbvec5ZVydjaWrXH R2bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=xpGSHAfp6YTlblkuWPcoahilYnvACzbNvWwV4hDY9Ss=; b=hZfn3WXde8Wll/xXqnzyoSE8z8h/bkhAZS2dDQyOMKkQLSkYQaLtWFZMRz8CY2xCql 5jTNkOPhejL5eZVfLiBgTO1syPFb97xCxNDmBbQLREMWLuhf0nuJZrwzFxDjUKwz9lnk oklgORC9qyv58k+1aZkwA1ssqoNNZPAs9auqp4OFAS5nXY7IBUt2LKquLyzN77Giv9ob P8N5GV5+WBXgU4j+hgV/XoyacziUF0Z0lVtpgyQrxskt1H/BElqY3RiAgLTH7aWfZMMr MH822/Ef7B5l2opJcj4sR7Gdt2lHoYeGPRJwZCwEcA9iBq8nXdqARhAXMkroYr0uRWGe rSZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nh1QGkRw; 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 134si1016415pgd.709.2018.04.11.10.37.48; Wed, 11 Apr 2018 10:38:25 -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=nh1QGkRw; 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 S1752487AbeDKRfD (ORCPT + 99 others); Wed, 11 Apr 2018 13:35:03 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:33644 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751599AbeDKRfC (ORCPT ); Wed, 11 Apr 2018 13:35:02 -0400 Received: by mail-pl0-f65.google.com with SMTP id w12-v6so987222plp.0 for ; Wed, 11 Apr 2018 10:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:reply-to; bh=xpGSHAfp6YTlblkuWPcoahilYnvACzbNvWwV4hDY9Ss=; b=nh1QGkRwYGWq3PkPqeYm1NZ8Cjx/ZoylzaZHOJtStXKewn3SDSM+A82Gi49qhRhX98 RKo5Rw6Jeqo+gCM3+G0a3RIz0n3HggAHNy+K+d2EARTmz0azAb4GDmkSF1gZBOiDiyZG 9NO0CGtJ0Rk02CRYKu0wfXniJuebf3abq5WphMP7vF4wE5cO8B/4rqn+QKplg/XK0xIo dApLI13WfBLELvHZHfmghYZzk1QFDuJ8fJEdTVO9tgF0v2xLqZRo/wTUkHFD3Rr0P3r/ d+fLnuKztiF6dZsnPEJFPAqj/ONJfq8NdGjnPmKfo0OlVfk8ogXQMX7kmCjoLRkerrGp WxSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:reply-to; bh=xpGSHAfp6YTlblkuWPcoahilYnvACzbNvWwV4hDY9Ss=; b=Tn6U1cq9q1NkcgQvyoPAlGRJKIvlJkGa9+NR6GEPtkAkMODEHkAEkkRT0n0RPOxavi QOvrWpauxyiXBhULqPN0hlI6Xddx9mEIb8fKj0eyyJkmW2+bJKSfZZPQszeUcOb13Y8X kPLjvDOoxKOdHHPUp1fwyxV+XaoY0Z0UyfoRIKEu3/bIbgBGB5IfDD6loyqlnn5tHBPO Rs52qURp9SyVx70aMdHoh0vs1PYoAHIAChQvdUR8Wosjwma+h/0ag8XgB0g/gHafKUjp JcTqS2+We7XzVhKXtafEiPZejv2jSsFdWxlV9Yb11NsybbrkqWs6zziK3pFKaM/8JcVr 06+w== X-Gm-Message-State: ALQs6tB37+/VBrCeAnG3iucMv4QEMrs7Kr88NE6M9etRnh3L+g4PLNm+ Yfz20lQGkdotShf6HWhI7fU= X-Received: by 2002:a17:902:9893:: with SMTP id s19-v6mr5911138plp.304.1523468102185; Wed, 11 Apr 2018 10:35:02 -0700 (PDT) Received: from nvmetest.corp.microsoft.com ([131.107.174.67]) by smtp.gmail.com with ESMTPSA id l3sm5024952pfg.49.2018.04.11.10.35.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Apr 2018 10:35:01 -0700 (PDT) From: mhkelley58@gmail.com X-Google-Original-From: mikelley@microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com, kys@microsoft.com Subject: [PATCH v3 char-misc 1/1] x86/hyperv: Add interrupt handler annotations Date: Wed, 11 Apr 2018 10:34:35 -0700 Message-Id: <1523468075-12713-1-git-send-email-mikelley@microsoft.com> X-Mailer: git-send-email 2.7.4 Reply-To: mikelley@microsoft.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Kelley Add standard interrupt handler annotations to hyperv_vector_handler(). This does not fix any observed bug, but avoids potential removal of the code by link time optimization and makes it consistent with hv_stimer0_vector_handler in the same source file. Suggested-by: Thomas Gleixner Signed-off-by: Michael Kelley --- Changes in v2: * Fixed From: line [GregKH] Changes in v3: * Added more explanation in commit message and the Suggested-by line [GregKH] --- arch/x86/kernel/cpu/mshyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c index 4488cf0..20f6849 100644 --- a/arch/x86/kernel/cpu/mshyperv.c +++ b/arch/x86/kernel/cpu/mshyperv.c @@ -41,7 +41,7 @@ static void (*hv_stimer0_handler)(void); static void (*hv_kexec_handler)(void); static void (*hv_crash_handler)(struct pt_regs *regs); -void hyperv_vector_handler(struct pt_regs *regs) +__visible void __irq_entry hyperv_vector_handler(struct pt_regs *regs) { struct pt_regs *old_regs = set_irq_regs(regs); -- 2.7.4