From patchwork Wed May 22 00:57:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Edward Liaw X-Patchwork-Id: 13670116 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EDEC15D5AD for ; Wed, 22 May 2024 01:02:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339765; cv=none; b=fUFyNiYoljN92NvngdkjGz3DMhnpbDZ1zLMo8fAdfqmUXglkZlQ2QKs2WJ4Sllw/jR0GnUZsuUUohkk27lugSIkb03CCMlPlmwlfUF36mZe98i6LZl6VWZ1FPQ3QMiB8pFSN1mlH2/4/25eXagGCEEpOF7ZUyqAZoNoF5taKVzs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716339765; c=relaxed/simple; bh=6W30WIKhE96pwmtcuV2NfxhpFW0veZZZU83PwcF+fM4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=XA0ZcFYmR8OERQcJ4WqowX5sVCJO2dGlVoVFmGts18B9MogHX38RJZ1AoirLZccm4Yttk84x5rcCVwncmJLjvgbwJi0lb8OuKEN0xjUeJrgJ7kYcJF9xcfR+fcHBKvOKbD3FQ0f9IpkHX+/11nuA933T6jnGvockjoIwebGC8Xw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=PIMg1EtA; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edliaw.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="PIMg1EtA" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f44ff14c17so7314356b3a.3 for ; Tue, 21 May 2024 18:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716339763; x=1716944563; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=FDddXI/rz5Uh/0hxgnIVyZ6+81rNdMnfIsgCLtRcH+A=; b=PIMg1EtATWDnwfr31/oDxOZL4KodTbq3ps6C5BR2hXeKBEGJSNlZyIe2/ibUBHWliB N0fu43mmrb1weOkXFLzXFH/ovQYis5dnzc505OxAOhfmlKmdov3tbRjnX7dCr5zatrNH dy3g8gYqiW/SlazGKNy2TtKZ68s/pK0ZBh3ucTAeYedjvUehxCpyu84WtjCcgfTcno+J zm/IHKFiXZqedKEd046owtFolCwdCNz3+u2lW4pkp+Bxm+Co3s/R79oIV9RPluVwLzFe OyOqs9NeYYV0XXZc7OZuFy/JPk8WKUVkIHy4dPiHrH4aun02GYwJuxCKyLgx37elfU7B hrfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716339763; x=1716944563; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FDddXI/rz5Uh/0hxgnIVyZ6+81rNdMnfIsgCLtRcH+A=; b=ovKZg5nkoNgcMVmpqPxXwNFyOmcwowAdFU4oR7ccHeMmfdl5d8sfFWjDo1GdQgtFeJ mM2CeTrZOcmLz3bGm4yv8VcNx+n9MvhsZN+mk3B1yx/oJufKgjOxT1vDc/wEd8MQZXvl s48T6Yf+KlW8CzITYuYviNvLBcc9skULlIwIpcHzcqJyS65Op5EDBHVc4OyZHU5uuXgu T2A7saJpgv20O19tDKCpH4WfeYKsu5FPJJhijYuDhLiEAP0rbixUvGAKXs3Vo2zN/Xdi LDlFGBhtDKt1oy3eqUb/4FLtgRtDdwt/rz0BOxP2j/N3HrdatWXvE9M09MBQB73eLzvg oLXg== X-Forwarded-Encrypted: i=1; AJvYcCURwDs3QH//WvJ2XTG7bKf3FCB4ufNbzZx+3OTM4nZZW0my9A8DxcLsTFa8L8qfjGQlTs2l3Z/BoWi4DHmrGuhlJJlh X-Gm-Message-State: AOJu0Yx37RV+SFuNZ+DVrllnlGLXlifqNpF/fNAGODbhpHkQ+Kz555Nj xqKEt5KNHKgRpIED/9VTQFQAqWbLs/b6ZVicT/YcfyMoSX7/mE/fX17WIHPqa56vEYNq/jNFJQl hFw== X-Google-Smtp-Source: AGHT+IH8wpGwaawCict9Ep4Ub644GN8fYtHlm1t7v7pZuightlDMU0GhBoDAJQNtreKGztGUsjMmh0JORdc= X-Received: from edliaw.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:305d]) (user=edliaw job=sendgmr) by 2002:a05:6a00:3a18:b0:6f4:133:f5a5 with SMTP id d2e1a72fcca58-6f6d645c526mr21783b3a.4.1716339763429; Tue, 21 May 2024 18:02:43 -0700 (PDT) Date: Wed, 22 May 2024 00:57:53 +0000 In-Reply-To: <20240522005913.3540131-1-edliaw@google.com> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240522005913.3540131-1-edliaw@google.com> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Message-ID: <20240522005913.3540131-68-edliaw@google.com> Subject: [PATCH v5 67/68] selftests/x86: Append to CFLAGS in Makefile From: Edward Liaw To: shuah@kernel.org, " =?utf-8?q?Micka=C3=ABl_Sala=C3=BCn?= " , " =?utf-8?q?G?= =?utf-8?q?=C3=BCnther_Noack?= " , Christian Brauner , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , John Fastabend Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Edward Liaw , linux-security-module@vger.kernel.org, netdev@vger.kernel.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org Instead of overwriting the CFLAGS that is imported from lib.mk, append to it instead. Signed-off-by: Edward Liaw --- tools/testing/selftests/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/x86/Makefile b/tools/testing/selftests/x86/Makefile index 0b872c0a42d2..3395a5d114c2 100644 --- a/tools/testing/selftests/x86/Makefile +++ b/tools/testing/selftests/x86/Makefile @@ -35,7 +35,7 @@ BINARIES_64 := $(TARGETS_C_64BIT_ALL:%=%_64) BINARIES_32 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_32)) BINARIES_64 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_64)) -CFLAGS := -O2 -g -std=gnu99 -pthread -Wall $(KHDR_INCLUDES) +CFLAGS += -O2 -g -std=gnu99 -pthread -Wall $(KHDR_INCLUDES) # call32_from_64 in thunks.S uses absolute addresses. ifeq ($(CAN_BUILD_WITH_NOPIE),1)