Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2351354pxb; Mon, 20 Sep 2021 19:47:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNiQDpWukVww9pKNH6buuoEdNiXgmslCAZZTSo5ai5rHnt21JS570ZSsgrX5DVy4g46MA+ X-Received: by 2002:a50:9d4f:: with SMTP id j15mr722435edk.68.1632192440255; Mon, 20 Sep 2021 19:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192440; cv=none; d=google.com; s=arc-20160816; b=dglwoT8JeNJr5IM732tJcm7v6DCe5SaYbipbDDxG3k/5Cvvqndcnx78rR9u/sCbrVJ HLWtNq6o2C4vxN70EcHMgrnChwTUxVJ6Tw2d71V0R5LRAquxzipGoPv73kZVI8LJ2B96 KyNAAbBNjpz/rgqDuOekS2XCmjc7Olcj7D/mgnErJ8zF2EqDdsOp8NoSv/M0VpJa2k6p 9aUHM2WutZrF0sI2IEwytZXc8AaDSOQSD/2VayJCdCXlM65AIZ5aeiWkFdmjUJV3s3EJ I1FQ6Vpo9eOI+FNOEnnDlD3ys721VeIv6sdBzGvu3L18/mC8vLrQMqIGBThyEUP8zjg7 2I1A== 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=teoWVrw8AqaGY2Ydfo6TkrR1CsjHvzebaDKQ2BIPaH8=; b=SYvgq/8xW9uiQp6rERPJ33hn/qBewuk9uLn9xd1QC8imos2kNMWwhg/YeQx3I8Ihh7 wyFkVjaEsUaDCMtRqb0A3ofgzpnL16X0+f3vl0KsS5RK6rQniajN88LNINgRmrUTOAVR JP8MWynLY/nAexfl7u7SCH9u8QTv46ag4O6rDssu0bQskHeNytnww9jCPtn4v/5qfeO5 Q/IZjOdU6Fmz6B8uUSA0MrXdwBq6+PICGjFJKDytjVJvMVSk5406n4RGZ2YJb+fX3OdP l57SgnuN22qTONBQMApz1BrbTphQHskf7Vzii3vIWI5/qlAcuJvYTDqg50SkSX2gJ90r CxcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MW4GKhJa; 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 e13si25898360edm.248.2021.09.20.19.46.55; Mon, 20 Sep 2021 19:47:20 -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=MW4GKhJa; 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 S1348511AbhITS2Q (ORCPT + 99 others); Mon, 20 Sep 2021 14:28:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:44428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351954AbhITSWV (ORCPT ); Mon, 20 Sep 2021 14:22:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22A93632B5; Mon, 20 Sep 2021 17:24:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158647; bh=L6WM1aTLdwLszvmaKezF1OmMbD/Ou2uHCn3ZmDl21rc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MW4GKhJadIUNxQUmJOol/whn3PMqcb0HijCsv30TGgbwQP55Z3D8Wo/FEbuv5jBHi 14Wjt0a2nm8AcUHsOM2FjKSap8jv7/xV28DJHl7lkJfk49Z92e+dol2KsOaisubCqT CyYJlTjWRbbWJScN0UkfCB3Xou+YxPomyZ/2xvKk= 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.4 251/260] PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n Date: Mon, 20 Sep 2021 18:44:29 +0200 Message-Id: <20210920163939.639844872@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 6a6a819c5b49..9a937f8b2783 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1688,8 +1688,9 @@ static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; } static inline void pci_disable_device(struct pci_dev *dev) { } 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