Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp177166ybi; Tue, 2 Jul 2019 18:35:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtd/EemLVmWs8kw6xDMrZSLq3JeOfCt8qVEQalKUWqAAE+2Se/DNApWgwgqkDSgU/L5gaJ X-Received: by 2002:a17:90a:d997:: with SMTP id d23mr8587719pjv.84.1562117723228; Tue, 02 Jul 2019 18:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562117723; cv=none; d=google.com; s=arc-20160816; b=Mx/jInc2syRIaN6IZIwHMTfwu3giK1EYx3psvluAKEe9IvJ3CC1z7bs5nPMkjoQNuA yIv85q8IsBdrMIpxah9LrQUlS+Q1rxSLw0fpmGcji8/ruQwouDCkjYP814bxiwauC2IQ 6lXegrDEB96JTuwhxSJe7Xb0xM6hmkkIHL+gSNMrtnBdzpb9yHDRTCuyDM5KAJ5iST8P Scgrl++wOunIP+XFSlbTQwAwH5s+exApJivzzHLrw0H01hjHJ1VjDVdX+gmaW7VqcrJs hBW6hSMqx7di+KZqMdk1CR0/mOIieFNRXPxDFxOnWieTvzd5Maqj+7clweDnQ6kE2Mg6 RiEw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=InWmJ+St41ikI+4rizzZIL6hXVavnsXpRy2fc8t2i50=; b=is4+I8tdTCLqBx2xGO9TFz2spyT4HM5KHJ1Qn+gu7gVRUc15818od6XQOt2rRxGrQO uLcS7xCp4uBV76jNfVsVtAEOY224vFCm2OrvcdeM3RZfMk6o5ktQTEYvT0R6QNh5T2zu 2zcaYK/Wpi7YWcDEJhIIfNUSrkIlBwwVSGwISuFzCV/1Nh7uwtiFBoEnCQz+Z5hVQG09 k+fahK29BcIGDPwHtkPrEMH3A4UhnQE1/oOCLf1SvUKq7D/0SHnQ/oS8PyY82TrFtgWW 2BqXUfmotWlBzUoPfhy/ISDPhVlLBuMnOri/x91hazaFy2AOt07Viytj7698rb9dLBXo Dd0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MTAK0tEo; 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 t6si418272pgu.154.2019.07.02.18.35.07; Tue, 02 Jul 2019 18:35:23 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MTAK0tEo; 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 S1727474AbfGCBdR (ORCPT + 99 others); Tue, 2 Jul 2019 21:33:17 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38736 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727108AbfGCBdR (ORCPT ); Tue, 2 Jul 2019 21:33:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=InWmJ+St41ikI+4rizzZIL6hXVavnsXpRy2fc8t2i50=; b=MTAK0tEofyhdJtOypGTtVMIs8 pBHy2O4TbTzCttnhg/LJanmt/XcBTzuDUPmbybPs6Rg0XsO8iYO8naIeHTwjWnTHMDu2KwwH+wcaU UpgnAge56JadzEiab+YsfsJgSwEcUVmsXXLcBg7486V8FIHylCXzlaBxru1QQo4Cxabp8ifS4zC1S WiCo1d2p5b0qBvzQ/Bn1xH/KrrLMTkgiNvjJ+icdIKMQqyrz+o0Zf66g5hdYwzpVJSFWLobFtRLOO 6mqp/Zt3/me/Ikt6C503zATKULYzwPjiKZ1shQ0rrnDcVy3RZxqs3bIlRyDOoQLav2NUCrdUOuspl e2I5twPxQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hiSw1-0007NX-MU; Wed, 03 Jul 2019 00:15:41 +0000 Date: Tue, 2 Jul 2019 17:15:41 -0700 From: Matthew Wilcox To: Randy Dunlap Cc: LKML , linux-hyperv@vger.kernel.org, Jake Oshins , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , linux-pci , Bjorn Helgaas Subject: Re: [PATCH] PCI: hv: fix pci-hyperv build, depends on SYSFS Message-ID: <20190703001541.GG1729@bombadil.infradead.org> References: <69c25bc3-da00-2758-92ee-13c82b51fc45@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69c25bc3-da00-2758-92ee-13c82b51fc45@infradead.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 02, 2019 at 04:24:30PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build errors when building almost-allmodconfig but with SYSFS > not set (not enabled). Fixes these build errors: > > ERROR: "pci_destroy_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! > ERROR: "pci_create_slot" [drivers/pci/controller/pci-hyperv.ko] undefined! > > drivers/pci/slot.o is only built when SYSFS is enabled, so > pci-hyperv.o has an implicit dependency on SYSFS. > Make that explicit. I wonder if we shouldn't rather provide no-op versions of pci_create|destroy_slot for when SYSFS is not set?