From patchwork Wed Sep 3 15:26:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 385555 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 64A4B14017F for ; Thu, 4 Sep 2014 01:27:13 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756158AbaICP02 (ORCPT ); Wed, 3 Sep 2014 11:26:28 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:46043 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbaICP01 (ORCPT ); Wed, 3 Sep 2014 11:26:27 -0400 Received: by mail-pa0-f42.google.com with SMTP id lf10so17714490pab.1 for ; Wed, 03 Sep 2014 08:26:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=aFEjtlZngd9iGjBw594EAYNoT4X4O/Ts5Q75y5abksE=; b=aZkTvwleCto0lxIuy4q00dYPwUd7zFelW6VrvLMYPf3V9yHRwXCDzvlehXXR9QkXWs PjKlDzcGy3SqJxCONxfi8TD1v0N3edZhq6oGxxxT49FEQT5zxXuYpRVFG70gLA+F0c0L CSQIZOt7dOW0LnhRlysEhzx+tUeUMAOrUiSI+V80B037sng0GoqCtXPSBDtyYm0gBoPx 4Glds68FrP6HOPj58aiOw+zGCb4rhKw5mv/qKsdF9dUTy33wWU8x8Ba1knS/kW8EB62D stV7WatQalFNesdZCqEUI+45l2TTiKl+sSedxXwbMXZ2WgqpjH959K6p2TA4RA1D/XU9 Zuuw== X-Received: by 10.66.174.72 with SMTP id bq8mr39699352pac.88.1409757985212; Wed, 03 Sep 2014 08:26:25 -0700 (PDT) Received: from [192.168.1.102] ([223.72.65.62]) by mx.google.com with ESMTPSA id yp10sm19397331pac.18.2014.09.03.08.26.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 03 Sep 2014 08:26:23 -0700 (PDT) Message-ID: <54073322.6030508@gmail.com> Date: Wed, 03 Sep 2014 23:26:26 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: "David S. Miller" CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , michal.simek@xilinx.com, Michal Simek Subject: [PATCH] drivers/net/fddi/skfp/h/skfbi.h: Remove useless PCI_BASE_2ND macros Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org They are use less, and may generate compiling warnings, so remove them (microblaze, arc, arm64, and unicore32 have already defined PCI_IOBASE). The related warnings (with allmodconfig under microblaze): CC [M] drivers/net/fddi/skfp/skfddi.o In file included from drivers/net/fddi/skfp/skfddi.c:95:0: drivers/net/fddi/skfp/h/skfbi.h:151:0: warning: "PCI_IOBASE" redefined #define PCI_IOBASE 0xffffff00L /* Bit 31..8: I/O Base address */ ^ In file included from include/linux/io.h:22:0, from include/linux/pci.h:31, from drivers/net/fddi/skfp/skfddi.c:82: ./arch/microblaze/include/asm/io.h:33:0: note: this is the location of the previous definition #define PCI_IOBASE ((void __iomem *)_IO_BASE) ^ Signed-off-by: Chen Gang --- drivers/net/fddi/skfp/h/skfbi.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/fddi/skfp/h/skfbi.h b/drivers/net/fddi/skfp/h/skfbi.h index c1ba26c..3de2f0d 100644 --- a/drivers/net/fddi/skfp/h/skfbi.h +++ b/drivers/net/fddi/skfp/h/skfbi.h @@ -147,11 +147,6 @@ #define PCI_MEM64BIT (2<<1) /* Base addr anywhere in 64 Bit range */ #define PCI_MEMSPACE 0x00000001L /* Bit 0: Memory Space Indic. */ -/* PCI_BASE_2ND 32 bit 2nd Base address */ -#define PCI_IOBASE 0xffffff00L /* Bit 31..8: I/O Base address */ -#define PCI_IOSIZE 0x000000fcL /* Bit 7..2: I/O Size Requirements */ -#define PCI_IOSPACE 0x00000001L /* Bit 0: I/O Space Indicator */ - /* PCI_SUB_VID 16 bit Subsystem Vendor ID */ /* PCI_SUB_ID 16 bit Subsystem ID */