Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5406168rwr; Mon, 24 Apr 2023 03:52:04 -0700 (PDT) X-Google-Smtp-Source: AKy350b/ncgJ6rdCbH6xpM7MpvmnRpQI5YFkryi/1uGUwCNQbex2JWPwSBq+43PGmPV9zUa1JyIl X-Received: by 2002:a05:6a00:240e:b0:63b:2102:a1c9 with SMTP id z14-20020a056a00240e00b0063b2102a1c9mr14116779pfh.22.1682333523693; Mon, 24 Apr 2023 03:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682333523; cv=none; d=google.com; s=arc-20160816; b=Vd73tHUmA8F/+QKV2aXi1JWOPj8oXPer0Byh2EII4NvA0uTGbKn9g5A/drAc0E6oiF 0/6r/mjBIrF+6TT4M29ISPdVDl9YEmrydBFYbt2uhdC0Z7kLO++JUbkbCnxUhsQ79aRf tD/CyZisUC2XFlSIyy5aBcCQN2QleYPNRd/WbFV2x5vEOt8/hovxcQ1WG6LnBzrbee2D 4ptf4j1o4TSZ0asVso4Rc5bqnNK9i9YKvvdcYk+ZzDTShGoUMM0grUMzpm1DxNNC2ldk X9Osyk5S1TLXMyvwh/VvfQ+222TZZVuFZDh/i6FuNj7Umc4jbEz53cA0uUGMZauQDIE4 wCvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DH8eQInnr7U31EI29uizxjqLJRiL/+5W4FDZDgI7Tyc=; b=OsNfEvlfTC8WHznTqnF3PyaCW1ANeMOWMSVt7Ixd/A8a/UAtcSXHJhPyqUZyuqRndN 8Arqvwr2G5tJjftvYEJzb3tPuqAn8YCdSxkCqDRhacF2fezNPEps797tZB8K3fA7BbWc YRc6te32R8a1Tq2pPoab7dogzTBa/1KZlC34fjXLowYToOIxEaoIbEi+fTKYR5r1JjFH l4yUEeaHr5wKi8/YdOdiLzkWe8TkTGaO8Huj8g1pItQXNu7HBh8do4O/1IMuzkiNmC35 ZTiSo89xGm1VBu4A6CfZ4kqMJ0nhhazFo9X2ON+nom1BpZ7BaPfsAHY8VzUnmLHdGhBQ WaQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@debian.org header.s=smtpauto.master header.b=Ik8eS6DI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a656111000000b0050726756edesi11134215pgu.76.2023.04.24.03.51.52; Mon, 24 Apr 2023 03:52:03 -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=@debian.org header.s=smtpauto.master header.b=Ik8eS6DI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230504AbjDXKhZ (ORCPT + 99 others); Mon, 24 Apr 2023 06:37:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbjDXKhL (ORCPT ); Mon, 24 Apr 2023 06:37:11 -0400 Received: from master.debian.org (master.debian.org [IPv6:2001:41b8:202:deb:216:36ff:fe40:4001]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE24540F8 for ; Mon, 24 Apr 2023 03:37:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.master; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: In-Reply-To:References; bh=DH8eQInnr7U31EI29uizxjqLJRiL/+5W4FDZDgI7Tyc=; b=Ik 8eS6DIpBxoR6LwRIIUIgv5EvwREoi9Df3JWTF4+ZVlo6WhFvWdc5+uC6pY77RjyOTIu8WoNYWsXQs LuE6vQfZBfmHwrNqkwYq//6a8pQheQ8kM5/Z9ptXq9fxnWxKd8qN32fGm4/1r3zxLOqegR2B2kZjp 8YPJXOircRgxFnGaBpfrNVZRNPiNFA1/HNIcXx7L2fxwjLuUowDJ+bZmtl0eAlc62O968nIx+aP4a Ud1+RGFvGVkan5cwpmVkmq0qLn38gP7cCJDx/0RYpNWhq53RtaMjfpspIJHZ+/MGmuME8qtElrDUo h9tSPYTA/GiiAhgYAwfEKN9//jUWV7dA==; Received: from ukleinek by master.debian.org with local (Exim 4.94.2) (envelope-from ) id 1pqtJV-008Nwb-Eu; Mon, 24 Apr 2023 10:20:53 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Jiri Olsa , Arnaldo Carvalho de Melo Cc: Diederik de Haas , linux-kernel@vger.kernel.org Subject: [PATCH] tools lib api: Use -D_FORTIFY_SOURCE=2 for non-debug builds Date: Mon, 24 Apr 2023 12:20:49 +0200 Message-Id: <20230424102049.58338-1-ukleinek@debian.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=844; i=ukleinek@debian.org; h=from:subject; bh=METKeq58NIa3te2pF/G6Rup2tETn8NZhlwCBHAmIgQ4=; b=owGbwMvMwMXY3/A7olbonx/jabUkhhS3CIYHaU4qffm378jftjL5oManHP6UMXKhVsmxqanWb ttmOVd2MhqzMDByMciKKbLYN67JtKqSi+xc++8yzCBWJpApDFycAjCRx+vZ/8ckRKeuONktZ9wm zelx6/rX4y0uC3ztqpUzTqpGPjgc6P/jZq12a/hk3fOffytujq+WrloYlGFwJMxkyorJenYsXEm GCp2L4wyrMnr6rtS/612wNW+zeJyZ3ncNlbt8z+vjNu+PPvzjtWTzzfR3udOfvi+6LfUmY96e7T wMzsJXvSQfX43eoVS3zNvL4nbLd0/Rx1/TUlfejzVXsCt0rdvoHjXp9t9JofamH5ViCxrDsnYlf 5YI8/lnN6N51wUmthUxYW/PXjQ/OlGleFFJ355YnfnVv9QWP723fUFa4oSvi3//TF1s7y2zTnru BzOJBzF8tX4Z7rvWf+5saPhre3TyM3vDjSL84uxzrXp8AQ== X-Developer-Key: i=ukleinek@debian.org; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Commit 58b79186c343 ("tools lib api: Fix make DEBUG=1 build") intended to drop -D_FORTIFY_SOURCE=2 for debug builds. It did that, but also degraded -D_FORTIFY_SOURCE=2 to -D_FORTIFY_SOURCE (which implicitly defines the symbol to 1), probably by mistake. Add the =2 back. Fixes: 58b79186c343 ("tools lib api: Fix make DEBUG=1 build") Signed-off-by: Uwe Kleine-König --- tools/lib/api/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile index 044860ac1ed1..e165357e1512 100644 --- a/tools/lib/api/Makefile +++ b/tools/lib/api/Makefile @@ -39,7 +39,7 @@ endif endif ifeq ($(DEBUG),0) - CFLAGS += -D_FORTIFY_SOURCE + CFLAGS += -D_FORTIFY_SOURCE=2 endif # Treat warnings as errors unless directed not to -- 2.39.2