From patchwork Tue Nov 28 17:39:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10080821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4A9BA60353 for ; Tue, 28 Nov 2017 17:39:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A0822862C for ; Tue, 28 Nov 2017 17:39:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EB7C29507; Tue, 28 Nov 2017 17:39:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E67C2862C for ; Tue, 28 Nov 2017 17:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753739AbdK1RjL (ORCPT ); Tue, 28 Nov 2017 12:39:11 -0500 Received: from merlin.infradead.org ([205.233.59.134]:56566 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753508AbdK1RjK (ORCPT ); Tue, 28 Nov 2017 12:39:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Gr0zk0MNQdjI0ZaJpuEqEihr5aPImsZOwl69OlR6pug=; b=ledULIFd+j/j1N0xQADMuJyZJp e6mYXS+VEO2uOUx4yzZD29chpdB5z/BY2iojf1rQzGjkrttq4lOQ7zs3lcul+iTbth8xP6lRkX4yx 6LtpQiIToe7ByRrf9q6Me8bHwfiJI+XL+FqEjrbFrrKy0UzweXfrGAoNDQ674qpA0r9fQGoAz7iFP 3lDeqlmxd0tad+iLHf1g9yI91g5UvSvrDLr25daJ/Xcc54wcousZyk3b4lwpuLpzFmLC5GwdBLF/c WfbGouOpt401wNG0lX9yC5YcfX6jJ2/F1D71zq+memV/pIGxv11yXLEGYdeLRzZ7Yy8e3uS+9cY6P sBxzie4Q==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlap) by merlin.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1eJjqZ-0007lG-Gl; Tue, 28 Nov 2017 17:39:03 +0000 To: linux-hwmon@vger.kernel.org, Jean Delvare , Guenter Roeck Cc: LKML , Rudolf Marek , Thomas Gleixner , Fenghua Yu From: Randy Dunlap Subject: [PATCH] hwmon/coretemp: requires CONFIG_PCI Message-ID: <588e0d93-de4f-31ec-2d0b-81843db4966d@infradead.org> Date: Tue, 28 Nov 2017 09:39:02 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Fix coretemp.c build when CONFIG_PCI is not enabled. Fixes these build errors: ../drivers/hwmon/coretemp.c: In function 'adjust_tjmax': ../drivers/hwmon/coretemp.c:250:9: error: implicit declaration of function 'pci_get_domain_bus_and_slot' [-Werror=implicit-function-declaration] struct pci_dev *host_bridge = pci_get_domain_bus_and_slot(0, 0, devfn); ../drivers/hwmon/coretemp.c:250:32: warning: initialization makes pointer from integer without a cast [enabled by default] struct pci_dev *host_bridge = pci_get_domain_bus_and_slot(0, 0, devfn); Signed-off-by: Randy Dunlap Cc: Rudolf Marek Cc: Jean Delvare Cc: Guenter Roeck Cc: linux-hwmon@vger.kernel.org Cc: Fenghua Yu Cc: Thomas Gleixner --- drivers/hwmon/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- lnx-415-rc1.orig/drivers/hwmon/Kconfig +++ lnx-415-rc1/drivers/hwmon/Kconfig @@ -631,7 +631,7 @@ config SENSORS_I5500 config SENSORS_CORETEMP tristate "Intel Core/Core2/Atom temperature sensor" - depends on X86 + depends on X86 && PCI help If you say yes here you get support for the temperature sensor inside your CPU. Most of the family 6 CPUs