Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3673663imm; Mon, 17 Sep 2018 00:54:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbiDQNLJ771J9gzNEBBkaCKPzT2P2M7RwHNxiz840QmDPB3EWkb1jrDkip0nK7TdVFu7Qiv X-Received: by 2002:a17:902:1681:: with SMTP id h1-v6mr23388399plh.262.1537170890213; Mon, 17 Sep 2018 00:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537170890; cv=none; d=google.com; s=arc-20160816; b=pI/HNT0WlsaTLCl3c9U2kN9aEwAg0cGzvfmBBoLE06+yDbarZBSOInJ4ARMy76ILGE p5RzzIR7ZdF6Rl63Qk+vUAQkU0iTsiUxjt2Oy1UUY3/UkD3X0qpAsbYLJSbv93UVLrcF GYK2UabPn8OXtmgNu8i+NemrNUlHknc5Bh+xbhPXJNiFdWI9Q8B4xVNpubSRIIhj/UP7 0KGs845PEerFkTo4miLgwEP8gnVAPkRKEsWVhdrnfswbJNIzunPg0X2UokAHH66lyrTy hqR3EQQQ9nbQgDUeUWF5TdtqMyRn1/HJdBGGGZPtC+wL635xiy5hO3ItjaKEoCSQNiNR i1kw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/fgIqyG5UlsfpiGE7B6MXVcGA+WyUbd0TOOGmOWhaI4=; b=Y5DZzqPMwqsjZEWx6XVc+I3z6Lv8F5ykPOE4xZ/D7fTH7RfrOAVyDEG1RRDBgOoQ4V ilS5+5JgDdJN59VTg5RCsi9uhOpH7sRrHPQ6BEtgkZ45HsPBEUZV9C9Ygn+OFGYrYrrq rGXhs+HYVK/JQQpEHcVgsGm0cImGUcfQDvOgLgig1sMaYTyyUX4iLCFX9Qq1GXbcno2Y o7+WsT02Gg5Nhrg2ksW5eKGGdJ4ffScF6v4Sriy3loT6Km8fsU2te1gO5du1v5/jPwEn WljGmLYMNV4ejMEiNihicioCQYAymrTP0CCgCWucWeK/jHNi3uqQhupCtlH2m52xJNpF dpxA== 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 68-v6si13616428pga.113.2018.09.17.00.54.33; Mon, 17 Sep 2018 00:54:50 -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 S1727185AbeIQNUj convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Sep 2018 09:20:39 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:54015 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726732AbeIQNUj (ORCPT ); Mon, 17 Sep 2018 09:20:39 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1g1oMN-00048I-Oz; Mon, 17 Sep 2018 09:54:19 +0200 Date: Mon, 17 Sep 2018 09:54:18 +0200 From: Sebastian Andrzej Siewior To: "Michael Kelley (EOSG)" Cc: KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" , Steven Rostedt , Bernhard Landauer , Ralf Ramsauer Subject: Re: [PATCH] Drivers: hv: vmbus: include header for get_irq_regs() Message-ID: <20180917075418.e67gzam25zrkjpc4@linutronix.de> References: <20180830075503.vh3qcdcnxcjobj55@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-15 23:26:53 [+0000], Michael Kelley (EOSG) wrote: > From Sebastian Andrzej Siewior Sent: Thursday, August 30, 2018 12:55 AM > > > > On !RT the header file get_irq_regs() gets pulled in via other header files. On > > RT it does not and the build fails: > > > > drivers/hv/vmbus_drv.c:975 implicit declaration of function ‘get_irq_regs’ [- > > Werror=implicit-function-declaration] > > drivers/hv/hv.c:115 implicit declaration of function ‘get_irq_regs’ [-Werror=implicit- > > function-declaration] > > > > Add the header file for get_irq_regs() in a common header so it used by > > vmbus_drv.c by hv.c for their get_irq_regs() usage. > > > > get_irq_regs() is not used explicitly in either vmbus_drv.c or in hv.c. And I > couldn't make the line numbers in the errors above line up with anything > in the source code that might be implicitly using get_irq_regs(). Is it the > calls to add_interrupt_randomness()? Did you figure out > exactly what line of code is causing the compile error? The line mentioned in the patch, is correct. I just figured out that function is added as part preempt-RT. > I'm wondering whether adding the #include of irq.h into hyperv_vmbus.h > is really the right solution. More correct might be to have the file where > get_irq_regs() is actually used to #include irq_regs.h. nah, leave it. I'm sorry, that I haven't seen it earlier. I will submit a complete patch once I get there. It popped during a stable update so I assumed it was something that came via stable but it actually was there the whole time. Again, sorry for the noise. > Michael Sebastian