Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2305139rwb; Thu, 8 Dec 2022 23:51:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6iqqm8chtsC7KPc2G2d7oaEnL+CrsLhzAJvyyMJ9GcBjKwSC8jw+iAltl5WkZ0X4SjmC0a X-Received: by 2002:a05:6a21:2d86:b0:a2:ed21:d81c with SMTP id ty6-20020a056a212d8600b000a2ed21d81cmr6524140pzb.51.1670572302635; Thu, 08 Dec 2022 23:51:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670572302; cv=none; d=google.com; s=arc-20160816; b=cpyfmHM1K+PUZgoWrsL3HGEB06xEg6OdfwvNmfG+m7K+La7qjeHZ6ESCGd+aiy6nym eZCb4OnpufIbIx1TOwuc1k4DjC7XJVxBWVwYscCGkGDUPX/gLFkSv5e8vzT5GjOaLcVK E1PXMDqs5fqOydOZCofWGRjgnIk0B0jPmqSW609tkO1rDP3IefDTSDV1jtGKCktLX//m T2w2KZezRZSZayNKzAEU/ghRv8t0qo3U7wYOCwOwC9Ym6LiegRLnxsaQTlq3kxXcNxZW si4AtXcHCR5myl3OORhYrkNUjuGSYLqEYA0zE/taYgu54n0T1G2qYDP46Cks9L8AhMDr KJmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=Rw1LgZrAHKmOPFMlSc8m5mrXgg+i195LB/soUVfMO7k=; b=ushed+4KvsyMNMbk8HDzA3px0zvoZcbIW+Cjpv1wUArDN0ECd0QYbW8ojigGSFAObn lgITScc/6Qy/cvkJ+CBuLxF2+I0Iagpi5KgfX95ESaAHkwNnghG2FIAGbRvwPbSanDgx LjzBnDsblkH6r0ycT/9RLOiMkwU6C18aY9IMiSQBPsnERgsgSrryc2tvrsDcMFLW67yW tfIauppwvU7BmezQI9xS0y+pdADIfIELYhliDC0NZj0qTfX2mPhvAbrbdv0DXmiARTVE MWOda877ZMfTADsLmcfimNNSCtscNGnP5Wh0IzRs2tS7dt6DtW3kS0wqY0RIg/rTRJrr w1fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=eydc90K9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a656813000000b0047701a21acfsi851252pgt.604.2022.12.08.23.51.33; Thu, 08 Dec 2022 23:51:42 -0800 (PST) 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=@canonical.com header.s=20210705 header.b=eydc90K9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbiLIHFL (ORCPT + 74 others); Fri, 9 Dec 2022 02:05:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbiLIHEt (ORCPT ); Fri, 9 Dec 2022 02:04:49 -0500 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24E5B1C405; Thu, 8 Dec 2022 23:04:48 -0800 (PST) Received: from [192.168.192.83] (unknown [50.47.134.245]) (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 smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id CA85542546; Fri, 9 Dec 2022 07:04:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1670569486; bh=Rw1LgZrAHKmOPFMlSc8m5mrXgg+i195LB/soUVfMO7k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eydc90K9HuIjQkBqAUlYJQp7LGFNmC1aNsirsLOaDf5E7KLee6uWYR5ckh8ZoWeyd t706NyaJjw1c1R7pmNJfZRab/gcaBPTdJ15FAnol2SiJ4/cknZJznk79ZhAHrbYBaZ oSQHraCbffz+QER9UpKaYFDssMwG3kYrxkVJtk8piZ3FtWaOi32aWcizaSDCFbEuBw YagtGmtx4RUf91Ww6QK23XLYjWWRm+LypLvi6CKtmOZO2L+0fbJAUPpTVubWp5IY5c 7Km1L+tu6xQ8Lv/Qg1DaIalqpCNNjnNo5UFTkfZGw5fYiQvW+TLjAP7WeQExZ0BYzh PZXwRlVtx2VuA== Message-ID: <9d9564a4-cf78-4eee-465b-90f0e7b2fdff@canonical.com> Date: Thu, 8 Dec 2022 23:04:42 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: security: policy_unpack.c:325:10: error: use of undeclared identifier 'TRI_TRUE' Content-Language: en-US To: David Gow , Naresh Kamboju Cc: open list , Linux-Next Mailing List , lkft-triage@lists.linaro.org, apparmor@lists.ubuntu.com, Nick Terrell , Rae Moar References: From: John Johansen Organization: Canonical In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 On 12/8/22 22:57, David Gow wrote: > On Thu, 8 Dec 2022 at 15:36, Naresh Kamboju wrote: >> >> Following build regresion found on Linux next-20221208 tag. >> >> Regressions found on riscv: >> - build/clang-nightly-defconfig >> - build/gcc-8-defconfig >> - build/gcc-11-defconfig >> - build/clang-15-defconfig >> >> make --silent --keep-going --jobs=8 >> O=/home/tuxbuild/.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1 >> ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- 'HOSTCC=sccache clang' >> 'CC=sccache clang' defconfig >> make --silent --keep-going --jobs=8 >> O=/home/tuxbuild/.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1 >> ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- 'HOSTCC=sccache clang' >> 'CC=sccache clang' >> security/apparmor/policy_unpack.c:316:18: error: unknown type name 'tri' >> VISIBLE_IF_KUNIT tri aa_unpack_array(struct aa_ext *e, const char >> *name, u16 *size) >> ^ >> security/apparmor/policy_unpack.c:325:10: error: use of undeclared >> identifier 'TRI_TRUE' >> return TRI_TRUE; >> ^ >> security/apparmor/policy_unpack.c:328:9: error: use of undeclared >> identifier 'TRI_NONE' >> return TRI_NONE; >> ^ >> security/apparmor/policy_unpack.c:331:9: error: use of undeclared >> identifier 'TRI_FALSE' >> return TRI_FALSE; >> ^ >> security/apparmor/policy_unpack.c:455:42: error: use of undeclared >> identifier 'TRI_TRUE' >> if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) >> ^ >> security/apparmor/policy_unpack.c:529:42: error: use of undeclared >> identifier 'TRI_TRUE' >> if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) >> ^ >> security/apparmor/policy_unpack.c:559:42: error: use of undeclared >> identifier 'TRI_TRUE' >> if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) >> ^ >> security/apparmor/policy_unpack.c:611:42: error: use of undeclared >> identifier 'TRI_TRUE' >> if (aa_unpack_array(e, NULL, &size) != TRI_TRUE || >> ^ >> security/apparmor/policy_unpack.c:674:42: error: use of undeclared >> identifier 'TRI_TRUE' >> if (aa_unpack_array(e, NULL, &size) != TRI_TRUE) >> ^ >> 9 errors generated. >> make[4]: *** [scripts/Makefile.build:252: >> security/apparmor/policy_unpack.o] Error 1 >> make[4]: Target 'security/apparmor/' not remade because of errors. >> make[3]: *** [scripts/Makefile.build:504: security/apparmor] Error 2 >> >> Build link, >> - https://builds.tuxbuild.com/2IcJeyR3s4kGd2Nca8vVq7Sleao/ >> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20221208/testrun/13508560/suite/build/test/gcc-11-defconfig/details/ >> >> Build results comparison: >> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20221208/testrun/13508560/suite/build/test/gcc-11-defconfig/history/ >> >> >> steps to reproduce: >> # To install tuxmake on your system globally: >> # sudo pip3 install -U tuxmake >> # >> # See https://docs.tuxmake.org/ for complete documentation. >> # Original tuxmake command with fragments listed below. >> # tuxmake --runtime podman --target-arch riscv --toolchain gcc-11 >> --kconfig defconfig >> >> >> tuxmake --runtime podman --target-arch riscv --toolchain gcc-11 >> --kconfig https://builds.tuxbuild.com/2IcJeyR3s4kGd2Nca8vVq7Sleao/config >> >> -- >> Linaro LKFT >> https://lkft.linaro.org > > I suspect this is in need of the fix here: > https://lore.kernel.org/all/bff89220-df3a-a148-2ba4-6aad3874f322@canonical.com/ > yes, that is what is needed to fix this