Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2312207pxb; Fri, 5 Feb 2021 14:44:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3tXuvt1oq2bczq2sAxmpwcW1Rad5AzgveMGz6XUTLHCvAekZLVPm0Vni5HhGdJ5cvIiYS X-Received: by 2002:a17:906:2a1b:: with SMTP id j27mr231750eje.438.1612565064317; Fri, 05 Feb 2021 14:44:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612565064; cv=none; d=google.com; s=arc-20160816; b=zZov1C9q3Z/NGWGofOMKCupeZBRp/dpYI4VyfHsSrDs5CM3NgHilcZVqiJsmyXJA2n H+6u8bF8TBxnZAdppc76y3W2maKXmIiyRbkAIR/2ldzf0VIWVyakJfwEnt7JO79Y1gJ5 xIyDgAfXzdGFi0/0Mb+zg0xT3/0xmnePSO/pphJdFPr4SLg+XjRecEqv+st9bkH27vTx Fjp63VnXQvv1L6dzeHFjoFS5f/0fYIFb2FVy/QtvCm/XubYI4GmlgDJhjlXmBu2Cghwr 1x+EJBvn+mqOWVqNDxlNIPGQ0ILaTr5goOpq3nMw9O+SLhrUgg6c4pnJnNAL7nimtg9Y qQ7g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4Hc6KIIrDX7y+UVVuY2Ev98ODbI3mMU2nKMsIzL3+b4=; b=Y0yDumjILINx0GpU4PPpgQKK2Cv3VFPhJZW3g/fyf1qW5Y9OVaDcrAmcBD199f02Zw b3/HLbBM5HFhiI6wDgGZN97gmvPj2HAr843Fp1KyLNa7bVJOb37ZsuCQviZR7HmDi0B8 nLn8vMg2l4YBbG3mTTFWsL/UbdtsSS2nyYkmYeOwRhRuy3xB7xyVTwwW3KdFeQtncX7n UwHViDmeDeNwO0kNJhIeCBTSMpofkF02IvmHvOZ0XlmFm87/YBLTjY0mS011h9Lg9epT 4xjDSfL0HOnFf3/tqX2f4Y7xhTLcd7eVOgOSFznfGMyLMrZhC/+Yr2KlvmWZpkuXR4m/ vcFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XCpM0PpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si2771577edy.511.2021.02.05.14.43.59; Fri, 05 Feb 2021 14:44:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XCpM0PpV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232058AbhBEWks (ORCPT + 99 others); Fri, 5 Feb 2021 17:40:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:44348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232817AbhBEOwO (ORCPT ); Fri, 5 Feb 2021 09:52:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C912B65018; Fri, 5 Feb 2021 14:10:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612534256; bh=mfiiNN2iZPRQejpl2BGTt2sEn3eQDVkN/A1SY07Oq/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XCpM0PpVwxtZ2CGsenE8drxWFFNLDSu+ViKxeMKlIxyJZYSQkVbbOFxEjPM4ajjb+ 1FfeAeRO+axY90raabrxEFrkW75gg8n//b/NmB2biyt9hnzk0GgUTROOeBOvUN3XTq U4s9ixdLbtMbbwvMpjVvJS3zqwpIrS7MSjz43lww= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Libor Pechacek , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 45/57] selftests/powerpc: Only test lwm/stmw on big endian Date: Fri, 5 Feb 2021 15:07:11 +0100 Message-Id: <20210205140657.911974385@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210205140655.982616732@linuxfoundation.org> References: <20210205140655.982616732@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman [ Upstream commit dd3a44c06f7b4f14e90065bf05d62c255b20005f ] Newer binutils (>= 2.36) refuse to assemble lmw/stmw when building in little endian mode. That breaks compilation of our alignment handler test: /tmp/cco4l14N.s: Assembler messages: /tmp/cco4l14N.s:1440: Error: `lmw' invalid when little-endian /tmp/cco4l14N.s:1814: Error: `stmw' invalid when little-endian make[2]: *** [../../lib.mk:139: /output/kselftest/powerpc/alignment/alignment_handler] Error 1 These tests do pass on little endian machines, as the kernel will still emulate those instructions even when running little endian (which is arguably a kernel bug). But we don't really need to test that case, so ifdef those instructions out to get the alignment test building again. Reported-by: Libor Pechacek Signed-off-by: Michael Ellerman Tested-by: Libor Pechacek Link: https://lore.kernel.org/r/20210119041800.3093047-1-mpe@ellerman.id.au Signed-off-by: Sasha Levin --- .../testing/selftests/powerpc/alignment/alignment_handler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/alignment/alignment_handler.c b/tools/testing/selftests/powerpc/alignment/alignment_handler.c index cb53a8b777e68..c25cf7cd45e9f 100644 --- a/tools/testing/selftests/powerpc/alignment/alignment_handler.c +++ b/tools/testing/selftests/powerpc/alignment/alignment_handler.c @@ -443,7 +443,6 @@ int test_alignment_handler_integer(void) LOAD_DFORM_TEST(ldu); LOAD_XFORM_TEST(ldx); LOAD_XFORM_TEST(ldux); - LOAD_DFORM_TEST(lmw); STORE_DFORM_TEST(stb); STORE_XFORM_TEST(stbx); STORE_DFORM_TEST(stbu); @@ -462,7 +461,11 @@ int test_alignment_handler_integer(void) STORE_XFORM_TEST(stdx); STORE_DFORM_TEST(stdu); STORE_XFORM_TEST(stdux); + +#ifdef __BIG_ENDIAN__ + LOAD_DFORM_TEST(lmw); STORE_DFORM_TEST(stmw); +#endif return rc; } -- 2.27.0