From patchwork Sat Jun 1 14:01:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 10971425 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4772318A6 for ; Sat, 1 Jun 2019 14:02:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 396B928D33 for ; Sat, 1 Jun 2019 14:02:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E13F28D32; Sat, 1 Jun 2019 14:02:31 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 D903528D31 for ; Sat, 1 Jun 2019 14:02:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726174AbfFAOCY (ORCPT ); Sat, 1 Jun 2019 10:02:24 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:45583 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbfFAOCY (ORCPT ); Sat, 1 Jun 2019 10:02:24 -0400 Received: from orion.localdomain ([95.114.112.19]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MRTIx-1hCWtT12Ht-00NOdl; Sat, 01 Jun 2019 16:01:46 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, viresh.kumar@linaro.org, jdelvare@suse.com, linux@roeck-us.net, khalid@gonehiking.org, jejb@linux.ibm.com, martin.petersen@oracle.com, aacraid@microsemi.com, linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 1/3] drivers: cpufreq: cpufreq-nforce2: remove unnecessary #ifdef MODULE Date: Sat, 1 Jun 2019 16:01:38 +0200 Message-Id: <1559397700-15585-2-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1559397700-15585-1-git-send-email-info@metux.net> References: <1559397700-15585-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:nfIs3M5FOuPpOWeQmPLfkL+4Fg523wZ6xXAuALO2Ha+N5bjyhpn uUy//sej4pWYzh7safog17YAfo6BFsqZu2oQMDwpZkE6gxge5M1dzE5tAHCM8r08n4yFAeE +ewXaFzvHuLhvjvMSElD3Qrig+e4VkqZZW4lKJAVVQnW7tb+IbDXvDLhu2Tyv/3ZFEVRyq+ B/pdXEKL0jOQJYcBEQZYw== X-UI-Out-Filterresults: notjunk:1;V03:K0:SCLzH4zfWGo=:Vk9WwMr7sIqImVhrbQY8mv zHoKpUip1zBm7pMLwu4Z+MReUFmhqjWHpTnJH9kwzpHh+muLpEUwJTMQORWCBnO83qaJ2OgNP kDCNW/fvwDy2/gjtpqYx4C+Y35P8AM7PWcNZHhoXFfvdtIeSJ/kyfvkg1IdDucg4moNvp84OI HUkIcJobLjZqNNuXQwOX1szm5NO8zFRsPjkAsP9NoRZabTWss8xSWCrKHHP8MFqM+UiJ0zYqz MaiNAa63CVkuR5CktqYfWaEicH8s7JClXBjKDakQLzgca3vKFoTtNPh9tuCn8ch0QIHY03jOb 3T3W6oM5Ns/UxIDbnBxb/h+b0WzNeH8OkjzazzWgMureftYMzErd0SoICjQ56LklbZY9Nlk5N 4Ted9GC0cAfKbfp7xsv5fqD3WDf2CbY08nGN3RYmycsv/dY3fYqRU23gYV0A51O/qDN0Xyzec +dMcHnZ3mgi+9LY6yWEPGzSSOTSQV5YbqITj/8lKkOdOsFdnIrIu4VVSZU/usMXPyU0u7F+QV FLOJTfALYwFlLgvnNx9oG4Tjw6ZR/+oBpW48QWPVzjE9oacVJR2kKhuvyM04wz/ojBEIaEkjx fOoiuOhS0xgndIjHtgNcRx5A1K5JkOx1oy1liIvi3pchy9HVpqrtKTGBy/bRMi0mqq2AqMvV+ Z9/Kn53nk6vLgEZ20t3q9k4e3EhRzqYQByJYiRSE0F248w10ypI+Wny3tvqenLdz4ot+6EXq4 0cc1VD1kZBFTPIbsn4iiVAcTBmGpkFgh7Ba2cg== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The MODULE_DEVICE_TABLE() macro already checks for MODULE defined, so the extra check here is not necessary. Signed-off-by: Enrico Weigelt --- drivers/cpufreq/cpufreq-nforce2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq-nforce2.c b/drivers/cpufreq/cpufreq-nforce2.c index cd53272..6dd1827 100644 --- a/drivers/cpufreq/cpufreq-nforce2.c +++ b/drivers/cpufreq/cpufreq-nforce2.c @@ -374,13 +374,11 @@ static int nforce2_cpu_exit(struct cpufreq_policy *policy) .exit = nforce2_cpu_exit, }; -#ifdef MODULE static const struct pci_device_id nforce2_ids[] = { { PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2 }, {} }; MODULE_DEVICE_TABLE(pci, nforce2_ids); -#endif /** * nforce2_detect_chipset - detect the Southbridge which contains FSB PLL logic From patchwork Sat Jun 1 14:01:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 10971435 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A8D76C5 for ; Sat, 1 Jun 2019 14:02:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C6BF28D30 for ; Sat, 1 Jun 2019 14:02:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8032B28D32; Sat, 1 Jun 2019 14:02:39 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 37A5628D30 for ; Sat, 1 Jun 2019 14:02:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbfFAOCe (ORCPT ); Sat, 1 Jun 2019 10:02:34 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:54587 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbfFAOCa (ORCPT ); Sat, 1 Jun 2019 10:02:30 -0400 Received: from orion.localdomain ([95.114.112.19]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MS3vJ-1h8iCv3O8p-00TSvX; Sat, 01 Jun 2019 16:01:46 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, viresh.kumar@linaro.org, jdelvare@suse.com, linux@roeck-us.net, khalid@gonehiking.org, jejb@linux.ibm.com, martin.petersen@oracle.com, aacraid@microsemi.com, linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 2/3] drivers: scsi: remove unnecessary #ifdef MODULE Date: Sat, 1 Jun 2019 16:01:39 +0200 Message-Id: <1559397700-15585-3-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1559397700-15585-1-git-send-email-info@metux.net> References: <1559397700-15585-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:g52S7+6K+q7a6APcfLktQhtu6ysHVyU98fi+mu/EcNS2n+TBuZt a8WSpwzjfTZQh17F+xrRcraDx578GIi1tpiQ/rZ6OhbFzrLYTScnlur1ZUSxWWt7MBmIFR2 MECVgJKk8DrwvVZm0XgHMGOempAKuwdBeM/fVJ/EUlHMaf3O+9gpiIjNuKKsv3uberbFF6o 5crXOBT37nAt7QTHbw7Iw== X-UI-Out-Filterresults: notjunk:1;V03:K0:z05ZqzbJR2I=:xRzDes0nICf8as6QyE5kyp JRZUQd3TBI5k6cgFV4h0/rWxs8I+kKBTjpl3l8H0BiS6XTGo7AOBIyD2U6Po+mANLSoPDf5m0 ErP/6ywGyTIB19Z4bN1RNaOYuqlLzsB0N6QMIZVJ8VT1Dw0vzp6xOyATN7MKXHnvNNc/PtL02 jfnv/ks80t8drbIvWpxKUaiCEUEiK+Up6nLUo2nNbIOPc0Es5/rJBPAennFdmtHr/o4XCTlsF n9yuG+DZ3zAwpAzOLK7bCSIAer9oSGtd37i1IJR2Qohd+sHBZ/rPzadtAufL/U2qCOSZtfaEu BrONKjeSgbRavmljSGskd3VqIMQfAaqNPIfaNzq6Wm9HXSKUu76BBtgeHfGLJDUeNzATSxelX U+I3Qrb5XSZQGNGTWf6VbsV80jByhlpIwMQzaJv2cFc4cRzTEi8x95D8BGQ3yAZwp7F/Pj3El qLAYf2ZaPjBBTLSDbKt4TQU/TXO7E5UGLOaplyhwxwFNMfjPmQUuH9ftO1aoMJ3TiW1aMUnGc x2pgfQb2qRU+TIsQ3n5mlrMiVMgZjd4sFAq90zQ7uXeo4hHnE1wdqc4UFK55EA9pcEvx7Zj+H ryawlrQnliSamCk5wtFS81Q8x/0C01o0V6tADTjV7DorTn2EFs9AYQdUPyLmsjhZmZ15CyoIz Mx18H6Qy8x0prwveBbO/1UroNMcUQmAxBDyzUqphtvSjzIujtaWmXrhfECYq7uLHg7s6Q1Nan oAnwhjy7dsHuHOyE32xYfP/gGOUAhWyw+8Q6qQ== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The MODULE_DEVICE_TABLE() macro already checks for MODULE defined, so the extra check here is not necessary. Signed-off-by: Enrico Weigelt --- drivers/scsi/BusLogic.c | 2 -- drivers/scsi/dpt_i2o.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index e41e51f..68cc68b 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -3893,7 +3893,6 @@ static void __exit blogic_exit(void) __setup("BusLogic=", blogic_setup); -#ifdef MODULE /*static struct pci_device_id blogic_pci_tbl[] = { { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, @@ -3909,7 +3908,6 @@ static void __exit blogic_exit(void) {PCI_DEVICE(PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_FLASHPOINT)}, {0, }, }; -#endif MODULE_DEVICE_TABLE(pci, blogic_pci_tbl); module_init(blogic_init); diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index abc74fd..9b28f9f 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c @@ -177,14 +177,11 @@ static u8 adpt_read_blink_led(adpt_hba* host) *============================================================================ */ -#ifdef MODULE static struct pci_device_id dptids[] = { { PCI_DPT_VENDOR_ID, PCI_DPT_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { PCI_DPT_VENDOR_ID, PCI_DPT_RAPTOR_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { 0, } }; -#endif - MODULE_DEVICE_TABLE(pci,dptids); static int adpt_detect(struct scsi_host_template* sht) From patchwork Sat Jun 1 14:01:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Enrico Weigelt, metux IT consult" X-Patchwork-Id: 10971429 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A0406C5 for ; Sat, 1 Jun 2019 14:02:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C21A28D30 for ; Sat, 1 Jun 2019 14:02:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F4B228D32; Sat, 1 Jun 2019 14:02:33 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 389E728D31 for ; Sat, 1 Jun 2019 14:02:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbfFAOCa (ORCPT ); Sat, 1 Jun 2019 10:02:30 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:39123 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbfFAOCa (ORCPT ); Sat, 1 Jun 2019 10:02:30 -0400 Received: from orion.localdomain ([95.114.112.19]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MRTIx-1hCWtS1bmf-00NOdl; Sat, 01 Jun 2019 16:01:47 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, viresh.kumar@linaro.org, jdelvare@suse.com, linux@roeck-us.net, khalid@gonehiking.org, jejb@linux.ibm.com, martin.petersen@oracle.com, aacraid@microsemi.com, linux-pm@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 3/3] drivers: hwmon: i5k_amb: remove unnecessary #ifdef MODULE Date: Sat, 1 Jun 2019 16:01:40 +0200 Message-Id: <1559397700-15585-4-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1559397700-15585-1-git-send-email-info@metux.net> References: <1559397700-15585-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:Uf07aEan7IAl+nMPJVoauPGY3tAx+SpH5WZIUWYrVAiwM4ruUrl 1j5M4Bv/Eq/zrLWd7J4UhOJT+teoWZyQ+eAnr+3sfAzfq1nHyqkH4en3lfiFGUjY4gk/vzu nYFbaOW1BbKDMIcfeC2exMzSwNwZJAJ6e6WzFCyDZlvnAkBDCjeZcQLQ/6UHzshutYcoayi Q8o2upcrzAXRJiD+AJgmw== X-UI-Out-Filterresults: notjunk:1;V03:K0:l8x9QWxf8zs=:xd+EqbnZ2qTUJdaZquAU5U t8kfaqegmGmPvFY+r/WDW3k7SFwqj+q1Iuhvfrflz116yYuSqkc2EtvrBS/UQJU3YaO6cShFh O5fUeNvLMYpOO8YgBUntUE4XfDPxyuqlz9VWEyTIXsmBqvnLsiqBofSQtjvrCP5RaNSpiCjyJ EgrNflZzNB/98p+ys/dIStdu4yFrR1/naeMzlCFnS9wiVgYKqNz8tnf3JnlUs4aiFmLgVe/nT AzjeRsuBCtoBoFmHX8DCnw3i1bVx72vDpnwjzgY4FNxqzhMnMvm5HfteKmAxcSM0DN9cQ3Ns7 dQaGXhqCkot/mOPYrC8UmoiSzqnswF4kWd2ad9InMvpw5IAleEV1RZCvoLlkJk1E8QhSMnFr9 4rjio+sx8BV1a0tBv6MmBGdb9cysjfpPNUJeBcepKN/7JGbql85PHNQ5bN3N8s+SX6/HWfsZu iahc1Et8ff8fE6ko7bKhuHMuRE+M5BDHbofgseni67mLuD1ymMED3+WVUZj43g09KLBZ7dQvX oSyp/on4QsqiUXMAOVivpnufHnH/i7iq2SwaghNjhQoUL9i8g3XydQkPph9N/tqpfZeMApkK2 gWnmEJbQsrZS6GEw1rkqYSen1iWlqczHt3fIiSlh3yceylDmTXR2LY7GUMajCrbRa2zrSc0oH 4UFhSUaWrzY5F24KmE9tAzhFFePnblgMly7uf/1ZJal1/cnOpTZ7TMBzVv/JNBMO+vB49NmSR ZNoZV433PfwMe1y34tR58ipgoJMFp2rFJmI6xA== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The MODULE_DEVICE_TABLE() macro already checks for MODULE defined, so the extra check here is not necessary. Signed-off-by: Enrico Weigelt --- drivers/hwmon/i5k_amb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/hwmon/i5k_amb.c b/drivers/hwmon/i5k_amb.c index b09c39a..b674c2f 100644 --- a/drivers/hwmon/i5k_amb.c +++ b/drivers/hwmon/i5k_amb.c @@ -482,14 +482,12 @@ static int i5k_channel_probe(u16 *amb_present, unsigned long dev_id) { 0, 0 } }; -#ifdef MODULE static const struct pci_device_id i5k_amb_ids[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, { 0, } }; MODULE_DEVICE_TABLE(pci, i5k_amb_ids); -#endif static int i5k_amb_probe(struct platform_device *pdev) {