Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp516551pxh; Tue, 9 Nov 2021 14:32:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAWYiYudr7yySHixc2sp/QgHiEBNcH7rULxsXRAQK0Zpr8lrtyzy4FUrHeMsTnTZ7e+hz+ X-Received: by 2002:a17:906:6087:: with SMTP id t7mr14363629ejj.206.1636497158005; Tue, 09 Nov 2021 14:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636497157; cv=none; d=google.com; s=arc-20160816; b=qfxDbUCMSXGs44Q5ZdFi/UVXe2KZXR3paHUCD6UBx9vdP6f0OTEJuV+oLK+EkwWk4o HX4aNYyYqrxdKaTMBJo04t8YSZNdae1Wu6irMi9Hk69mKwvOR5Iz2weYg4jDWnzvN8L9 JEPuchc92OVW2+S1je+/G6LucyOtMww3/YlPE/yErh7uR7yVbODb47zblRzoeU6HcNZc V54m+TtW7JsgwcKSGpjDKRECEa93UFZU+u8t6JgJKPxS0MKbq5LJOaosfXgG7GPNwvnk 8xcOZKfPz2rQ6BQUxYaXpAMcQn66qhWOdAgauaIbgNM2m+W2EsxsT8R5XBqMv4+IU7Qg /7uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YUc/9bXPT/suJVwhhf7M4okEURza4uve9yKRS3XWT08=; b=z5anwvEB22xBvP4fikx1QSWi1DvQIn9aSbDufFN+xt2Dd+avx3x/5wPM7m//1ZHbwV TWDpyl4O/GCg1zKZxZPnv2HbViLk+Svsd/wYp/3/5KTTBvPzxDlu/Mz0hse/YgVU3eHS xU1UdHcXeQFmaqqdnD4TJUmsGjib8gSdvh9RuqztSc6FOvLSBATVwz3hRVLwWqmIPgBq SGmJnSixpOGm19zS4odZdgDi3id7s9Llggb/cYNR/i0saL06qAI0xXAfBeXDRzXDwqFz nYR7uG2KXk4lvTlUYN5VeKzNIJXpT4VfxxQgtZfQqkrhP4mt6tqPRXufvXO7an/lyZVl Sw2g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si31327091ejy.181.2021.11.09.14.32.08; Tue, 09 Nov 2021 14:32:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235821AbhKIPEU (ORCPT + 99 others); Tue, 9 Nov 2021 10:04:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:33658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234372AbhKIPEP (ORCPT ); Tue, 9 Nov 2021 10:04:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9008C61051; Tue, 9 Nov 2021 15:01:26 +0000 (UTC) Date: Tue, 9 Nov 2021 16:01:22 +0100 From: Christian Brauner To: Anders Roxell Cc: shuah@kernel.org, christian@brauner.io, nathan@kernel.org, ndesaulniers@google.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Arnd Bergmann Subject: Re: [PATCH 1/2] selftests: cgroup: build error multiple outpt files Message-ID: <20211109150122.fbqcrnbtgtas5jid@wittgenstein> References: <20211105162530.3307666-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211105162530.3307666-1-anders.roxell@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 05, 2021 at 05:25:29PM +0100, Anders Roxell wrote: > When building selftests/cgroup: with clang the following error are seen: > > clang -Wall -pthread test_memcontrol.c cgroup_util.c ../clone3/clone3_selftests.h -o /home/anders/.cache/tuxmake/builds/current/kselftest/cgroup/test_memcontrol > clang: error: cannot specify -o when generating multiple output files > make[3]: *** [../lib.mk:146: /home/anders/.cache/tuxmake/builds/current/kselftest/cgroup/test_memcontrol] Error 1 > > Rework to add the header files to LOCAL_HDRS before including ../lib.mk, > since the dependency is evaluated in '$(OUTPUT)/%:%.c $(LOCAL_HDRS)' in > file lib.mk. > > Suggested-by: Arnd Bergmann > Signed-off-by: Anders Roxell > --- Thanks! Acked-by: Christian Brauner