Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4318198rwb; Mon, 31 Jul 2023 05:16:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlEgcIONAWaSXx3wgtPZz6WxTQO9QVeE12bntS6DAX/yTCoSgpwWUnskTzyot696JI6l9FFc X-Received: by 2002:a05:6a20:1441:b0:134:3a9b:4cd7 with SMTP id a1-20020a056a20144100b001343a9b4cd7mr10622514pzi.23.1690805793929; Mon, 31 Jul 2023 05:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690805793; cv=none; d=google.com; s=arc-20160816; b=A6Ae2uTG4v7e2FrFJ1UYtd5/Qq03nvQe9cKIEbrCOrK7xK1Rn+rUtDTHuV/SFU4ueD +UpB6oi/y+hB+4+9/vvLcwvfmv4uyBI6VgYJNhknBc54teL0X/D52dQHRFQ5yIyf2ZXE 88pDgWJ2TsPk+PVLKukNsOsGfm3GKG6yfEyflejcYQdDYq0N8RsdvhHeinixSZKywhmv c9DLbqpPzuBNDZ4C0GwR8JdQmtRIcmOjHaj34W8Er9flQg3K4AIbInqN1Vp7h5LwzXL5 SIil1C3lfxAl1zPHO9aNot085nL4mOZANgm5lstj7TefGAj7HOCYh4kaiNf+kGwPK97L WwZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TQBwNAWSGF0fG/eecQyVeXZXGV6rbl/frwEjjjj9aYc=; fh=Qv5hPqadHX34I6jmINVWg1spmBJKMeato09X6JJ3U2Q=; b=lNgJbfBd9AEyb8LUzBUSo8URSmPUAQtxHouDvqd6HUuA614EqgYPAT0F2fJF0desrI wiy7f5s9cLOVtREx+Z7Ls8zSLODO76ZNGPAj1Ws85PkQ7Nz6woL1EwKpwHvS5En8QVs2 Bg4syAG/hmq5v9Tzw+dGWGx0VcC27e9AqMg9cvbVECYhBJCZAlxwI8S/0wv2I/2UpuEF c7bThsBM9KoDHP1UyRBU49YvIjDsnFUWGDSXZrZI3MBDzwHSJKmVX757u0l7O478d+b/ DAvgL0iXCDkqzrNXshCFXKezwTmbSLXJPyxkXct2pSm1VflznhLb4Q6ytHevDqnHLWxt 4Png== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=IJxUcEUf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m67-20020a632646000000b00553d7157e86si7252134pgm.338.2023.07.31.05.16.21; Mon, 31 Jul 2023 05:16:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=IJxUcEUf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231629AbjGaKue (ORCPT + 99 others); Mon, 31 Jul 2023 06:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbjGaKtw (ORCPT ); Mon, 31 Jul 2023 06:49:52 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4C3A10E0; Mon, 31 Jul 2023 03:49:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1690800562; bh=JGGtMrE57kUvgv6mo7tmcpGnIHxi87n9B+IU2cOpSMI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IJxUcEUfQfpGEWROn7cdMw1hixU6L6YhjdHvvkDecF3rT8pSTQh5Tp0WTrjH/ydCS aESRGHF6y5yzexM6bTS/U2k6OEDZ+wS9uzLm9vMd6b4VirHzdPamgRZ+xLQy/aSLDr VNup9aq9QC0plDwmOo2wXbgbfTwRWZcOo1TfdsrA= Received: from ld50.lan (unknown [101.88.28.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 17D3B6019D; Mon, 31 Jul 2023 18:49:22 +0800 (CST) From: WANG Xuerui To: Song Liu Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, WANG Xuerui Subject: [PATCH 3/5] raid6: test: cosmetic cleanups for the test Makefile Date: Mon, 31 Jul 2023 18:49:09 +0800 Message-Id: <20230731104911.411964-4-kernel@xen0n.name> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230731104911.411964-1-kernel@xen0n.name> References: <20230731104911.411964-1-kernel@xen0n.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: WANG Xuerui Use tabs/spaces consistently: hard tabs for marking recipe lines only, spaces for everything else. Also, the OPTFLAGS declaration actually included the tabs preceding the line comment, making compiler invocation lines unnecessarily long. As the entire block of declarations are meant for ad-hoc customization (otherwise they would probably make use of `?=` instead of `=`), move the "Adjust as desired" comment above the block too to fix the long invocation lines. Signed-off-by: WANG Xuerui --- lib/raid6/test/Makefile | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile index 4fb7700a741bd..143cda60faa12 100644 --- a/lib/raid6/test/Makefile +++ b/lib/raid6/test/Makefile @@ -6,14 +6,15 @@ pound := \# -CC = gcc -OPTFLAGS = -O2 # Adjust as desired -CFLAGS = -I.. -I ../../../include -g $(OPTFLAGS) -LD = ld -AWK = awk -f -AR = ar -RANLIB = ranlib -OBJS = int1.o int2.o int4.o int8.o int16.o int32.o recov.o algos.o tables.o +# Adjust as desired +CC = gcc +OPTFLAGS = -O2 +CFLAGS = -I.. -I ../../../include -g $(OPTFLAGS) +LD = ld +AWK = awk -f +AR = ar +RANLIB = ranlib +OBJS = int1.o int2.o int4.o int8.o int16.o int32.o recov.o algos.o tables.o ARCH := $(shell uname -m 2>/dev/null | sed -e /s/i.86/i386/) ifeq ($(ARCH),i386) @@ -37,9 +38,9 @@ endif ifeq ($(IS_X86),yes) OBJS += mmx.o sse1.o sse2.o avx2.o recov_ssse3.o recov_avx2.o avx512.o recov_avx512.o CFLAGS += -DCONFIG_X86 - CFLAGS += $(shell echo "vpmovm2b %k1, %zmm5" | \ - gcc -c -x assembler - >/dev/null 2>&1 && \ - rm ./-.o && echo -DCONFIG_AS_AVX512=1) + CFLAGS += $(shell echo "vpmovm2b %k1, %zmm5" | \ + gcc -c -x assembler - >/dev/null 2>&1 && \ + rm ./-.o && echo -DCONFIG_AS_AVX512=1) else ifeq ($(HAS_NEON),yes) OBJS += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1 @@ -63,12 +64,12 @@ endif %.uc: ../%.uc cp -f $< $@ -all: raid6.a raid6test +all: raid6.a raid6test raid6.a: $(OBJS) - rm -f $@ - $(AR) cq $@ $^ - $(RANLIB) $@ + rm -f $@ + $(AR) cq $@ $^ + $(RANLIB) $@ raid6test: test.c raid6.a $(CC) $(CFLAGS) -o raid6test $^ -- 2.40.0