Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2353556pxb; Mon, 20 Sep 2021 19:52:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsCsHfef9fcyPqNw0oururSk9eWmSZ3epWo9Tb63NNvRCi33ko1dVVLnhpLrqYdHlOHtI6 X-Received: by 2002:a17:906:c2c6:: with SMTP id ch6mr32669261ejb.76.1632192721664; Mon, 20 Sep 2021 19:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192721; cv=none; d=google.com; s=arc-20160816; b=A9/1uzqEv/ojDEjmafD6UEseZ6E9ESUo+bOvlrr5v0HzUOah7Uengv02UBGVI4oQjh FCjx4Vtrtye9Sa3CH1PesGf3qtMwEdyJ2dpa8SDJY7osW8l6x16u1mTeFkSPqm2jSr5r nbYDh+eS/KsLl9qHiXGztwepyZEpRDkNio7ftSyuUdO3SIgJjr2CWPr7crjWzpgTcup/ /Ur1eXi0Q+w65SWwbu3q2CL85D7o/eDr/oArVh48UUfIxO+Q8vHOmVJL8dsXKbULfAOv kTGe/C9IUJzdOvvJ3YivmZkgf34WzfLsHO79/d3ipXrpndVQKKeWT+7AsfhapQcFaa2j 4Qzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HdHSfyAyVidC6ZDZHV6BivKemJ7jzWJjQXvUB5K5bz8=; b=WMQMoLnosle2jYOF0vr5SNnv+pRqQBt1DxbC1SUPB/V7VN5G46fVoKCV2TR70DFEoe 41zjo+yMkFeIPzSuW+/nFTGNbs9RNqo/ClKKcXJHWXXRkpix2jIN0xJ/6AlhmOTynkOD t5e5WrdeM/NuTAMr7iQ7r32T7JS3c+I4+7+PAV1lAUjA4rN9Jx+V3gmsc1jc9/6Rbsg9 48/MjIy+yxarfq8p7SQ4u/aYUC6syvRAwDzhdyyCRZfnHZmWKN4B/xfYRz/DCamCmxyB J0wLHRjKWklHJLwCQNilJx2mKcTp64DKrNFGqqBmC7uGJxICFxy6k2iveXfHiqvpUQPn qOAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I5hT8QmJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh20si1601894ejb.234.2021.09.20.19.51.37; Mon, 20 Sep 2021 19:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=I5hT8QmJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382455AbhITSk2 (ORCPT + 99 others); Mon, 20 Sep 2021 14:40:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:53064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345205AbhITSgR (ORCPT ); Mon, 20 Sep 2021 14:36:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C07B61ABC; Mon, 20 Sep 2021 17:29:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158950; bh=cJ3NQfE3i5NwaEgG3zavK9D/1v2g+RS6x7MbSVm/nfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I5hT8QmJ5vLcw5TY6lAbiLRB/706QxzwyD0MQ/y6HM5wy4c/50VhhzMP8l83HAjXJ mek6m1bARKNIh7j5LCNIP95uVEk5k2LcwIE8h5VmtMcGabsoiJKeck28oyhosh+nKK NV+WeJFNydDMPd3RFlG8y+O0GmB/EZxtmqlT55Lg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Andy Shevchenko , Bjorn Helgaas , Sasha Levin Subject: [PATCH 5.10 094/122] PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n Date: Mon, 20 Sep 2021 18:44:26 +0200 Message-Id: <20210920163918.876275560@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163915.757887582@linuxfoundation.org> References: <20210920163915.757887582@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko [ Upstream commit 817f9916a6e96ae43acdd4e75459ef4f92d96eb1 ] The CONFIG_PCI=y case got a new parameter long time ago. Sync the stub as well. [bhelgaas: add parameter names] Fixes: 725522b5453d ("PCI: add the sysfs driver name to all modules") Link: https://lore.kernel.org/r/20210813153619.89574-1-andriy.shevchenko@linux.intel.com Reported-by: kernel test robot Signed-off-by: Andy Shevchenko Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- include/linux/pci.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index 22207a79762c..a55097b4d992 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1713,8 +1713,9 @@ static inline void pci_disable_device(struct pci_dev *dev) { } static inline int pcim_enable_device(struct pci_dev *pdev) { return -EIO; } static inline int pci_assign_resource(struct pci_dev *dev, int i) { return -EBUSY; } -static inline int __pci_register_driver(struct pci_driver *drv, - struct module *owner) +static inline int __must_check __pci_register_driver(struct pci_driver *drv, + struct module *owner, + const char *mod_name) { return 0; } static inline int pci_register_driver(struct pci_driver *drv) { return 0; } -- 2.30.2