Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp947911rwd; Tue, 13 Jun 2023 02:36:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6S+O5HNkBXC7Jw4GVR0nl5gFOmE3pAOJrsuHffkYTuHHhJWRHfEbN4JMxS/LM7FZv9JPVt X-Received: by 2002:a05:6402:412:b0:514:9497:1bf6 with SMTP id q18-20020a056402041200b0051494971bf6mr6829811edv.2.1686649004833; Tue, 13 Jun 2023 02:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686649004; cv=none; d=google.com; s=arc-20160816; b=sLCj0WDa7EuoftTj5Pr7YzTFBNkQRbsQyB5D63jWOaIchCLhMIPmeh07rrnNLMhrx2 rmzfWXCQIBRKL6EWVBjpwJoFv7EOs5d25oA5Vg1edKSBqghWfa18/wLGV5PSgOvHbZxb InZGIKHxnYh/x/Ctri16IIWpP33Ezx7BJd7JOxq3Lm9Unj4vCbCRhyBJfsPt4cIqoOXi /pRrHO99fmkkelx7mitHbpsiqpAm06I3rcIMrigzWasIYJNZ7uDlv1BiqlmN3qIGJwj3 zBma1Atbh/MPu8b/qUzuWqOkVXqym27TlzDEuMacQawcCw9GiiG5FDNchhe9SdlJLWuo RTfg== 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=DwCdfz6qIzvNJOkrJ4ckCc4rA0w83T1zH7jefpl3y6I=; b=qg1h5sBB48mvv+NQaYRiTush9d5PbqkH/c2dyCOM0hYCxVwiiOwfXoiEKohztIBb0d +xGXrPvJTAI85BQ98EreZa/Fs42fqCA4YYqYLKooZFucpbGs8aIFmzAWh1ntk3LA5SNH Oi42vCX6mi85apFhCSeT6fEwm0pEFD0/BDLFmIv8WaTKlMxVbOrxBOO+D02/VfQrVlAQ NB9hss/OxCiaQ7Am0zCkv1OT0VjTdSiDXnwDb+sTDgS1EDGPtxIYCJG+IIPSpwNUrlif auJqzkJI3eMtx2DLDkm0ykvUeyTBSXKFJlm0l0SapfQPYchcIB/2Bbt4LPM6RpzuIfwD TBdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cv8sSeFq; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020aa7d9d7000000b0050dd98aac00si7232227eds.561.2023.06.13.02.36.19; Tue, 13 Jun 2023 02:36:44 -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=@redhat.com header.s=mimecast20190719 header.b=cv8sSeFq; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241566AbjFMIpP (ORCPT + 99 others); Tue, 13 Jun 2023 04:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239362AbjFMIpL (ORCPT ); Tue, 13 Jun 2023 04:45:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0388187 for ; Tue, 13 Jun 2023 01:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686645858; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DwCdfz6qIzvNJOkrJ4ckCc4rA0w83T1zH7jefpl3y6I=; b=cv8sSeFq/g7hviih/l2eA9LB/bbEnN9CaTnqW+pwU7ijdUILmI19TEWcPFfdHa8kYUVtP1 byBlMC3E1OlGZjrilchzSZt0At2mEwyCCuB50DBIRMMre73Gz0mzcauMKs25WO14byx+n8 mZsj7mDh5nEuv0I6+Pcrm3NkykCW0zI= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-177-caQoBYTgO_igzIJQdfMPiw-1; Tue, 13 Jun 2023 04:44:14 -0400 X-MC-Unique: caQoBYTgO_igzIJQdfMPiw-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4edc7406cb5so3507743e87.3 for ; Tue, 13 Jun 2023 01:44:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686645852; x=1689237852; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DwCdfz6qIzvNJOkrJ4ckCc4rA0w83T1zH7jefpl3y6I=; b=l7MV5giYSqfET3SY/cHrSJEe58KUOMX4GjkGmtE+Nd8LMDhIdt4odmCZSsY/VurJj+ cQkxIw4WRSauqDtqVClcLm87MaixaJJA+Q/xpTXLYIAmisG1aBIzfy2BOzPtL9rTZIrH oMUhZb6rzV7wbF6lo0UC3ggk8evnuJIUOhZeU7uLpJfGKTaN8DLcF59aSeArIEiVyeY4 4fC4WanAS+G9beqP3bX2GhDpsv031NKVKuNop+ExlGvxlQI6GrTFpl5sd7KfeSIiwH2f SeRY3fLmo9uwswEUpxm9fXydtcBleluSPE9qIYE0iTLx88a8BNY/6grq1Ui0/kI6xzpT vMog== X-Gm-Message-State: AC+VfDyJs3MbRTzsD1iq3EwW1XYiwyLu5k1g+h8e/CONl7r10Z4yro4d DJg0o1i7URkwpIxTOsWWrhrF2Mw2OPe/YU73QgBEJkmS3Yu+FCt1Or9z+WtUg1dgLnOT6oQLArY InWIqLfUXRBXyTgLjKnun9oHB X-Received: by 2002:a19:2d4e:0:b0:4f6:3ef4:5c78 with SMTP id t14-20020a192d4e000000b004f63ef45c78mr4880076lft.50.1686645852116; Tue, 13 Jun 2023 01:44:12 -0700 (PDT) X-Received: by 2002:a19:2d4e:0:b0:4f6:3ef4:5c78 with SMTP id t14-20020a192d4e000000b004f63ef45c78mr4880059lft.50.1686645851644; Tue, 13 Jun 2023 01:44:11 -0700 (PDT) Received: from ?IPV6:2003:cb:c710:ff00:1a06:80f:733a:e8c6? (p200300cbc710ff001a06080f733ae8c6.dip0.t-ipconnect.de. [2003:cb:c710:ff00:1a06:80f:733a:e8c6]) by smtp.gmail.com with ESMTPSA id 14-20020a05600c024e00b003f8044b3448sm13350961wmj.9.2023.06.13.01.44.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jun 2023 01:44:11 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2023 10:44:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] selftests: lib.mk: fix out-of-tree builds Content-Language: en-US To: Muhammad Usama Anjum , Anders Roxell , shuah@kernel.org, Andrew Morton , "open list : MEMORY MANAGEMENT" , John Hubbard Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230613074931.666966-1-anders.roxell@linaro.org> From: David Hildenbrand Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 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_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 13.06.23 10:16, Muhammad Usama Anjum wrote: > This patch needs to go through mm tree as the commit which it fixes is in mm. > > On 6/13/23 12:49 PM, Anders Roxell wrote: >> Since commit ("selftests: error out if kernel header files are not yet >> built") got merged, the kselftest build correctly because the >> KBUILD_OUTPUT isn't set when building out-of-tree and specifying 'O=' >> This is the error message that pops up. >> >> make --silent --keep-going --jobs=32 O=/home/anders/.cache/tuxmake/builds/1482/build INSTALL_PATH=/home/anders/.cache/tuxmake/builds/1482/build/kselftest_install ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- V=1 CROSS_COMPILE_COMPAT=arm-linux-gnueabihf- kselftest-install >> make[3]: Entering directory '/home/anders/src/kernel/next/tools/testing/selftests/alsa' >> >> -e error: missing kernel header files. >> Please run this and try again: >> >> cd /home/anders/src/kernel/next/tools/testing/selftests/../../.. >> make headers >> >> make[3]: Leaving directory '/home/anders/src/kernel/next/tools/testing/selftests/alsa' >> make[3]: *** [../lib.mk:77: kernel_header_files] Error 1 >> >> Fixing the issue by assigning KBUILD_OUTPUT the same way how its done in >> kselftest's Makefile. By adding 'KBUILD_OUTPUT := $(O)' 'if $(origin O)' >> is set to 'command line'. This will set the the BUILD dir to >> KBUILD_OUTPUT/kselftest when doing out-of-tree builds which makes them >> in its own separete output directory. >> >> Signed-off-by: Anders Roxell > Please add fixes tag. ("selftests: error out if kernel header files are not > yet built") > > Tested-by: Muhammad Usama Anjum This should get squashed into the original patch unless it's already in mm-stable (which it isn't) and we have a stable commit id. -- Cheers, David / dhildenb