From patchwork Wed Apr 12 01:35:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Brown X-Patchwork-Id: 749699 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w2mks5K7Dz9sNr for ; Wed, 12 Apr 2017 11:37:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IsN7OV9h"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3w2mks4GqSzDqFc for ; Wed, 12 Apr 2017 11:37:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IsN7OV9h"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3w2mjK3RzhzDq7c for ; Wed, 12 Apr 2017 11:36:21 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IsN7OV9h"; dkim-atps=neutral Received: by mail-pf0-x242.google.com with SMTP id c198so2327085pfc.0 for ; Tue, 11 Apr 2017 18:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WhI5nY4qk7Arn6D3eVVfpGGakO4U8ScY12X0Nw7P+xs=; b=IsN7OV9hXvrxUln841Nl7Of7pAWq5U/ViXnHPl5K6GkOf0p4kRiB7lc6FBbO+YOf8F MAJAEHQrfVnHZgPh/p4+2oDlSJ9C8jti8KvwglOM814Ck8zgENhVXvlfnJ++Rp2f4Y/e rYOeZBw87rK8wrD/vXKL97hjz7TjIR01PRuXjhZmUKsRzYzjgnXGf3r1zdkiIqIjOq1x jwIUSMS/WgzDgMIaZ9f3qwJlGA8Yy6lOL+uGoEC19TLz0WMx1UcomR9zOYAKoXLnYsH4 Ts9W0Y4nBeI4PzU7NxWNx45xz/6dQn699iD20koEbgmEcvIMI/HwUTjoY2pJO+RWin6L XJzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WhI5nY4qk7Arn6D3eVVfpGGakO4U8ScY12X0Nw7P+xs=; b=MiuVO3ahGFdbgVNBW5cOVldYbC1pq4Rh6aQI50Ch+T0LpTgFYjZFJWvalAACphFi9B tX1XjF2Iqdu4LGCi+atYsb1/N9ng5MNRkRds6v+z3ZBFxVU3e8U2ercoc8pTsYVBlko1 CH2hvdYrpuoIruA64OMyQEWz1O5cuMzhpTsctkgoRyg0FbiOTwDhpOei6HF4mxkRHKGP qp/XCCZN+EnqJ4aiVDfUyOeWvFzkaX1HZYk7Y7LyV8yR9ufvln6HVyZsNqM6SxgOd7wR vfcGdxAoDXnWfk2aZxIEwMKFJmOZxTu1pMPZ3IAH6OChnT9Vwe14IMx8kbopQKUMyGRe XuOg== X-Gm-Message-State: AFeK/H2u5B7YFT52Rrhn1Au2cMMQJCYzn6Ws4hbrRNiQEebW0CoDhHH8rlfKy1TRpE9KkA== X-Received: by 10.98.141.153 with SMTP id p25mr49964574pfk.195.1491960979471; Tue, 11 Apr 2017 18:36:19 -0700 (PDT) Received: from matt.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id p68sm32703647pga.6.2017.04.11.18.36.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2017 18:36:18 -0700 (PDT) From: Matt Brown To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/2] lib/raid6: Build proper files on corresponding arch Date: Wed, 12 Apr 2017 11:35:51 +1000 Message-Id: <20170412013552.21650-1-matthew.brown.dev@gmail.com> X-Mailer: git-send-email 2.9.3 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-raid@vger.kernel.org, dja@axtens.net Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Previously the raid6 test Makefile did not correctly build the files for testing on PowerPC. This patch fixes the bug, so that all appropriate files for PowerPC are built. Signed-off-by: Matt Brown --- lib/raid6/test/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile index 9c333e9..62b26d1 100644 --- a/lib/raid6/test/Makefile +++ b/lib/raid6/test/Makefile @@ -44,10 +44,12 @@ else ifeq ($(HAS_NEON),yes) CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1 else HAS_ALTIVEC := $(shell printf '\#include \nvector int a;\n' |\ - gcc -c -x c - >&/dev/null && \ - rm ./-.o && echo yes) + gcc -c -x c - >/dev/null && rm ./-.o && echo yes) ifeq ($(HAS_ALTIVEC),yes) - OBJS += altivec1.o altivec2.o altivec4.o altivec8.o + CFLAGS += -I../../../arch/powerpc/include + CFLAGS += -DCONFIG_ALTIVEC + OBJS += altivec1.o altivec2.o altivec4.o altivec8.o \ + vpermxor1.o vpermxor2.o vpermxor4.o vpermxor8.o endif endif ifeq ($(ARCH),tilegx)