Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp724837ybi; Fri, 7 Jun 2019 16:09:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsCQiYT6UQz4dHZAwQXDXFPd/O+LMv29X2DKHQxw6CZvXw6sAIZHXHpWwaguE9y1kqV0MD X-Received: by 2002:a65:4806:: with SMTP id h6mr4955168pgs.299.1559948967440; Fri, 07 Jun 2019 16:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559948967; cv=none; d=google.com; s=arc-20160816; b=IwonOFi1mqG6WxJAewlTYqaTg+kOJrEZjlnjwHFrEWcaiflsMroKLbBZrUt0Jwwrlc OJvvUQQ0akGwKkbLjJpRKSWdOE3fDrFVhFlrJu0I72R3UfURFU94/kPHM7cqp7QuHNeu vSUkbqSPnm31iED2wVamN18tFAmGXzntxhoDnkiGpYT3oPIfDUfzdPbpub0DAHCEKsQL sX1CGso5hHQUh2yci2UvFgozpQ5VPcbioaltR6stTjnOMTMkANjhLuR7EGYwxTF+Lb7o Liwzezsh9IdHbhAm80nOioEte4ow7pc5wo1aTiVWUjM9lgk/yFch0a6qdGpf1d0Zwcmp 41AA== 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:organization:from:references:cc:to:subject; bh=5bWWyi9UyijsdNgSn9eJfyTAAra2iO/B/frYkEvTi0k=; b=JImfgu0xnErVZFanxG5S3ETPX7q0IWLwoAN/6ZoNCMk5EC4gWVjl5KSL6mo3ds3Dpx S6A7FmCFfF0moqmxdg8fe1gAtB/eYG7KR0xoUw2GLTbv6BTqVa9DcoO+epw/P+ZZpqWY m4kmFb+CoE/1RZGQ4l5kkCPathS74tDXnnwG6NI5iN1uwfeWSsdF61SdxEZiIJ+FAZsp oAjnBiGMEDSyqNgLGYfrh/MUQPxhKcSGFgJO94xLzMBbkWsoir/fGS0YhRP8tqsDtjNa hhJYjQUFsmtBct1Z1/nk6VEcQMMRGmVYery0MqfALY1q3xSD/GbOEzrpXSPawcO2rUec 3GOQ== 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 cb5si3583505plb.172.2019.06.07.16.09.11; Fri, 07 Jun 2019 16:09:27 -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 S1731390AbfFGVvO (ORCPT + 99 others); Fri, 7 Jun 2019 17:51:14 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:49505 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729810AbfFGVvO (ORCPT ); Fri, 7 Jun 2019 17:51:14 -0400 Received: from [192.168.1.110] ([77.4.3.118]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MXoxG-1h3P5h2siC-00Y9qf; Fri, 07 Jun 2019 23:50:57 +0200 Subject: Re: [PATCH v2] drivers: scsi: remove unnecessary #ifdef MODULE To: James Bottomley , "Enrico Weigelt, metux IT consult" , linux-kernel@vger.kernel.org Cc: khalid@gonehiking.org, martin.petersen@oracle.com, aacraid@microsemi.com, linux-scsi@vger.kernel.org References: <1559833471-30534-1-git-send-email-info@metux.net> <1559868089.3233.1.camel@linux.ibm.com> From: "Enrico Weigelt, metux IT consult" Organization: metux IT consult Message-ID: Date: Fri, 7 Jun 2019 23:50:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <1559868089.3233.1.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:/bCMse1WqZ7oNEY4vFZvKN9LFM1f/TRTC3pQ7DcAleqpq7Xo8ai zwnPKyQyBXrJLyQV61/TX4O1dsgwz1U2SIMIzt+Y6AfKcZJNqczaN/zdpovIZlJa81u8sg3 kUObtDK4rfzkv6kqXrDbagbt3q+Pmr+XfNZtAS2t3JnuXHoCJtQw6V5xCTE5pznqT6OsL/o AsfppQd8TmDEj26Hk45Gw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:8zu0GrELbRA=:HVFy5tvIU4G51zzd+cWHIp 7hcYMkW9nWPaYJNMctjHusm5bOAFnMxSzpCRH++x5VfzjyNw7yHQgMIDLQtKWFnd3fg6CAMKk //Vjzb9oU4E/2ECPs6jsQtUQCrIH+kQvQHnjfCW6Wu/TT6CZ3xjA005ykTGsu+zKaW3Kjxf/x CHBpWvoAGMruvpIBNtfObaPQu2A6KbbRN6gR6PBo7NwncStrGP0pGMNKYyw1TObkaQFUfSIAP 9D9g0ctggb5dnlCapoLUjif3gVJzfO4RM7xpimAWA/aP1txmXyjGMJ7jLRqXRVMaOZmb95FTb 3Uipcl4dDEyGCibOVqsjhnu/nv+PTvqtmaDUyz5konmFvWux3B/Q8nPMtriWxhtHZp0ZREB1R CQED9B6cmcW4mEuseBKUHJCMUZvCj3zrxHT83qyWmiOaVLg67OQ+EowQJ0q0sZfivYXBardYb kBLO7rqVv1av9kgX3SbwtWFRAn76ceWt9Vsopy3aPNHbDeQGUHOiL0GkgTUENd50etvYVdO77 ZYYw0iaSQhahup86ZGgKk6B7HUqPV6Qlw/LOmBrCDkokD4q+XgovCxZvL4u4kzx8cKysDZqwi U4yU0N5J8vshhfN+jJnSt2r/RaUhaGMH0NYV+prKt0a7cPSp/z+L+jKnbauAUFA92SxconfO3 aKnJRzys9q9N3jjraqMkBoLKLLZr8ywzzw+4lDu5IcsUHtGTskXhGLjkdF8+jnyolvDj+kGcc aKSnxdiEBO/6GfObCF6dtSy632O3zJqhKtg4Bn9XRTHKNkMJ7JxA4rhLtng= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07.06.19 02:41, James Bottomley wrote: > On Thu, 2019-06-06 at 17:04 +0200, Enrico Weigelt, metux IT consult > wrote: >> From: Enrico Weigelt >> >> The MODULE_DEVICE_TABLE() macro already checks for MODULE defined, >> so the extra check here is not necessary. >> >> Changes v2: >> * make dptids const to fix warning on unused variable > > I don't think this works; in my version of gcc, const does not defeat > the unused variable warning if I try with a test programme: > > jejb@jarvis:~> gcc -Wunused-variable -c test1.c > test1.c:3:18: warning: ā€˜iā€™ defined but not used [-Wunused-cons > t-variable=] > static const int i[] = { 1, 2, 3}; Which gcc version are you using ? Could you please have a try w/ the kernel (plus my patch) ? Tested w/ 6.3.0-18+deb9u1 (stretch-amd64), got no warnings. --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287