Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2319667pxb; Mon, 20 Sep 2021 18:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZU4H6MB3Q92N9sbvVM1yNb3k3z5DN/WtrL6GJWsSn+4G74R3zzMlbP1lBrpw3c3lxTqF4 X-Received: by 2002:a92:c24f:: with SMTP id k15mr14320398ilo.3.1632188579351; Mon, 20 Sep 2021 18:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188579; cv=none; d=google.com; s=arc-20160816; b=H1M/xqjPaxbta/EhDiWHUjOu9eZ6knodjwAd+TyXKv6Pz9bnlZOczrOKsMqiw4waxI HYi+/cTOXTJJwnWRF/eb+4bGjtC+lfIwTyU8wVIhB63tYDpQZzsKDbBqTpF6dTl3st4q fo5XwCZJvkDRR1XtzQPys6ClpxwUhEv8ezPdgbnqMJ14lfHSJopIGLI7BnXGF2qR8+94 XThmr4cx+OA7abDKfB9OOFN19wOPfOSYzoDQr4ApbYbDrFbw7iOMgU3Bb/A33foAKjIA T9YjfdTYGaKDv9oyyK1WHGo9KTe5Ivd/twj+VVEo98xZwob3pS5Ow5Xth8sjp4Ynj+AT HSZQ== 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=NGlhaf1xtv0fApahZa+AeStyd1ZTrpurW+giyG9pORQ=; b=cbbJTbeOjHtyr9Qtu7JoJaJ9pfsXvE4VMtYAbSYHd+TXfQQqAjc85zCVWeyg4ho6gO zpu27U/n932G8pisYe7QhbpR+yFmn9XmlvjKEKJlw2uj5bawbRCJMIuRWoUG7FCzAxGN tsRofl5xLj4hTRiBmzibK2Jw4HAlfEitYBTwDpwQ1isCODEqJb+NXWpF0MJ4WeJlJ2i3 Bq+jjCR/yZizY7u7AiqGJtP3hluWQKkYY5s5I3ozGmwo/WdQaHL1vNjUdVZiWSD6vz9e xZlIasNOUlAucgCwoLuZDi/twxsVEQzvWYXj0rc8LfC+rdM+07/8cvj7KWCDRxVf+2zW CT5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gGdhpaZ4; 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 z11si8748387iom.108.2021.09.20.18.42.48; Mon, 20 Sep 2021 18:42:59 -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=gGdhpaZ4; 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 S237705AbhITQ4c (ORCPT + 99 others); Mon, 20 Sep 2021 12:56:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:39212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245262AbhITQwt (ORCPT ); Mon, 20 Sep 2021 12:52:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 25B3B6137F; Mon, 20 Sep 2021 16:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156606; bh=xR5dtT0Yhn7BMPnlc+CmhgTnWkuJ/KEOJgxhtS39P6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gGdhpaZ4hPLpT44tvc9vaNBSVJfDJv1q2ycoB9FmXmbJHvMV4XsOk4URuwhNqOmX3 K0K/SIGCIY5Jmh+UwWgnNgJ6ZSDV3go/Uj4XhlGl1tI2Y3dtrO8eD4K/4aR24R3CRz L1sq228aQ8whlCQpHG7XH55TarM/dAUCCgmgs7Yg= 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 4.4 129/133] PCI: Sync __pci_register_driver() stub for CONFIG_PCI=n Date: Mon, 20 Sep 2021 18:43:27 +0200 Message-Id: <20210920163916.843197503@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@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 5f37614f2451..c871b19cc915 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1442,8 +1442,9 @@ static inline int pci_set_dma_seg_boundary(struct pci_dev *dev, { 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