Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1359923pxb; Mon, 11 Oct 2021 04:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjNmd9gOwdC723aCvNFWAAT+yAEfa6IeudcdsU6liuLrO/zIbcuzahMfuaDg7kjldwQp8P X-Received: by 2002:a62:148f:0:b0:44c:dfb5:4b82 with SMTP id 137-20020a62148f000000b0044cdfb54b82mr18049343pfu.55.1633951667082; Mon, 11 Oct 2021 04:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633951667; cv=none; d=google.com; s=arc-20160816; b=uT5Xw55pvaot/FHzieQejwasobmbm7WlIrTrXe0F0CUTE0vZDbqxhXe1ioMrbs1028 a41auDHns6Wyj82Eo+WLng41b2BULIFDpGZyYaw61xsQC695RR3hrKR0UXkZf9Pq2sth 26SZwFEEiLfyU8v40XfvGt2kiKJAI/otHzF6dT2X9zJJm+45K/kdGz2LQGaHYsow8azD 9IRw1Nko3s1DAgk+ZJ1SJ/bohYT1LRGvof19bWhWkfOR3g4qlclIHQLCmc+Xb4FYmgOm /N5Fde+64L4A2y2vM+hyu4NvAUKXZvVOAcLeXpGd906xxmDY98WzQpZayLw2it0cTY+T 0mDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=JgZFL1gbaLa9EwP6bgcRPQEmNK/hbPIe9fBJ0qz2WNE=; b=NnoFP76yg4qUbvS7tLLoIcmPbtsh9Znisfqtlyd0rOSYTurCl/3rs3U1AdP7JQ7987 0miGqg/Pg2pWjQb+2bOUFrglvLFKPKD2EEqLnCJi4p4AenfxEFb+D3G4Hkoq3ePb6m79 YVaBhinL6FgsIlPoiv6QVcy9oWN0CMN9/bwDRpVOU8Y+oVZF8JJBFu0QR/ysPDOHL+2o M7gr3Ltp2ksxnXh9Ftc9yW/pQng7bBF7hW74IZk6kxJKG0+KMBjM1RNqerzHv1zFWasa ZCf7lRv0MELWNFE2FUC6vkBrB1O6ncWHl9PqwGTnn3D7+2AQNnfdJcJf45xYie88QRDN tJ0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Wn1NP/SC"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v202si10134046pgb.488.2021.10.11.04.27.33; Mon, 11 Oct 2021 04:27:47 -0700 (PDT) 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=@linaro.org header.s=google header.b="Wn1NP/SC"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234109AbhJKGT4 (ORCPT + 99 others); Mon, 11 Oct 2021 02:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234116AbhJKGTz (ORCPT ); Mon, 11 Oct 2021 02:19:55 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5843CC06161C for ; Sun, 10 Oct 2021 23:17:55 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id w14so11606884edv.11 for ; Sun, 10 Oct 2021 23:17:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=JgZFL1gbaLa9EwP6bgcRPQEmNK/hbPIe9fBJ0qz2WNE=; b=Wn1NP/SCh1lD8vj0hwMTgkYtoME/EeJPlAmzpOBMrfg7wY3yiSCN0Ffgy7EGhmHRPC zRP7m0Y/4+Rm7SZybudj81DF38xcOAVc8Nyg3mIMTy+wAEqIGuqXG8NeBGPaZ6OLFpoU ln5kLnnhFqGos7H5t7+iF1Ul0zQEwfYjTOeMKPAj6lU+wf/Qp3F9r1F7eNjOZIXxaGEg KoZ6nAO/xYkS7A8NBVh3x52f7ZK4SkdCPQSLHl1wumnP0378CA8BmoNLmuA6iHfK3zou t4Z9Bry2XRLH0Uqzprc/zZppCg6s1eUAXvjWeRavbxlmoe9wLpfxiATGoBwEq2F3hobE FheA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=JgZFL1gbaLa9EwP6bgcRPQEmNK/hbPIe9fBJ0qz2WNE=; b=7NcxUrljpe10WdP0StFH0gnmPOq1Jx1f3AHtH+s3iLBOH/h/dO/Y5KavPfdYQ6uWX3 XGUELqk/IyHgvrFL7DI/6eza2qPCeKlv4TICnCU4DOpl1aUH2PgGuv5WSqgir+hSS0zD akfkU5vHFMdUYjrnlZb2wIU2tbwTx3EHVqh87BJ5Xn/+z5rzRLS22pXSLuFPfSh3FoAe 8g+rVU7kvRzNkxtJ2+yN8LitV25RzodRz46Pc3wf2+qGWEDTf27P6wPCkLJagcqcQdQm k2IhPKYHKIXUZAIqLcSJDjWSL2OG1zOdMXCejqQPamlkS0BorbntSf6BzPsiXa58D6Rs //2w== X-Gm-Message-State: AOAM531zuEazjF/PZlAjQTVd1HwWeD6htpZig54Dpn8QmmeCT/HNX/bt dslNEDo4brN1gEfctBs1BHBYkk5nhvSNorTbtsqNBQ== X-Received: by 2002:a17:906:c302:: with SMTP id s2mr22596326ejz.499.1633933073798; Sun, 10 Oct 2021 23:17:53 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Mon, 11 Oct 2021 11:47:42 +0530 Message-ID: Subject: clang-13: s390/kernel/head64.S:24:17: error: invalid operand for instruction To: llvm@lists.linux.dev, linux-s390@vger.kernel.org, clang-built-linux , open list Cc: Nathan Chancellor , Nick Desaulniers , Alexander Egorenkov , Christian Borntraeger , Vasily Gorbik , Heiko Carstens Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Please ignore this email if it is already reported ] Following s390 builds failed due to warnings / errors. metadata: git_describe: v5.15-rc5 git_repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git_short_log: 64570fbc14f8 (\"Linux 5.15-rc5\") target_arch: s390 toolchain: clang-13 Fail (2861 errors) s390 (tinyconfig) with clang-nightly @ https://builds.tuxbuild.com/1zL35IUSGhDGeVuyIrAp7eyzEUi/ Fail (2861 errors) s390 (tinyconfig) with clang-13 @ https://builds.tuxbuild.com/1zL35Hn7wjErKsLDM6zAgh27BYJ/ Fail (4112 errors) s390 (allnoconfig) with clang-13 @ https://builds.tuxbuild.com/1zL35HR60hSFvBmAcYJvKHm8Lko/ Fail (4112 errors) s390 (allnoconfig) with clang-nightly @ https://builds.tuxbuild.com/1zL35DTlrX9qRGCtGqgtmmMDjnQ/ Fail (23048 errors) s390 (defconfig) with clang-13 @ https://builds.tuxbuild.com/1zL35DE2KWQUPxbbXeTbwIJaWXS/ Fail (23045 errors) s390 (defconfig) with clang-nightly @ https://builds.tuxbuild.com/1zL35EgeQfWQDXDupp4itkUO5At/ Build errors log: ---------------- arch/s390/kernel/head64.S:24:17: error: invalid operand for instruction lctlg %c0,%c15,.Lctl-.LPG1(%r13) # load control registers ^ arch/s390/kernel/head64.S:40:8: error: invalid operand for instruction lpswe .Ldw-.(%r13) # load disabled wait psw ^ make[3]: *** [scripts/Makefile.build:379: arch/s390/kernel/head64.o] Error 1 In file included from kernel/sched/cputime.c:5: In file included from kernel/sched/sched.h:5: In file included from include/linux/sched.h:14: In file included from include/linux/pid.h:6: In file included from include/linux/wait.h:9: In file included from include/linux/spinlock.h:94: arch/s390/include/asm/spinlock.h:89:3: error: expected absolute expression ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */ ^ arch/s390/include/asm/alternative.h:111:2: note: expanded from macro 'ALTERNATIVE' ALTINSTR_REPLACEMENT(altinstr, 1) \ ^ arch/s390/include/asm/alternative.h:106:2: note: expanded from macro 'ALTINSTR_REPLACEMENT' INSTR_LEN_SANITY_CHECK(altinstr_len(num)) ^ arch/s390/include/asm/alternative.h:62:3: note: expanded from macro 'INSTR_LEN_SANITY_CHECK' ".if " len " > 254\n" \ ^ :5:5: note: instantiated into assembly here .if 6651b-6641b > 254 ^ In file included from kernel/sched/cputime.c:5: In file included from kernel/sched/sched.h:5: In file included from include/linux/sched.h:14: In file included from include/linux/pid.h:6: In file included from include/linux/wait.h:9: In file included from include/linux/spinlock.h:94: arch/s390/include/asm/spinlock.h:89:3: error: cpu alternatives does not support instructions blocks > 254 bytes ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */ ^ arch/s390/include/asm/alternative.h:111:2: note: expanded from macro 'ALTERNATIVE' ALTINSTR_REPLACEMENT(altinstr, 1) \ ^ arch/s390/include/asm/alternative.h:106:2: note: expanded from macro 'ALTINSTR_REPLACEMENT' INSTR_LEN_SANITY_CHECK(altinstr_len(num)) ^ arch/s390/include/asm/alternative.h:63:3: note: expanded from macro 'INSTR_LEN_SANITY_CHECK' "\t.error \"cpu alternatives does not support instructions " \ ^ :6:2: note: instantiated into assembly here .error "cpu alternatives does not support instructions blocks > 254 bytes" ^ In file included from kernel/sched/cputime.c:5: In file included from kernel/sched/sched.h:5: In file included from include/linux/sched.h:14: In file included from include/linux/pid.h:6: In file included from include/linux/wait.h:9: In file included from include/linux/spinlock.h:94: arch/s390/include/asm/spinlock.h:89:3: error: expected absolute expression ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */ ^ arch/s390/include/asm/alternative.h:111:2: note: expanded from macro 'ALTERNATIVE' ALTINSTR_REPLACEMENT(altinstr, 1) \ ^ arch/s390/include/asm/alternative.h:106:2: note: expanded from macro 'ALTINSTR_REPLACEMENT' INSTR_LEN_SANITY_CHECK(altinstr_len(num)) ^ arch/s390/include/asm/alternative.h:66:3: note: expanded from macro 'INSTR_LEN_SANITY_CHECK' ".if (" len ") %% 2\n" \ ^ :8:5: note: instantiated into assembly here .if (6651b-6641b) % 2 ^ In file included from kernel/sched/cputime.c:5: In file included from kernel/sched/sched.h:5: In file included from include/linux/sched.h:14: In file included from include/linux/pid.h:6: In file included from include/linux/wait.h:9: In file included from include/linux/spinlock.h:94: arch/s390/include/asm/spinlock.h:89:3: error: cpu alternatives instructions length is odd ALTERNATIVE("", ".long 0xb2fa0070", 49) /* NIAI 7 */ ^ Reported-by: Linux Kernel Functional Testing # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake # # See https://docs.tuxmake.org/ for complete documentation. tuxmake --runtime podman --target-arch s390 --toolchain clang-13 --kconfig defconfig -- Linaro LKFT https://lkft.linaro.org