From patchwork Mon Sep 13 22:06:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 511595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BC9AC433EF for ; Mon, 13 Sep 2021 22:06:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC195610D2 for ; Mon, 13 Sep 2021 22:06:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242716AbhIMWHa (ORCPT ); Mon, 13 Sep 2021 18:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234740AbhIMWH3 (ORCPT ); Mon, 13 Sep 2021 18:07:29 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 848F3C061574 for ; Mon, 13 Sep 2021 15:06:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=9UDCdn/+J/ZFSw+PkN+Giy/F9a5T3Gga4WD8XYCOhuk=; b=edooB8xc5o9xDQYtIuD4sZpFd3 JQy8/WFXE8i5FY830/Y5NeOtmD3lrjc/XlOg6jcka2Vp9eC1+A0c9D+zGcg302+QJeYm8oGWsjD2+ SM2tDYm66EulQ+EFWH4v3Nnjv+HCoyruWL/TW+h0JT4jCO8Rm3GeaDlc29XkIqX2dN6i8sThEwxHm 8AUWR/BY4490kluCQtBQ4EQbPjZlt/w7uZ9TCAjEW7Z1Y1lIbdC4CIaS75ZypY85U2/UCj1DFegd3 7XvUrtwxhrzFJz+7fvzk/vP1Ijy2Hwp0lgShNo/lff1gVhh2y1V+C9Xua9Hbx8yXQ4yrZrPM//+ra /w+ZP2dg==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPu5W-003Oig-Rm; Mon, 13 Sep 2021 22:06:06 +0000 From: Randy Dunlap To: netdev@vger.kernel.org Cc: Randy Dunlap , Geert Uytterhoeven , Richard Cochran , John Stultz , "David S. Miller" , Jakub Kicinski , Andrew Lunn , Heiner Kallweit , Russell King Subject: [PATCH -net] ptp: dp83640: don't define PAGE0 Date: Mon, 13 Sep 2021 15:06:05 -0700 Message-Id: <20210913220605.19682-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Building dp83640.c on arch/parisc/ produces a build warning for PAGE0 being redefined. Since the macro is not used in the dp83640 driver, just make it a comment for documentation purposes. In file included from ../drivers/net/phy/dp83640.c:23: ../drivers/net/phy/dp83640_reg.h:8: warning: "PAGE0" redefined 8 | #define PAGE0 0x0000 from ../drivers/net/phy/dp83640.c:11: ../arch/parisc/include/asm/page.h:187: note: this is the location of the previous definition 187 | #define PAGE0 ((struct zeropage *)__PAGE_OFFSET) Fixes: cb646e2b02b2 ("ptp: Added a clock driver for the National Semiconductor PHYTER.") Signed-off-by: Randy Dunlap Reported-by: Geert Uytterhoeven Cc: Richard Cochran Cc: John Stultz Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Andrew Lunn Cc: Heiner Kallweit Cc: Russell King Reviewed-by: Andrew Lunn --- drivers/net/phy/dp83640_reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20210913.orig/drivers/net/phy/dp83640_reg.h +++ linux-next-20210913/drivers/net/phy/dp83640_reg.h @@ -5,7 +5,7 @@ #ifndef HAVE_DP83640_REGISTERS #define HAVE_DP83640_REGISTERS -#define PAGE0 0x0000 +/* #define PAGE0 0x0000 */ #define PHYCR2 0x001c /* PHY Control Register 2 */ #define PAGE4 0x0004