From patchwork Wed Jan 7 22:13:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: stephen hemminger X-Patchwork-Id: 17213 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.176.167]) by ozlabs.org (Postfix) with ESMTP id B7A6DDE425 for ; Thu, 8 Jan 2009 09:13:59 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762136AbZAGWNv (ORCPT ); Wed, 7 Jan 2009 17:13:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757310AbZAGWNu (ORCPT ); Wed, 7 Jan 2009 17:13:50 -0500 Received: from mail.vyatta.com ([76.74.103.46]:57466 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762165AbZAGWNt (ORCPT ); Wed, 7 Jan 2009 17:13:49 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.vyatta.com (Postfix) with ESMTP id 761764F4CFA; Wed, 7 Jan 2009 14:13:52 -0800 (PST) X-Virus-Scanned: amavisd-new at tahiti.vyatta.com Received: from mail.vyatta.com ([127.0.0.1]) by localhost (mail.vyatta.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oNT4GFaMjO8h; Wed, 7 Jan 2009 14:13:47 -0800 (PST) Received: from extreme (pool-96-225-207-155.ptldor.fios.verizon.net [96.225.207.155]) by mail.vyatta.com (Postfix) with ESMTP id 95A864F4CF8; Wed, 7 Jan 2009 14:13:47 -0800 (PST) Date: Wed, 7 Jan 2009 14:13:43 -0800 From: Stephen Hemminger To: David Miller , Krzysztof =?UTF-8?B?SGHFgmFzYQ==?= Cc: netdev@vger.kernel.org Subject: [PATCH] hdlc: fix compile problem Message-ID: <20090107141343.3e256119@extreme> Organization: Vyatta X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fix build problem with hdlc driver. hdlc_null_ops was being referenced before it was defined! Signed-off-by: Stephen Hemminger --- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/net/wan/hdlc.c 2009-01-07 14:08:43.510247589 -0800 +++ b/drivers/net/wan/hdlc.c 2009-01-07 14:09:39.093495837 -0800 @@ -40,6 +40,8 @@ static const char* version = "HDLC support module revision 1.22"; +static const struct header_ops hdlc_null_ops; + #undef DEBUG_LINK static struct hdlc_proto *first_proto; @@ -218,8 +220,6 @@ int hdlc_ioctl(struct net_device *dev, s return -EINVAL; } -static const struct header_ops hdlc_null_ops; - static void hdlc_setup_dev(struct net_device *dev) { /* Re-init all variables changed by HDLC protocol drivers,