From patchwork Tue Apr 10 16:20:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Linz X-Patchwork-Id: 151672 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id BBCFDB7042 for ; Wed, 11 Apr 2012 02:21:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D7B3280B4; Tue, 10 Apr 2012 18:21:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G84IlwJeYWtK; Tue, 10 Apr 2012 18:21:55 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2D7A280AA; Tue, 10 Apr 2012 18:21:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 24F61280AA for ; Tue, 10 Apr 2012 18:21:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tBsAhyVpde7v for ; Tue, 10 Apr 2012 18:21:50 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.160]) by theia.denx.de (Postfix) with ESMTPS id 8EA0C2809E for ; Tue, 10 Apr 2012 18:21:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1334074907; l=1283; s=domk; d=li-pro.net; h=Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH; bh=ebb8X515bJbWDYjcn8zom7NTcCg=; b=fcyBZby3/PLQqmP9zX2t+6fmxrN67I7gCBTwm61SFN9ok7dvyH3cuswfRHFKSHcNcAb oP9g1A6tkC7Zbf5nuNwxTWbqVhAzKy5Kc80wCc8WhPjUJpfdX5Ko3EDaBUQM1Y6srV7x3 zvYQf7puXJuG2PhVLrgXcrBsDGU1xPtm62A= X-RZG-AUTH: :IGUKb2CkcrLHmZv+FHarxbxlXmJO7WRQLa+vsyW+4RLunWeioNrxLvcCHZ5a X-RZG-CLASS-ID: mo00 Received: from localhost.localdomain (i588283CD.versanet.de [88.130.131.205]) by smtp.strato.de (cohen mo1) (RZmta 28.1 DYNA|AUTH) with ESMTPA id e0026fo3AGFu5X ; Tue, 10 Apr 2012 18:21:22 +0200 (MEST) From: Stephan Linz To: u-boot@lists.denx.de Date: Tue, 10 Apr 2012 18:20:57 +0200 Message-Id: <1334074857-16432-1-git-send-email-linz@li-pro.net> X-Mailer: git-send-email 1.7.0.4 Cc: Stephan Linz Subject: [U-Boot] [PATCH] net: ll_temac: drop obsolete "NAMESIZE" define X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de ... after commit "net/miiphy/serial: drop duplicate NAMESIZE define" (sha1:f6add13) was applied. The building of the new LL TEMAC network driver fails with error below: xilinx_ll_temac.c: In function 'xilinx_ll_temac_initialize': xilinx_ll_temac.c:301: error: 'NAMESIZE' undeclared (first use in this function) xilinx_ll_temac.c:301: error: (Each undeclared identifier is reported only once xilinx_ll_temac.c:301: error: for each function it appears in.) Signed-off-by: Stephan Linz Acked-by: Mike Frysinger --- drivers/net/xilinx_ll_temac.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/xilinx_ll_temac.c b/drivers/net/xilinx_ll_temac.c index 85660c0..27dafc1 100644 --- a/drivers/net/xilinx_ll_temac.c +++ b/drivers/net/xilinx_ll_temac.c @@ -298,9 +298,9 @@ int xilinx_ll_temac_initialize(bd_t *bis, struct ll_temac_info *devinf) /* use given name or generate its own unique name */ if (devinf->devname) { - strncpy(dev->name, devinf->devname, NAMESIZE); + strncpy(dev->name, devinf->devname, sizeof(dev->name)); } else { - snprintf(dev->name, NAMESIZE, "lltemac.%lx", devinf->base_addr); + snprintf(dev->name, sizeof(dev->name), "lltemac.%lx", devinf->base_addr); devinf->devname = dev->name; }