Message ID | 1463534212-4879-4-git-send-email-dja@axtens.net (mailing list archive) |
---|---|
State | Rejected |
Headers | show
Return-Path: <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org> X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r8c1D6c72z9t43 for <patchwork-incoming@ozlabs.org>; Wed, 18 May 2016 11:24:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b=c1HxR3Q/; dkim-atps=neutral Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3r8c1D5Qn7zDqQQ for <patchwork-incoming@ozlabs.org>; Wed, 18 May 2016 11:24:16 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b=c1HxR3Q/; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3r8bsm1fYfzDqDm for <linuxppc-dev@lists.ozlabs.org>; Wed, 18 May 2016 11:17:48 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b=c1HxR3Q/; dkim-atps=neutral Received: by ozlabs.org (Postfix) id 3r8bsm0LQ8z9vL8; Wed, 18 May 2016 11:17:48 +1000 (AEST) Delivered-To: linuxppc-dev@ozlabs.org Received: from mail-pa0-x242.google.com (mail-pa0-x242.google.com [IPv6:2607:f8b0:400e:c03::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3r8bsl3gXHz9vK1 for <linuxppc-dev@ozlabs.org>; Wed, 18 May 2016 11:17:47 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axtens.net header.i=@axtens.net header.b=c1HxR3Q/; dkim-atps=neutral Received: by mail-pa0-x242.google.com with SMTP id gh9so3301531pac.0 for <linuxppc-dev@ozlabs.org>; Tue, 17 May 2016 18:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fV+42/xWSsJqc++gHslatJIc7RDEHwYiaVV32Z/CY9c=; b=c1HxR3Q/ezQAK7iZkTF53bVJGtCLioo35Dt1FMheY6pT5+OiW75f1XxQ9062izVmT0 5wWV2ssAw6Qx+jJkHzvSzwMkPvc4rEi+0XxIZrwN/FgwfRvbLl+PpxPHGUmZHhx7irRd hlhBuv2ZaGNANPN3DEsH6oe4OL3tZQWrXi2DU= 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=fV+42/xWSsJqc++gHslatJIc7RDEHwYiaVV32Z/CY9c=; b=TSVwBUBxGktSgv4m7RmLXMutTr/qEL7SCxw4gRe2gSyqevMF8DNLaddDLWGSblJJnX fzfLbXxcRfsB9oD/nORuJnDI12/Ax8iQPMinwOng+BpebSPRkH7i/uqhG8SoNRz8uHYv Jk9Q0OFqfcxnDq0CYacfOYBIExgw/ftTXZnBeey+BKYPurXeMs1K9jjKKPLJe29EPcAY 03YuJyYCyXwCI3Au4WMiPdrf3/xZM8Zb5BHTmwqH34+blzGZwp4EYhtyUW5TL1g9Li11 YrhWsdxDw0OZRk4Si930YqbrQ9yj64dBUg7t2EhaDwJUrlGt9ljm8UURCCyBl1EcIeho On2g== X-Gm-Message-State: AOPr4FUjlqkdRccE4V5TvKckqZYexblj1K5J3qhFcnP0yjIgvqr4OsIrVGis8yC017sJDw== X-Received: by 10.66.27.101 with SMTP id s5mr6436267pag.111.1463534266102; Tue, 17 May 2016 18:17:46 -0700 (PDT) Received: from linkitivity.au.ibm.com ([202.81.18.29]) by smtp.gmail.com with ESMTPSA id d184sm7516379pfc.27.2016.05.17.18.17.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 May 2016 18:17:45 -0700 (PDT) From: Daniel Axtens <dja@axtens.net> To: linuxppc-dev@ozlabs.org Subject: [PATCH 4/4] powerpc/sparse: Use LE definition of REG_BYTE Date: Wed, 18 May 2016 11:16:52 +1000 Message-Id: <1463534212-4879-4-git-send-email-dja@axtens.net> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1463534212-4879-1-git-send-email-dja@axtens.net> References: <1463534212-4879-1-git-send-email-dja@axtens.net> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Linux on PowerPC Developers Mail List <linuxppc-dev.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/linuxppc-dev>, <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/linuxppc-dev/> List-Post: <mailto:linuxppc-dev@lists.ozlabs.org> List-Help: <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/linuxppc-dev>, <mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe> Cc: Daniel Axtens <dja@axtens.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" <linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org> |
diff --git a/arch/powerpc/kernel/align.c b/arch/powerpc/kernel/align.c index 8e7cb8e2b21a..43f745f2cea9 100644 --- a/arch/powerpc/kernel/align.c +++ b/arch/powerpc/kernel/align.c @@ -230,7 +230,7 @@ static int emulate_dcbz(struct pt_regs *regs, unsigned char __user *addr) #endif #endif -#ifdef __LITTLE_ENDIAN__ +#if defined(__LITTLE_ENDIAN__) || defined(__CHECKER__) #define REG_BYTE(rp, i) (*(((u8 *)((rp) + ((i)>>2)) + ((i)&3)))) #endif
Sparse complains that it doesn't know what REG_BYTE is: arch/powerpc/kernel/align.c:313:29: error: undefined identifier 'REG_BYTE' arch/powerpc/kernel/align.c:320:37: error: undefined identifier 'REG_BYTE' arch/powerpc/kernel/align.c:328:29: error: cast from unknown type arch/powerpc/kernel/align.c:328:29: error: cast from unknown type REG_BYTE is defined differently based on whether we're compiling for LE, BE32 or BE64. Sparse apparently doesn't provide __BIG_ENDIAN__ or __LITTLE_ENDIAN__, so add an explicit __CHECKER__ to the LE definition. The choice of LE is arbitrary. Signed-off-by: Daniel Axtens <dja@axtens.net> --- arch/powerpc/kernel/align.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)