From patchwork Thu Dec 21 00:41:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 122502 Delivered-To: patch@linaro.org Received: by 10.80.152.193 with SMTP id j59csp270334edb; Wed, 20 Dec 2017 16:41:46 -0800 (PST) X-Google-Smtp-Source: ACJfBosedZNJuGJRiMumPrLiRRwPx21WAKH46IObS/53Dpqg5KHJxP7A35WcQcHEb76zDpfQlP4q X-Received: by 10.84.252.137 with SMTP id y9mr8522552pll.153.1513816906290; Wed, 20 Dec 2017 16:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513816906; cv=none; d=google.com; s=arc-20160816; b=KhSHLPIkxGFMXO/BEL7m5ctg6hma9drp2cvk74d9x98F+grufwWOq9JAaBbF3nN+RC ziDgei6QfkyjHAQAU71tyD+eu1o6dyRiX//CpZEbvMSrG6G0viSAI6WdZcor5WF4ZIqo C+DlUkLt0Kr8K2cca32n5oiQON/0gAd5ceCy8Pv46ZT+Vh6SI8IY4Le/snyV3fbNducs dOuaMD2kDP+PhN08SBQvxQf67k7NxtOjstHfj3zqoLqWkc8ZkDY5AiunY7VpLYDA+bLL gfr/vwt9Bxcjho9rChkH940SHCtzNFOraM7Z/XnslYcRIsSuY60SRw+Vbvl3O81dT6nY BJNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Qtd+/2weodakYXgL+dzS6FIZCKA+YP4ToyUckIqP470=; b=ZamVsSsRM3pFTc2eoncKuP9DRXctiC2n1+Ama0gnAQEmDJvZgvivXCFayLOCoZdTLc hzb/XeMcEG/BKe3KMH3XtApctMGUmz8pqIkZE4bCguxO/NNqr9pMFsp73AO3DOvH1Czc XnxPOwI9m6GEekw0wgOJPENkpn1Cu1yLUS2C0brKL6dFoD40cWnwYSO+PMcMYianHTMG 5WvPPDTc0PEDq5mJoaM5hoN7lxtpPJQ3X9sArQhm+ddxb12ozbCea5RUYWpTvxa3Dlxx g+XynfEPrByWrAqjScMMcuQZVu2m7eHjMKPYVQGEqEzagy+Bm/wYxDf30Xz3KdWJ5ERi km0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=qVxoQD9i; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si13975417plt.567.2017.12.20.16.41.46; Wed, 20 Dec 2017 16:41:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=qVxoQD9i; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756765AbdLUAlp (ORCPT + 6 others); Wed, 20 Dec 2017 19:41:45 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:39340 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755711AbdLUAlo (ORCPT ); Wed, 20 Dec 2017 19:41:44 -0500 Received: by mail-pl0-f65.google.com with SMTP id bi12so10006806plb.6; Wed, 20 Dec 2017 16:41:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eMiYlpX0J17QjD8V3YSpE3u2wy2NW/q/ZqL5vKwpR7w=; b=qVxoQD9iWbEqxSJue4WCs9qk8FuRjOdydz6EQ8tyqSQ3VCJIMaympkuap5ll0XFDE3 LGyubQjq/DNuPhIxySHrchxUrQ8BE3OTYwFfn8qUwVEBj2VdlU7FvT5b7ByUO8YQy7MV R8RKbUdfIDtAU5mk+bBR0ai6kiEUhiNdCgmx6sIGmHQiD2QP2rps5CodKGoi/PmfHSQA ZgiXpzx/Bqy5izTW/+HjywGjKOL7un+c6Yum0HRkymH3At0sV97Ki2UvPZKSxO7QtIv5 EcJiMibh1J5+SFfwWQDHusS2xxh3efgJRb2HZJM1goUDaSzXU/0L9sZYQHI00QReMft5 b6HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=eMiYlpX0J17QjD8V3YSpE3u2wy2NW/q/ZqL5vKwpR7w=; b=iLUNDdbMvzgO+Eo/UbHQtRd8I+wIs8EeQDjqnE8XMBYWgbDcuvrMubOCrfKSLbGLG+ sqUt6mGzANtLSeffIRj0noXonedA96Q2EMtSPw6LdPfiqUu37kotpMWDxkOSPcb3+fUt G3c1fVVruaUiF2M0kTIOb+mFyKHmiDVepPxcHtnNwzUB/GGRBKFAa919xhj4aYopCJPd OiycAW6BGy4cZJHbucLLLyJG13P5MB0yyzcwy8TYlbvovlijX6pdiA3c3Ru+jsc5h/B1 gU59wJ0dSaTs2/cs2+NvqW13Eal36f8vxpq/KEce6B8GHe+ZfWjyWs4G8dmO196aj3m5 d+Lw== X-Gm-Message-State: AKGB3mLl+Q9JeZKChKKaD7juMBja81mj5uzvuw9gi3ksdDJ05Yg6JiLA JF44kDAteQ8aq6KvQ+Y5GpkvrBxnse0= X-Received: by 10.159.252.11 with SMTP id n11mr8796197pls.196.1513816903262; Wed, 20 Dec 2017 16:41:43 -0800 (PST) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id e22sm40445268pfb.176.2017.12.20.16.41.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Dec 2017 16:41:41 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Thu, 21 Dec 2017 11:11:35 +1030 From: Joel Stanley To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] tools/gpio: Fix build error with musl libc Date: Thu, 21 Dec 2017 11:11:31 +1030 Message-Id: <20171221004131.23691-1-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The GPIO tools build fails when using a buildroot toolchain that uses musl as it's C library: arm-broomstick-linux-musleabi-gcc -Wp,-MD,./.gpio-event-mon.o.d \ -Wp,-MT,gpio-event-mon.o -O2 -Wall -g -D_GNU_SOURCE \ -Iinclude -D"BUILD_STR(s)=#s" -c -o gpio-event-mon.o gpio-event-mon.c gpio-event-mon.c:30:6: error: unknown type name ‘u_int32_t’; did you mean ‘uint32_t’? u_int32_t handleflags, ^~~~~~~~~ uint32_t The glibc headers installed on my laptop include sys/types.h in unistd.h, but it appears that musl does not. Fixes: 97f69747d8b1 ("tools/gpio: add the gpio-event-mon tool") Cc: stable@vger.kernel.org Signed-off-by: Joel Stanley --- tools/gpio/gpio-event-mon.c | 1 + 1 file changed, 1 insertion(+) -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index 1c14c2595158..4b36323ea64b 100644 --- a/tools/gpio/gpio-event-mon.c +++ b/tools/gpio/gpio-event-mon.c @@ -23,6 +23,7 @@ #include #include #include +#include #include int monitor_device(const char *device_name,