Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4858780ybl; Tue, 4 Feb 2020 03:18:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzoJaUIWaSSVOep0k3Y2s71eit4Wgcg3ljp+43qLLbd6EuWP7ElVuuAncEMNvm3nLrFEl6h X-Received: by 2002:a05:6830:154c:: with SMTP id l12mr21497547otp.275.1580815139700; Tue, 04 Feb 2020 03:18:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580815139; cv=none; d=google.com; s=arc-20160816; b=P2d3aYeV51aBfhg+9M19LB7h8BgUsn9vAW2WqPeh9nOZyWX1i1I80Ifx7P6dli4Mhu KTIyccsNLiocSGsuZ+mRcRjd7KQQniLKH+1H8iSTHlfpB86yGsN50LCI1NX/LlYgXGvB YqTMQ+ZzO7XGv1cxzRP4ZUspEMVxv5p/UcQazldrlHZaB12+2wQuGUECWbqMKjl1AOg9 72ySY1bo8xqhy3sJ1FpfJwBSRny0IEh6kMkalFHaNoxImEzmYCvSi/4JQfHJilGBnc5/ f1q/dAumHX5Jrc2J7dyG4fiOd+wTaZ56dDAGVvdZxI/Y+hzTE/8bMVwYzHfoLcG+oMql 2+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UJrcFiRGFHpeFKIvgEGIts5N+gXYNo7ESY+LB68CPkY=; b=ZLhqh4LL4RqKTCvTABe0q4fALhK9GeJXCpT/4S4apooAa0Eyp5axPMYoN//kXGF91D MIopeQs5gGXAYjlv7OaayGKKK2F25zgNWOLvp3bYwe6mToG4WcWzaz/Y31uNiw5+/kKg PG1XBt5wYYnWxl6FkOAbAkhJWjt3zpTBpviOHYGbYxkiu/Uh2a/Cd58VXChHeXRqT6F/ 2lg1ns0gp24IhS6DnhPkL3z8aedsqdpglYZFIP0t4oVkmz3tq0VPJHZ5xEZFMa8ks972 JIaneExcpSmg8hwMz8WMnitY4cYl1JO06SbFjv95oP+wn5GhdqpjJQi+iwBSwCBL6k9B LECw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=abh9OyqK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f204si9951442oia.43.2020.02.04.03.18.39; Tue, 04 Feb 2020 03:18:59 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=abh9OyqK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbgBDLRq (ORCPT + 99 others); Tue, 4 Feb 2020 06:17:46 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38954 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726898AbgBDLRq (ORCPT ); Tue, 4 Feb 2020 06:17:46 -0500 Received: by mail-pf1-f193.google.com with SMTP id 84so9296817pfy.6; Tue, 04 Feb 2020 03:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UJrcFiRGFHpeFKIvgEGIts5N+gXYNo7ESY+LB68CPkY=; b=abh9OyqK6w5mLqZzYDKcPYa59w2kpiI51le1AN+3A+rOUb0P5/yjVA6/PBWopXrCFa aLcaoxbWVOubeL4X0f2h5sbapQpEbkPgl3oVaEt5WKFdA2OcCViy7PK/UrN1AXjs5C4U uvHwpTRNBUTxcwSlbGP+T5afL/79kucoekn+opShhLhmW8R3bntLfYRZq0erAGs83Em6 LBHnC7u2tDikZvVfGL5dkfOIQ7/qrncNjwfJSd8VVvUoKbvpT5MD3Kf4kAaGCxC1cdGx VH15CRASgPMmp3dPGgMTMMRCHvRO3eYwwtVf3Fagv0UtvBMDTGC1u7PiXjPtt5QjtU/d yyLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UJrcFiRGFHpeFKIvgEGIts5N+gXYNo7ESY+LB68CPkY=; b=unthTuHjCon0EBaYJsRl4Kzas2MxpWn4UVSZB8dgHWhYHh8Y7yLEVDZoqeYTucVZl0 kZFa2PwLBhT+ubwO/xEZf5Y5ugWQgWGsnvmUyEtDFZwAZ560FKQHa8VA95U9zVhw3rTl Fr1EQO1aqpe1JuKqXg/HOW3OXY73LNmy0hBLCeKZ498xyG/dW+DzLjVZzeosODct0I1/ ehWryelv9AxsqQm73pn0IU/JjsWnS9f/NmuEmutJqtg2EC2aK1MTXC2ESSsPq/WtslS1 8adhI4tKmZViFm7UA0ueTOurzcZYecUYWevvoeckXkL8JOB7WoTiXq1DAVyE6+W+FB7k BflQ== X-Gm-Message-State: APjAAAU3fMnWnZDVNxyfR+0F/1n5X2b3ucIbJxD3GamI2o1CQabETxSy /gIrotHFJx1sZSLPsdg7Nwsa3WMX13vViOIWpbk= X-Received: by 2002:a65:4685:: with SMTP id h5mr32220017pgr.203.1580815064309; Tue, 04 Feb 2020 03:17:44 -0800 (PST) MIME-Version: 1.0 References: <20200131153440.20870-1-calvin.johnson@nxp.com> <20200131153440.20870-4-calvin.johnson@nxp.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 4 Feb 2020 13:17:36 +0200 Message-ID: Subject: Re: [PATCH v1 3/7] net/fsl: add ACPI support for mdio bus To: "Calvin Johnson (OSS)" Cc: "linux.cj@gmail.com" , Jon Nettleton , Russell King - ARM Linux , Makarand Pawagi , Cristi Sovaiala , Laurentiu Tudor , Ioana Ciornei , Varun Sethi , Pankaj Bansal , "Rajesh V. Bikkina" , "David S. Miller" , "Madalin Bucur (OSS)" , Linux Kernel Mailing List , netdev Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 4, 2020 at 9:18 AM Calvin Johnson (OSS) wrote: > > -----Original Message----- > > From: Andy Shevchenko > > Subject: Re: [PATCH v1 3/7] net/fsl: add ACPI support for mdio bus > > On Fri, Jan 31, 2020 at 5:37 PM Calvin Johnson > > wrote: ... > > > - snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", (unsigned long > > long)res.start); > > > + snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", > > > + (unsigned long long)res->start); > > > > Why this has been touched? > > Without this change, I get: > --------------------------------------------------------- > drivers/net/ethernet/freescale/xgmac_mdio.c: In function 'xgmac_mdio_probe': > drivers/net/ethernet/freescale/xgmac_mdio.c:269:27: error: request for member 'start' in something not a structure or union > (unsigned long long)res.start); > ^ > scripts/Makefile.build:265: recipe for target 'drivers/net/ethernet/freescale/xgmac_mdio.o' failed > make[4]: *** [drivers/net/ethernet/freescale/xgmac_mdio.o] Error 1 > --------------------------------------------------------- I see. Thanks. Can you leave it one line as it was before? ... > > (Hint: missed terminator) > static const struct acpi_device_id xgmac_mdio_acpi_match[] = { > { "NXP0006", 0 }, > { } > }; > Is this what you meant? Yes! ... > > > + .acpi_match_table = ACPI_PTR(xgmac_mdio_acpi_match), > > > > ACPI_PTR is not needed otherwise you will get a compiler warning. > > No compiler warning was observed in both cases. You mean you tried CONFIG_ACPI=n and didn't get a warning about unused static variable? Perhaps you may run `make W=1 ...` > I can see other drivers using this macro. They might have hidden same issue. -- With Best Regards, Andy Shevchenko