From patchwork Tue Jul 12 21:52:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 647651 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 3rpwgl4DYyz9sBX for ; Wed, 13 Jul 2016 07:53:07 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=w9UPXWyZ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CB8EAA74D2; Tue, 12 Jul 2016 23:53:05 +0200 (CEST) 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 I23njecQxLi1; Tue, 12 Jul 2016 23:53:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 61BFCA74E0; Tue, 12 Jul 2016 23:53:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80CA4A74E0 for ; Tue, 12 Jul 2016 23:53:02 +0200 (CEST) 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 F4x6QUP8_ImU for ; Tue, 12 Jul 2016 23:53:02 +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 mail-pa0-f68.google.com (mail-pa0-f68.google.com [209.85.220.68]) by theia.denx.de (Postfix) with ESMTPS id 09075A74D2 for ; Tue, 12 Jul 2016 23:52:59 +0200 (CEST) Received: by mail-pa0-f68.google.com with SMTP id hh10so1765061pac.1 for ; Tue, 12 Jul 2016 14:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=r5IMRFUfII3CcsJDpwY1isct8FF7mPj9W0LeE+9dSp4=; b=w9UPXWyZXBGmhp7usJXhDhwwrdpcGjPPPyrRJIZd5CRrD+FGWY/SUZJh4Z5ucRBbNw 2FzlJ5mXk/yPZRF3n3vmocUoGttgICJlYD2byuVJOn2A/ab9c3M33eS+y6uBCnLRHJn9 rt3oaYkdbITDn9bMVCQT2RHNtRfxwDzvwCVH9qU2+8xaJsDUTEVQVK0IplO0BTF732lQ wN/36cTYmXznLICnZgAttfYWOU/cEbIpaHNb5uJpFYRjVAcvVtKXv2Gua/VrDcTAgdxb 6RWEK/SqWPzQC2ZWuharyKA3ZwQ1WQKLvAaspjTKtzT1w1R9mzlerEasIy08uW6qJmRj fJHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r5IMRFUfII3CcsJDpwY1isct8FF7mPj9W0LeE+9dSp4=; b=LWDxjaQ9ALnKlwR18RCod4dBEnshGPC3pmXiX+Yf7S10B/dKSYFTAiAHTdslMPjrLN 33JfaqqyIpPlSBxWURbbv5U1+oSXRXmO6/ZZVR7lCcHqLtecawWRaQhRrK4FWc265Fc+ O1lLeT9t4So+d25iZlbF8CJ7qsTqlybDesDBPEsX3YWPlGUP4Eal+JUw2GmaBQwmPCee z3D+bLvGk5erkGdsHgiynhlp5WbKSE5x7KXfDzohxzupv3dukFu1CqihfvYzpXM+1bJI a2rQtob03Tn5kFNNNhkGZ9uZ3tzcmjs9ubBfxusFXHOEup8XPo8ryP0wF1GmstXRqwkv ntOw== X-Gm-Message-State: ALyK8tLKSLfzvCUzce5sAG6A9lip2stMU+pAb7aY8/GOEme3+6Go6CVAkdH/IbhgMQUp/g== X-Received: by 10.66.101.1 with SMTP id fc1mr7792850pab.84.1468360377533; Tue, 12 Jul 2016 14:52:57 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by smtp.gmail.com with ESMTPSA id q26sm2577743pfj.53.2016.07.12.14.52.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Jul 2016 14:52:56 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de, Joe Hershberger Date: Wed, 13 Jul 2016 09:52:36 +1200 Message-Id: <20160712215236.18160-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: References: Cc: Marek Vasut , mark.tomlinson@alliedtelesis.co.nz, Chris Packham , =?UTF-8?q?Stefan=20Br=C3=BCns?= , Prabhakar Kushwaha Subject: [U-Boot] [PATCH v2] net: smsc95xx: Use correct get_unaligned functions X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The __get_unaligned_le* functions may not be declared on all platforms. Instead, get_unaligned_le* should be used. On many platforms both of these are the same function. Signed-off-by: Chris Packham Acked-by: Joe Hershberger --- Hi Joe, Mark didn't manage to get to this before he went on leave so I've taken it over. Changes in v2: - Remove gerrit reference from commit message - Sign-off and change author drivers/usb/eth/smsc95xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c index 08eaed5..7d9abfd 100644 --- a/drivers/usb/eth/smsc95xx.c +++ b/drivers/usb/eth/smsc95xx.c @@ -391,8 +391,8 @@ static int smsc95xx_write_hwaddr_common(struct usb_device *udev, struct smsc95xx_private *priv, unsigned char *enetaddr) { - u32 addr_lo = __get_unaligned_le32(&enetaddr[0]); - u32 addr_hi = __get_unaligned_le16(&enetaddr[4]); + u32 addr_lo = get_unaligned_le32(&enetaddr[0]); + u32 addr_hi = get_unaligned_le16(&enetaddr[4]); int ret; /* set hardware address */