From patchwork Sat Sep 17 20:17:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 671255 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sc3TW2N43z9s3v for ; Sun, 18 Sep 2016 06:21:51 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=F+45uCm3; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1blM3F-0002EX-Ik; Sat, 17 Sep 2016 20:17:29 +0000 Received: from mail-oi0-x243.google.com ([2607:f8b0:4003:c06::243]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1blM3C-0002AT-Dw for lede-dev@lists.infradead.org; Sat, 17 Sep 2016 20:17:27 +0000 Received: by mail-oi0-x243.google.com with SMTP id 2so9430074oif.2 for ; Sat, 17 Sep 2016 13:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=hb2gQaVrEJ5V+5aFlMGtOnTJxx99+fTvN2hp7WgPDdU=; b=F+45uCm3MvcQRCbVYjFbvv5in8Lp1Bt2ibIIJAazlfWMavWL1UQvywC3Wtp7/lVfon te/INkGE3+axtGtfFBn8Kh5KaYF5f9Yix+KEGm71d6lEof6XMYq6/5zoSYcxjmfbWgae MOJm06E4T37O/Jioz9qNIzRHq3iErp0quG/4NcfFV1owUdwPztbc2aXzyrXJlWSXuq07 kFP1XHh3wtHz4IjhDvqvwom66heEmihLRdM5paAoY+kQp6cqL6O5hZVV/NWf+zhBMsFf gPgXlGhwIZzGyrbEV4syCZ6qMg1eND5/G22sqWJ8xm9bdUfu2/98u1AUHlCDfZ/iC2Fq EbmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hb2gQaVrEJ5V+5aFlMGtOnTJxx99+fTvN2hp7WgPDdU=; b=ZVJMn9iXiAR0XSkz7WrTcZ05pPW0B0sUcUEbXvhExYUA4Sj6I/Gwrpd+ph7z8XNo2L fvfnRtmtfic4I0iS8QtpqyO9o4lhqlOlDrHycVCSVpQJssyQ3prSZFUEw1DZX6n8z+jR ABtwQtCA5zo8yfsATD61P9xOVIH/gO/NL25WexN1hobcRJgOIQjwNFHzTpOJudAb6XQ5 RxfttLI4YENsVtQqbJ90LrxQvotBrEayWnLOswJVwdDqJBqAJweEZ9eQcQtFrrIhiLm2 yuAfJJI5ADsy751p1qOqzkm/DsnU0DJcmMr6MEfrgiCxJ+18+DaxUL5SC3uuLOSAxlN5 H0CQ== X-Gm-Message-State: AE9vXwM3sh5zFaSuNvl+yi3LrGzIBFkY0jlcUAyaPMQF9yrdohRVEyv+/hhBMWsGSrtm4w== X-Received: by 10.202.196.78 with SMTP id u75mr19312809oif.101.1474143425410; Sat, 17 Sep 2016 13:17:05 -0700 (PDT) Received: from bender.lan ([2001:470:d:73f:68f7:5f02:a64d:b5e9]) by smtp.gmail.com with ESMTPSA id r4sm2163996oie.13.2016.09.17.13.17.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 17 Sep 2016 13:17:04 -0700 (PDT) From: Florian Fainelli To: lede-dev@lists.infradead.org Date: Sat, 17 Sep 2016 13:17:01 -0700 Message-Id: <1474143421-26561-1-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160917_131726_608088_8895BD42 X-CRM114-Status: UNSURE ( 6.56 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4003:c06:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (f.fainelli[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH ubox] getrandom: Define SYS_getrandom if no definition exists X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: champetier.etienne@gmail.com, john@phrozen.org, Florian Fainelli , nbd@nbd.name MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Building ubox against kernel headers earlier than 3.17 would fail since SYS_getrandom was not defined, so provide a definition for it. Signed-off-by: Florian Fainelli --- getrandom.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/getrandom.c b/getrandom.c index 96712028589b..e324072fcf0e 100644 --- a/getrandom.c +++ b/getrandom.c @@ -32,6 +32,10 @@ static int usage(char *name) return EXIT_FAILURE; } +#ifndef SYS_getrandom +#define SYS_getrandom 278 +#endif + int main(int argc, char *argv[]) { if (argc != 2)