Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp55242yba; Wed, 15 May 2019 18:50:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxB2UsjFeOe9BBhcAD5gPeX1WFG9l5mbH7KHGHD60B5asWPGIkuoLuV6/+cjD/xuU0FzluE X-Received: by 2002:aa7:87c3:: with SMTP id i3mr49481747pfo.85.1557971415542; Wed, 15 May 2019 18:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557971415; cv=none; d=google.com; s=arc-20160816; b=A0LdKgdy7SpgXplwS2r13OrfUh+et7tpSGpH5+sbxRwtouJWPWibjVKpzu8XxJarg7 QSPQdLasOxRFMsNAjy1A+vLRVM49GsPR5mEonO39d6zfcPsFIkiIlT1sdVfsaFh0Qdv3 Q3/ayBT36/MueLJjGcgi2kxnOgJ61fvzpH0PGN2AyEM4cPs1ARP7A6UAnqZ18tgCCeJN F2mkyEiL2qW686WaRh79LBBUeEe5SKcDR7S6Fi6Pk6oK8A8XxafIPEdnh8QpW9sb4Azp bhsyfg9loV1mVRII+iASJRgIzKGWCt6Y+rYgapoNU1iMRNbjRjYPlfJpqlDt9LGo6qkO c5DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=ScXaFeR9V6kuvpwBg/U8HCbHPSnAvCsxxSit7yP9Jc8=; b=jRK7lMTyX28CEuxfi1W9+EvT9I/pZU8wmzuniqQfVkHcD9vYNdAydIp49uaRdo9xv4 XlL1/iTDRn4N0UEYnxA8sAm200qWEjd7KL3q3vDIUkgnz5vt1xeAXhvmQnQnPdHo0JBP iXz3em8ebC3LlU0M7fLvH7PlkIHXrIjWf949+iTedtMIpSs156a1cz4aBzvpi5SrOBHE eJRztNHaDNYBhd33RKBgE6de0h4vhDiUXODTez1d7ZWQfhyqa3BKUYSmT6Pb8/FlxKWP 7a5BzjbALEByDijAzOYYMGaX9z+XdN26pLbumUDeywHl5OOK3/hPv/kT5qe6IXf9usxi r2lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=VPAqTble; 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 i123si4196080pfc.60.2019.05.15.18.49.41; Wed, 15 May 2019 18:50:15 -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; dkim=pass header.i=@lca.pw header.s=google header.b=VPAqTble; 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 S1727667AbfEPBqw (ORCPT + 99 others); Wed, 15 May 2019 21:46:52 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46152 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfEPAeW (ORCPT ); Wed, 15 May 2019 20:34:22 -0400 Received: by mail-qt1-f195.google.com with SMTP id z19so1881969qtz.13 for ; Wed, 15 May 2019 17:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ScXaFeR9V6kuvpwBg/U8HCbHPSnAvCsxxSit7yP9Jc8=; b=VPAqTble6hRyhsj3VGsjmxvb/J600GeROXMLfbdJ6vJcB2QKVPQa4totwCIhVpAi0n fN/2i4xmqUU2K3TkH6isLjLJWlQD30QnMNLx8EUdVTEeWVFZvh/vKoY1nb5krg2tHLCS Fub3F2MxHS9blqY/JPQ6blDIYMbCWD0iZTBf3fBxRQFxKqrAD3LbAXUOp4cf1ahMj5mg IfS3mvd2iAFmLvH5NZnPLrV+7UsTHdP5gMb058Qqqz20YZd/Hs+TPC9AHHmAkTecNF2H MsjLMEBD8xE8AEmL8feaD27CqUASJ7om3ksk/ydwDkv9n/7EMizkt6HnwSCwiQs02cii YXZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ScXaFeR9V6kuvpwBg/U8HCbHPSnAvCsxxSit7yP9Jc8=; b=FbKwH6rKh+RttCTcpGbmGE5Niso7hSzS8H2wYDLXVx9xfKUlW+UYuhjYP8CUgX3FN3 pdZnTUNGa3yAER3kvPM4XRV4/rPSTri6Pq1zDlxk9eUtPaZYlQrsezUdOdyhQN54Xaqb ZKVVQAtxckkiDhJCLLiLXd9Y+EBne83jiP5SkbVD64kHwnZMFjhE2pl/sKJh7Ki1M0vz 8aKR1itvhNRXpCTTDqtI5H6SqTYf9P/ou6I8a+Z+pthxlOBosl5IvSn4xUV2Og8bVKzS qQxZeCF5BWVc0pBEUD+FprpZ5Xt6AqMRWkUQ8Ixq4ZkBvmphsHqqQFHMIX1hbfCrW60I L8Xg== X-Gm-Message-State: APjAAAXP1fAY3n9NL/u4cE2yk/6RJ+Q6shFsVuiVDL1L4si6vZEfDeE8 wkVun3Y4U9dYkohPiSj6T+daMA== X-Received: by 2002:aed:20c4:: with SMTP id 62mr39762062qtb.256.1557966861491; Wed, 15 May 2019 17:34:21 -0700 (PDT) Received: from qians-mbp.fios-router.home (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id b22sm2287417qtc.37.2019.05.15.17.34.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2019 17:34:20 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [RESEND PATCH] nvdimm: fix some compilation warnings From: Qian Cai In-Reply-To: Date: Wed, 15 May 2019 20:34:19 -0400 Cc: Andrew Morton , Vishal L Verma , Dave Jiang , Keith Busch , "Weiny, Ira" , linux-nvdimm , Linux Kernel Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: <7BCECDBE-EC7B-47C6-AF7F-15C67AAA1D6F@lca.pw> References: <20190514150735.39625-1-cai@lca.pw> To: Dan Williams X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On May 15, 2019, at 7:25 PM, Dan Williams = wrote: >=20 > On Tue, May 14, 2019 at 8:08 AM Qian Cai wrote: >>=20 >> Several places (dimm_devs.c, core.c etc) include label.h but only >> label.c uses NSINDEX_SIGNATURE, so move its definition to label.c >> instead. >> In file included from drivers/nvdimm/dimm_devs.c:23: >> drivers/nvdimm/label.h:41:19: warning: 'NSINDEX_SIGNATURE' defined = but >> not used [-Wunused-const-variable=3D] >>=20 >> The commit d9b83c756953 ("libnvdimm, btt: rework error clearing") = left >> an unused variable. >> drivers/nvdimm/btt.c: In function 'btt_read_pg': >> drivers/nvdimm/btt.c:1272:8: warning: variable 'rc' set but not used >> [-Wunused-but-set-variable] >>=20 >> Last, some places abuse "/**" which is only reserved for the = kernel-doc. >> drivers/nvdimm/bus.c:648: warning: cannot understand function = prototype: >> 'struct attribute_group nd_device_attribute_group =3D ' >> drivers/nvdimm/bus.c:677: warning: cannot understand function = prototype: >> 'struct attribute_group nd_numa_attribute_group =3D ' >=20 > Can you include the compiler where these errors start appearing, since > I don't see these warnings with gcc-8.3.1 This can be reproduced by performing extra compiler checks, i.e, "make = W=3Dn=E2=80=9D.=