From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB3EEC65BA7 for ; Fri, 5 Oct 2018 16:34:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 786022087D for ; Fri, 5 Oct 2018 16:34:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 786022087D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729087AbeJEXdg (ORCPT ); Fri, 5 Oct 2018 19:33:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:32950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727572AbeJEXdg (ORCPT ); Fri, 5 Oct 2018 19:33:36 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 51BD5206B2; Fri, 5 Oct 2018 16:34:07 +0000 (UTC) Date: Fri, 5 Oct 2018 12:34:05 -0400 From: Steven Rostedt To: Colin McCabe Cc: Arnaldo Carvalho de Melo , LKML , Jiri Olsa , Ingo Molnar , Namhyung Kim , Tzvetomir Stoyanov , Linux Trace Devel Subject: Re: [PATCH v3] tools/lib/traceevent: Replace str_error_r() with an open coded implementation Message-ID: <20181005123405.60b3c9fe@gandalf.local.home> In-Reply-To: <1538756836.4131485.1532106896.50BF1EF3@webmail.messagingengine.com> References: <20181002175539.2ac894c7@gandalf.local.home> <20181005113056.55b23c31@gandalf.local.home> <1538756836.4131485.1532106896.50BF1EF3@webmail.messagingengine.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 05 Oct 2018 09:27:16 -0700 Colin McCabe wrote: > Hmm. Did you consider setting the ifdefs you can set to always get the POSIX version of strerror_r? > Actually, what we find the most convenient is to separate the function out of the file completely, and undef _GNU_SOURCE, which forces glibc to use the XSI-compliant one. Here's the patch I used: https://lore.kernel.org/lkml/20181005121816.484e654f@gandalf.local.home/T/#u -- Steve