Received: by 10.223.176.46 with SMTP id f43csp4212763wra; Tue, 23 Jan 2018 06:08:42 -0800 (PST) X-Google-Smtp-Source: AH8x226nwYvUjLvDzC8idtefI9wuIQw8fyVWZ8zXhVqeiNuLuwRmzR418IGgf/mnS5XhukkDBVDM X-Received: by 2002:a17:902:9346:: with SMTP id g6-v6mr5783982plp.379.1516716522447; Tue, 23 Jan 2018 06:08:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516716522; cv=none; d=google.com; s=arc-20160816; b=IxiBQQggPEefMstwl6sLpFWF26sKmF6gXjbjNbaAVSHvbB3xtpcxTSfeAC9SYxJJRo h4kuYynVZUNEFcN0t9cPmCWXrMdEtPUZy06ItVFGx4/Dc3AylIF5rg19sAdzRsShALlj 44wC4JGDMTECEZjW4swwRzh/GO+SuPT/CPYXSu2Qk20PEdI96LpfUcQacyd4/hmyLTZq 6cjsQ5dTBeGibKeOddNSb4ncD0wGzgqNXdecuvv6gw3p/hjnr3WVwZCoAJJnTj+eafWR w5Yl/GGPUioBG9fya6bzNYOoezlGYXuvyfczdW+F6PS6BH8hfetPmh1GDrt35GBu6ybq 42fQ== 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 :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:arc-authentication-results; bh=w2czlsMxL40fjWyGD+RiZPU3NSqM7eLdOhdt9xoZASA=; b=090iRS2BjzCW4To9+YFCgh4xLoRlQ2cRs3gJsEImJ5M6ui6mD6R9TdzU8dPwlEuqwO HSKW04Zcdts3648dPLHHhsw+NdTyjCn2X+KOhX/sXK1ZVIMevYIB7LWUA5lXsM0PA7iB dPYK7cvO3++B/RTTIhBOh7NaM1y7KbMy8516ashSVf1DV8uieVJ+DNuC5T15mPzN1klE khrAQgo0aExT9cOQKA8Y8QD9mXZvEzHAZ6oh1LohP/8qwG+oV3+OGMB8ILE7WbvrIjNQ EfXjkyCwFQv8tLQHQV2PzT7jcLUmXJgyHA5CkGVEC1vkBJllYl7yuwVHIqlzkccolYnK R5rg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si130760pls.458.2018.01.23.06.08.26; Tue, 23 Jan 2018 06:08:42 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751863AbeAWOHv (ORCPT + 99 others); Tue, 23 Jan 2018 09:07:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50458 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751678AbeAWOHu (ORCPT ); Tue, 23 Jan 2018 09:07:50 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E10403DE3F; Tue, 23 Jan 2018 14:07:49 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5D098BA66; Tue, 23 Jan 2018 14:07:45 +0000 (UTC) From: Vitaly Kuznetsov To: "Michael Kelley \(EOSG\)" Cc: Thomas Gleixner , kbuild test robot , "kbuild-all\@01.org" , "kvm\@vger.kernel.org" , "x86\@kernel.org" , Stephen Hemminger , Radim =?utf-8?B?S3LEjW3DocWZ?= , Haiyang Zhang , "linux-kernel\@vger.kernel.org" , "devel\@linuxdriverproject.org" , Ingo Molnar , Roman Kagan , Andy Lutomirski , "H. Peter Anvin" , Paolo Bonzini , Mohammed Gamal Subject: Re: [PATCH v3 3/7] x86/hyper-v: reenlightenment notifications support References: <20180116182700.1042-4-vkuznets@redhat.com> <201801191841.QZ26OYif%fengguang.wu@intel.com> <87o9lqdt15.fsf@vitty.brq.redhat.com> <877esacd24.fsf@vitty.brq.redhat.com> <87d120bslq.fsf@vitty.brq.redhat.com> Date: Tue, 23 Jan 2018 15:07:44 +0100 In-Reply-To: (Michael Kelley's message of "Tue, 23 Jan 2018 14:02:07 +0000") Message-ID: <877es8brdb.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 23 Jan 2018 14:07:50 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Michael Kelley (EOSG)" writes: > Vitaly Kuznetsov writes: >> >> > "Michael Kelley (EOSG)" writes: >> > >> >> On Fri, 19 Jan 2018, Thomas Gleixner wrote: >> >> >> >>> >> >>> You added '#include ' to mshyperv.h which is included in >> >>> vclock_gettime.c and pulls in other stuff which fails to expand.... >> >> >> >> Is the declaration of hyperv_reenlightenment_intr() even needed in >> >> mshyperv.h? The '#include ' is there for the __irq_entry >> >> annotation on that declaration. There's a declaration of the parallel (and >> >> unannotated) hyperv_vector_handler(), but that looks like a fossil that >> >> isn't needed either. >> >> >> > >> > True, >> > >> > the only need for the declaration in mshyperv.h is to silence "warning: >> > no previous prototype for ‘hyperv_reenlightenment_intr’"; I'm not sure >> > if this actually needs fixing. >> >> It seems we can get away with dropping '__visible' and '__irq_entry' >> qualifiers from 'hyperv_reenlightenment_intr' declaration in mshyperv.h >> while keeping them in hv_init.c for the implementation. This way we can >> avoid the nasty 'no previous prototype' warning and not have to add >> '#include ' to mshyperv.h breaking vdso. > > Where exactly is the 'no previous prototype' warning being generated? It is generated while compiling the implementation in hv_init.c, every non-static function needs a previously defined prototype. -- Vitaly