Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4437562ybi; Mon, 3 Jun 2019 10:50:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQFREKeX0UNIORAZa9V4MYbFfw38VMnV5fwyVcZqO2dLrjIml2gLzgxgOJpdqK9Cf/CKsV X-Received: by 2002:a63:ee0a:: with SMTP id e10mr11513931pgi.28.1559584243909; Mon, 03 Jun 2019 10:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559584243; cv=none; d=google.com; s=arc-20160816; b=sHhu2bYGIb3WTX+kd/9rjFytxdibbHgs8FBEWHHmv8gXQ2XgbrXhVLdpuWdiWXLNdB jawU4oOmmp4TIidtU8SWarvF9JOIgvHMLR9ELoFWPCfLTlSSfGnpax9ZlhLSLhHqGASU jG/4cX7yAIkdj7EAYGlyJePUma5VI6zPUwPhppGAZC9tHN5X3Du4g5rMzFbBSuiQaM/O S/3EOfAfOOYaKfIW4Th4nwjvfHW4z60ceIOqbjBQadC59bMX6ZQ2Lysuec/8/LGGvcN6 gHDS/5F7BnS74+JPDcd9lkMT7mjQTAYmQcaAFR0SLvbml5De+JWsTdvmmc4vDOYIluhW Cx4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=XE2uUHr/ozRsW5nliTjwahrvwGdLKn+fp6ekYuthUmI=; b=dYWejedpBj6DyaOojQI3dFvFV0YFgJrzAHzwfIcXuiup8dGD4inOcIayYWGUNjLX70 XucTfS+TiWvK5IvsXsgipSi3HBclBLKN9PBVWXE+bCuOJawN8cBQ8Pq2+fBugIXR0kVR 4Rf4zsupu2wf1zt+zVubOnWV1DCavsNL6jW9pV65mAQ3blW+JWe5qTMZLgBl4t9DbGpQ IuqPyzmxkl1M3HXQTgt4N/cRjI1JVsI7K8ZQLN/FhAZULlYYiBDCYyDhRnINDPE7igBh SbTGHzQz14DExSdOfEEZmmARFUTIOfaTJa/Cu4TF+r2H+jzmHZOIfwRftSMZNZo780kV wBiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e184si19968716pgc.429.2019.06.03.10.50.27; Mon, 03 Jun 2019 10:50:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728158AbfFCQxB (ORCPT + 99 others); Mon, 3 Jun 2019 12:53:01 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:49798 "EHLO mailout.easymail.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726690AbfFCQxB (ORCPT ); Mon, 3 Jun 2019 12:53:01 -0400 X-Greylist: delayed 346 seconds by postgrey-1.27 at vger.kernel.org; Mon, 03 Jun 2019 12:52:59 EDT Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id EF47524BF4; Mon, 3 Jun 2019 16:47:12 +0000 (UTC) Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IRw2Rh0RPLAH; Mon, 3 Jun 2019 16:47:12 +0000 (UTC) Received: from mail.gonehiking.org (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) by mailout.easymail.ca (Postfix) with ESMTPA id C5989241ED; Mon, 3 Jun 2019 16:46:57 +0000 (UTC) Received: from [192.168.1.4] (rhapsody.internal [192.168.1.4]) by mail.gonehiking.org (Postfix) with ESMTP id DF56C9F2FA; Mon, 3 Jun 2019 10:46:56 -0600 (MDT) Subject: Re: [PATCH 2/3] drivers: scsi: remove unnecessary #ifdef MODULE To: "Enrico Weigelt, metux IT consult" , linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, viresh.kumar@linaro.org, jdelvare@suse.com, linux@roeck-us.net, 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 References: <1559397700-15585-1-git-send-email-info@metux.net> <1559397700-15585-3-git-send-email-info@metux.net> From: Khalid Aziz Openpgp: preference=signencrypt Autocrypt: addr=khalid@gonehiking.org; prefer-encrypt=mutual; keydata= mQINBFA5V58BEADa1EDo4fqJ3PMxVmv0ZkyezncGLKX6N7Dy16P6J0XlysqHZANmLR98yUk4 1rpAY/Sj/+dhHy4AeMWT/E+f/5vZeUc4PXN2xqOlkpANPuFjQ/0I1KI2csPdD0ZHMhsXRKeN v32eOBivxyV0ZHUzO6wLie/VZHeem2r35mRrpOBsMLVvcQpmlkIByStXGpV4uiBgUfwE9zgo OSZ6m3sQnbqE7oSGJaFdqhusrtWesH5QK5gVmsQoIrkOt3Al5MvwnTPKNX5++Hbi+SaavCrO DBoJolWd5R+H8aRpBh5B5R2XbIS8ELGJZfqV+bb1BRKeo0kvCi7G6G4X//YNsgLv7Xl0+Aiw Iu/ybxI1d4AtBE9yZlyG21q4LnO93lCMJz/XqpcyG7DtrWTVfAFaF5Xl1GT+BKPEJcI2NnYn GIXydyh7glBjI8GAZA/8aJ+Y3OCQtVxEub5gyx/6oKcM12lpbztVFnB8+S/+WLbHLxm/t8l+ Rg+Y4jCNm3zB60Vzlz8sj1NQbjqZYBtBbmpy7DzYTAbE3P7P+pmvWC2AevljxepR42hToIY0 sxPAX00K+UzTUwXb2Fxvw37ibC5wk3t7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0Xa94FPLXyHSc85T E1CNnmSCtgX15U67Grz03Hp9O29Dlg2XFGr9rK46Caph3seP5dBFjvPXIEC2lmyRDFPmw4yw KQczTkg+QRkC4j/CEFXw0EkwR8tDAPW/NVnWr/KSnR/qzdA4RRuevLSK0SYSouLQr4IoxAuj nniu8LClUU5YxbF57rmw5bPlMrBNhO5arD8/b/XxLx/4jGQrcYM+VrMKALwKvPfj20mB6A== Message-ID: Date: Mon, 3 Jun 2019 10:46:56 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1559397700-15585-3-git-send-email-info@metux.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/1/19 8:01 AM, Enrico Weigelt, metux IT consult wrote: > 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) > As James pointed out, this will result in warning from compiler about unused variable. Please address that first. -- Khalid