From patchwork Wed Feb 5 09:48:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1233747 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43a; helo=mail-wr1-x43a.google.com; envelope-from=swupdate+bncbaabbbm75lyqkgqe7n6c56a@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arri.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=ECTGdHz1; dkim-atps=neutral Received: from mail-wr1-x43a.google.com (mail-wr1-x43a.google.com [IPv6:2a00:1450:4864:20::43a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CGwm137Lz9sSZ for ; Wed, 5 Feb 2020 20:48:56 +1100 (AEDT) Received: by mail-wr1-x43a.google.com with SMTP id w17sf914859wrr.9 for ; Wed, 05 Feb 2020 01:48:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580896133; cv=pass; d=google.com; s=arc-20160816; b=w6GZ3ZwhG26r82TgeOZ2waoTKx9JnmHlZUxsnOokN3HESr6wM/IswpVXjTg8UnEEpd lZUFiiODx0teS7ZUvzERGRuEd6YQTO8TjEmBp9JQNkjCDRAEReOlfUVOy8FAjk/lQB86 4eY/RsNpoCw/XtA4em4zvaTfk0jSZjrM6dJxBKY/TzATyy+kjSL8UlFYA9x2v/bd9PEJ 0EoFS1WypsGv9lVHUMHNWqmJ7ckTCUbf5bujlp/rCSKFvM0+9A8BJUlekyDdBqUW2AYx mHvKUJLnjp8+q13lzRTUW8uG/DvqMVKSRzk1+LQlrAUnSPUTNXFhTz6fC4VPM/eS7SKe Vddg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=R3rq8ApauRc3i97gA2Kuht2okp45YFl2b83kJwe9EGE=; b=n48FAdcD2RPwKEt6fSHr/hxqy4NTANwPezlHBfyXnExPXKwSAvzJNxLVS05XZ6bn8X uyjq0mru1lvjgfEG5RDZkcZfuMivHGXmliBTA/KlsAjigxr4DRUN2X2St7HdS8b62eFH QhCHX9mzh7tswdRkN4XABBO+ASsLlRd7tRATw6FK3sZUET+GFvfikqSZPJqLDLIwctLz wj8P+i2pWJbqyxOT/vhNkPb+D4cfNdl325Dd9/gXkue1jX7qMyqQckKv2RsQObnkoXQz NMyzWcbpDedwbCepORND2hgFq9edXwrZmEZS44/ENCigh8btv/QbYD2b4bCJqcJjTLhH rdhQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.91 as permitted sender) smtp.mailfrom=CEggers@arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=R3rq8ApauRc3i97gA2Kuht2okp45YFl2b83kJwe9EGE=; b=ECTGdHz1x7zpNK9iG6ZtV2ZV+0NsaEkGaeZ8wdqmyd7ne48TYax9B0F0jszm2pXRmn 66nOgP4vOOX3ctHkYZm+m1munPAtOCARanVT7WV/ex81xfqseXUlkuyPOJalFAxvkiBR EPN+Yio+fkeIvFUQ2htF1GdIkfyfmRwed8IEu++WnM/XJk9+pHHQWrPgViSV7beVFR1E 8Kuy0Yboy8ePlI3ShE9CMk3bNuriJMkOBphwO/8CfMAcvPQz930jIVeitoEqsiRGFPUP OlZVj0kDVzxoYquHd0S6oYQcV0nPTSC9Pq/R1llAwuItjZwhrJJmXa1Qw6YRoOIhNQfh /A5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=R3rq8ApauRc3i97gA2Kuht2okp45YFl2b83kJwe9EGE=; b=lkb70IXAffXeYYC95HiyNO99hGu8fI+gBKXBvsCWzrYCeun24gRokNKaxK91dRrRTu frsV09q7Rq4uMvhxkZwcY4ms1x3dXmnQ55hvsP1xqD/EbyR+e8SQxd1lwVfG3DZO3o9K I3iRd5n74R7PVMRUiw6HIKGAu5kpesDE7+xSzMI+dc/U2CPaZTH5yfosYGBi1cTDJ9/F sBeo8t5RHWCgzLMOZLRSumfC224EBBYAOJ9h8XDto2QwBvjfPMTMH2cVchaTsCKrr5Yk Rq5AqUfr23o87RtvT6/ECTDfP281flfEn6E1h6HVgvt4m3GFzk85u4qsWGlporVlRQny X1ug== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAV976mPiJXiWIjnJCBML1XZGyOIQzEtBTeJZ93a6bEnwZFbCId2 BFAh53mwt+G8hloojDbJYbQ= X-Google-Smtp-Source: APXvYqyO79NDQEiU6VJFlPTD6fXMe6LanaMD6s0JWB2ZUt9Wss62k8SZrU8jdd1iKsHywIpLVxNrWg== X-Received: by 2002:adf:f0cb:: with SMTP id x11mr27885949wro.421.1580896133253; Wed, 05 Feb 2020 01:48:53 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:eb4c:: with SMTP id u12ls571273wrn.6.gmail; Wed, 05 Feb 2020 01:48:52 -0800 (PST) X-Received: by 2002:adf:e781:: with SMTP id n1mr29429424wrm.56.1580896132746; Wed, 05 Feb 2020 01:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580896132; cv=none; d=google.com; s=arc-20160816; b=uAn0YWGQ5vpJBzSL9aAgbdnXBwAsuHawyEjSS79d61RN4yLr8E2r4v/v2t0owkDVv3 QAeAhJVthCYi+PATtBFmCSm6sXO8wBNjEaRVrC5aDiNECZl5dHtEVA5D8JprPRLjDGhn Wpb9DIFd0SdIxyXQbCyPTVgW/qXsuo8UHnQCSxjngNgTMGnHR5i9hvKhkuRW22D24OIP j4jG4PIRR3xtaLBvU/EOJZIgMn0ynUqNPYdohm8qXK+WFc4CCte9kQRz6REf7aiK//tv lxbXWl4jLQjKE2n6jH6Qd44Pe5UIsI+lwXFU9R5gyFp+SGqUfYJEcTt+51oMFOf0hSTE 28UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Wp/Fxfj7ZUscMGl0chMXmgnkNCTllwitaa9byUUL8SI=; b=ycZ3qA2x9EYY4gaNK/fkJjAaVhkHHtg9mFfKOe+2VtToNCR6spTxzRbw1ZolcGw8YU Zg9t0eQgCnFHN+HJ509Bp5ncjLQiqijZEaGqcICOpg0UZpDcoFMcaS2bFm0Pwu8LqDsq Vrl/zfXVPJqZRQXFV4ApmpIF+DivVwFmi29z8FHHZd1YS133qtZJc2Jx0V6gJcNiD4Ig kcrWnKn/GJVfHCefu27WhVDyN/CIkrHwft8yXwJvw/5/0UPUR1md5/pU5qTJ+pgBHeE1 XspJL0Fj4h/nDy0mp19Mgrl1ppE1KKLjUtuBJfmSg5jT04c52A20bKfcQUnxGU89tYDU ndGA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.91 as permitted sender) smtp.mailfrom=CEggers@arri.de Received: from mailout01.rmx.de (mailout01.rmx.de. [94.199.90.91]) by gmr-mx.google.com with ESMTPS id i15si984120wro.2.2020.02.05.01.48.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2020 01:48:52 -0800 (PST) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 94.199.90.91 as permitted sender) client-ip=94.199.90.91; Received: from kdin02.retarus.com (unknown [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout01.rmx.de (Postfix) with ESMTPS id 48CGwf67fbz2SW6l for ; Wed, 5 Feb 2020 10:48:50 +0100 (CET) Received: from ppmail.arri.de (unknown [217.111.95.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 48CGwZ0bjcz2TTQ5 for ; Wed, 5 Feb 2020 10:48:46 +0100 (CET) Received: from mta.arri.de ([192.168.100.141]) by ppmail.arri.de over TLS secured channel with Microsoft SMTPSVC(7.0.6002.18264); Wed, 5 Feb 2020 10:48:45 +0100 Received: from N95HX1G2.arri.de (192.168.201.254) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Feb 2020 10:48:45 +0100 From: Christian Eggers To: CC: , Christian Eggers Subject: [swupdate] [PATCH 1/5] Makefile: Fix out of tree build for documentation Date: Wed, 5 Feb 2020 10:48:05 +0100 Message-ID: <20200205094809.30185-2-ceggers@arri.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200205094809.30185-1-ceggers@arri.de> References: <20200205094809.30185-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.201.254] X-OriginalArrivalTime: 05 Feb 2020 09:48:45.0806 (UTC) FILETIME=[754C78E0:01D5DC09] X-RMX-ID: 20200205-104846-48CGwZ0bjcz2TTQ5-0@172 X-RMX-SOURCE: 217.111.95.7 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.91 as permitted sender) smtp.mailfrom=CEggers@arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , The doc/Makefile expects to be run from the source directory (e.g. with a given BUILDDIR parameter). Tested with make targets "help", "clean" and "html" for in-tree and out-of-tree build. Fixes: 58a4c02953 ("Build documentation from main Makefile") Signed-off-by: Christian Eggers Acked-by: Stefano Babic --- Makefile | 15 ++++++++------- Makefile.help | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 4773d54..9f41235 100644 --- a/Makefile +++ b/Makefile @@ -531,7 +531,8 @@ clean: $(clean-dirs) -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ -o -name '*.gcno' \) -type f -print | xargs rm -f - @$(MAKE) -C doc clean + @pwd + $(Q)$(MAKE) -f $(srctree)/doc/Makefile BUILDDIR=$(CURDIR)/doc/build clean # mrproper - Delete all generated files, including .config # @@ -578,17 +579,17 @@ clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj endif #ifeq ($(config-targets),1) endif #ifeq ($(mixed-targets),1) -endif # skip-makefile - -PHONY += FORCE -FORCE: - # Documentation # run Makefile in doc directory dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub \ latex latexpdf text man changes linkcheck html doctest: - @$(MAKE) -C doc $@ + $(Q)$(MAKE) -C $(srctree)/doc BUILDDIR=$(CURDIR)/doc/build $@ + +endif # skip-makefile + +PHONY += FORCE +FORCE: # Declare the contents of the .PHONY variable as phony. We keep that # information in a variable so we can use it in if_changed and friends. diff --git a/Makefile.help b/Makefile.help index 067c750..e6f538d 100644 --- a/Makefile.help +++ b/Makefile.help @@ -26,5 +26,5 @@ help: @echo ' randconfig - generate a random configuration' @echo @echo 'Documentation:' - @make -C doc help + @$(MAKE) -f $(srctree)/doc/Makefile help From patchwork Wed Feb 5 09:48:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1233748 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33e; helo=mail-wm1-x33e.google.com; envelope-from=swupdate+bncbaabbfm75lyqkgqet3ced7y@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arri.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=DRqnkJL5; dkim-atps=neutral Received: from mail-wm1-x33e.google.com (mail-wm1-x33e.google.com [IPv6:2a00:1450:4864:20::33e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CGx43gzpz9sSZ for ; Wed, 5 Feb 2020 20:49:12 +1100 (AEDT) Received: by mail-wm1-x33e.google.com with SMTP id y125sf1740639wmg.1 for ; Wed, 05 Feb 2020 01:49:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580896149; cv=pass; d=google.com; s=arc-20160816; b=T4/xOBOttFO82jOBtcsF82FWniGJBJjJEGyVT9Rp+ITM5QOTyBZ2yIteRN/QFv5qo0 jUqr91u/Mt5LLyRBG3Lnuh8fUKJdSn7FXtG0fm124e4m2xzcmhGrM7XxpSaeFaO782lB 4kOWHxDmLSHbg+402t3nXXwSUMrsiXbI2MAz8htZNz3FTmjGH0AWstA2zbfc5UkLJ5XL CCfvFL1EaPIDY5YmnzbeTc6rXAu1+u9mMHxCraKzNxHxnnVMBERMehvvTZa6HpaSh8mP 1QsNGCx/iaDzQFfQFGPYHo03zbfImGl1ACmUzGmaZgwVStA90H0xbz4Bc8Mz0OuTZK0B Lkpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=sgnf4O5F13LrEnp1wAm2RZ4HufSt8dBcoo0ZqPokqgI=; b=sKg4Kh0VgiGERN2ocJFtTJNv3EXuSLIw/IaFYldr976qENfom3yqAEwRgz2RzA8Mz5 a5uFk20nQB/WcK0VQDdifkxwpQ+ZkIDb6x/Apl39n6iZxw9DUNv0ViHSN99OnSO/6FNI 0G6ycyQL97wQYz8QRCIW7sSgol3IJr9qvuidhLqz1BT47iaebDcQmDoELRa7OUc7evuq QzCeLwkDG1eAxPcpU/HbflHkWKnaF3Xo7XSmtM4WVQjP4Q80mWGyBabZFDDQixrZaxEq diV9LWdy42ET05TIw9tcHsmDdMJnBDmsKDakgbavSyAtQ+RRcb+Ie88Vkmojazoh14tU 4Rkg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.78 as permitted sender) smtp.mailfrom=CEggers@arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=sgnf4O5F13LrEnp1wAm2RZ4HufSt8dBcoo0ZqPokqgI=; b=DRqnkJL5JbwSop8U+MfApMIYoOA6rFMDjobaXCKd0icbGGVgdT8dfzzPuFX+OfhUAM 3LJ0LsN7fQ25ljGtnlcTRFMRY4wQGuFFdoG3xF2h1pPLvlFgmC386ZHEGCpA7GcL8ncL bYW8mxyzeQM/EuCDGWD41qfn0CkyRSqqH24Ub8eSFYV08NFxWyUrQD7eCdS/2NE/mAAu +9n8t4OqeuY6J6ToGK/DcVndi+ZzozrqAWGnmmgrxg83EBlqu009T6kskvqsUk5LthDp 8IxXUgNhJ/sf2okuXMx6gk5UlHXJiLbTHzbibZa1hRk6AF91QA0NUoDEoc3TTo/oAw3U XHeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=sgnf4O5F13LrEnp1wAm2RZ4HufSt8dBcoo0ZqPokqgI=; b=geudej+p0zwDdMwtqeMx/PVw/VR5Va4bR5FRuSzfIqVHJwFtjOevMPCYWrJmUS3Q2f kgNuVcbvJH3Eg5X+ur9kjsV2q6YqIjsYIwLMG5egS99XEld5PotAcusDZm3uAQL1Bdcy PQao/cCjuargm4nucj3cErViOlkrTNYVeYtePD4QiDcRxAWCOeW+BUzZ+y3lYm1VGlOx yV73V8QYq5CjU19TohGpg4xdlu/RWCGMiOHQRxwiD/62uW0QGdNjnxVjOM39Y/fVL2Am A1pZwsxSvMrdjpVRtrV3lDzpNZMM/wmJPJLUc2puNoypr99DwQOoigYIPsa9r1cs2BaK 8kuA== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAVs7k9gJEO6vdJ4FW7gqB58eYZam4GFZrMin6LHH6dFy9bChBba fkmRQH5BqcQgHOCEJZOHxhk= X-Google-Smtp-Source: APXvYqzzjrtLWBmlnKbkVTNUsTmIC6rkJ/vKHJUlqLV5+H+8w+YIQHyP4h5JCr6Mw1BHq3ppicEjgg== X-Received: by 2002:a1c:7c11:: with SMTP id x17mr5131345wmc.168.1580896149608; Wed, 05 Feb 2020 01:49:09 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a7b:cf15:: with SMTP id l21ls1039036wmg.0.canary-gmail; Wed, 05 Feb 2020 01:49:09 -0800 (PST) X-Received: by 2002:a05:600c:2383:: with SMTP id m3mr4961086wma.32.1580896149077; Wed, 05 Feb 2020 01:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580896149; cv=none; d=google.com; s=arc-20160816; b=dCdlFvq5QUhkgok7QEA2V8Tf8hT6RBNfM3GBPmmZSkjEEK2kuKvuz8wEtKa7WRz/CD h7yxyNgaAtbpPq09hw3c3skoihSWhb7cpCA2GxHzxxuWTgeY6yj3EXXrHSXoXbPA6dK/ b4W888Qo0w8orsWNbBui/k7GXQbAwtBuizJxpm808k2XkUZ8IzxALo/w3eZjoJ/WOULN MoMsYywp2IggN6HeTLK3I33/bfHXfOA2a7lNf0yvti0nXFUHwA+pD4fpjs8J/IhObNtQ vhyuVL56MfF9ZmUFyMX6kCcLC1OW7EoSIf7GKXnynlTDsXtMwA9Hy+lyRBOZWOlJeKFN rB+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Hph9Lgz1bddWAnqGHqDF1Y49W1f9JD3A18Ub8ZJ/m14=; b=TaMG1EclRg9Woia4cfKRPYMy1xPa7w/oAffbkkGPTMYKF7reR/nKM9e3Na9fnMRQxC gS1i7WGop4Z9NNUK/JBJkJzhraCS4Y2EK38fGtq2KxrKrYy/DjnQ7hLOgce2vWHN91D8 U5h/7fjnD32KjO0j66M/4kmJf3qoLFQQcu1vJKxlTEx5fxRZE9QWyu8Rva2z4NzlAwdl brZCCnCce2/TMkLeD8QmOnpbcFzmKn4M14HVqKH0OWTvYcIL3zXxy/XDA+rWwEMemW0U F5ONpg7iN74feIi09u8A4gFOfLqMk0ObSni5ahz6OWIETEJa6Wmdl8VKSmIXfGFohK6a Q3JA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.78 as permitted sender) smtp.mailfrom=CEggers@arri.de Received: from mailout12.rmx.de (mailout12.rmx.de. [94.199.88.78]) by gmr-mx.google.com with ESMTPS id m2si300369wmi.3.2020.02.05.01.49.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2020 01:49:09 -0800 (PST) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 94.199.88.78 as permitted sender) client-ip=94.199.88.78; Received: from kdin02.retarus.com (unknown [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout12.rmx.de (Postfix) with ESMTPS id 48CGwz1b0QzRnYL for ; Wed, 5 Feb 2020 10:49:07 +0100 (CET) Received: from ppmail.arri.de (unknown [217.111.95.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 48CGwm3593z2TTL3 for ; Wed, 5 Feb 2020 10:48:56 +0100 (CET) Received: from mta.arri.de ([192.168.100.141]) by ppmail.arri.de over TLS secured channel with Microsoft SMTPSVC(7.0.6002.18264); Wed, 5 Feb 2020 10:48:56 +0100 Received: from N95HX1G2.arri.de (192.168.201.254) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Feb 2020 10:48:55 +0100 From: Christian Eggers To: CC: , Christian Eggers Subject: [swupdate] [PATCH 2/5] parser: Fix printf format warnings Date: Wed, 5 Feb 2020 10:48:06 +0100 Message-ID: <20200205094809.30185-3-ceggers@arri.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200205094809.30185-1-ceggers@arri.de> References: <20200205094809.30185-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.201.254] X-OriginalArrivalTime: 05 Feb 2020 09:48:56.0149 (UTC) FILETIME=[7B76B050:01D5DC09] X-RMX-ID: 20200205-104856-48CGwm3593z2TTL3-0@172 X-RMX-SOURCE: 217.111.95.7 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.78 as permitted sender) smtp.mailfrom=CEggers@arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , For glibc (and probably also for musl), the 'z' specifier is available for printing (s)size_t data. Signed-off-by: Christian Eggers Acked-by: Stefano Babic --- corelib/parsing_library.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/corelib/parsing_library.c b/corelib/parsing_library.c index 009cd2a..be1471b 100644 --- a/corelib/parsing_library.c +++ b/corelib/parsing_library.c @@ -215,7 +215,7 @@ bool set_find_path(const char **nodes, const char *newpath, char **tmp) ref = strdup(newpath); if (!ref) { - ERROR("No memory: failed for %lu bytes", + ERROR("No memory: failed for %zu bytes", strlen(newpath) + 1); return false; } @@ -237,7 +237,7 @@ bool set_find_path(const char **nodes, const char *newpath, char **tmp) paths = calloc(count + 1, sizeof(char*) * count); if (!paths) { - ERROR("No memory: calloc failed for %lu bytes", + ERROR("No memory: calloc failed for %zu bytes", sizeof(char*) * count); return false; } @@ -252,7 +252,7 @@ bool set_find_path(const char **nodes, const char *newpath, char **tmp) ref = strdup(newpath); if (!ref) { - ERROR("No memory: failed for %lu bytes", + ERROR("No memory: failed for %zu bytes", strlen(newpath) + 1); free(paths); return false; From patchwork Wed Feb 5 09:48:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1233749 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::438; helo=mail-wr1-x438.google.com; envelope-from=swupdate+bncbaabbje75lyqkgqe7b4sxyi@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arri.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=H2Fw9545; dkim-atps=neutral Received: from mail-wr1-x438.google.com (mail-wr1-x438.google.com [IPv6:2a00:1450:4864:20::438]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CGxM4Jd0z9sSZ for ; Wed, 5 Feb 2020 20:49:27 +1100 (AEDT) Received: by mail-wr1-x438.google.com with SMTP id v17sf896381wrm.17 for ; Wed, 05 Feb 2020 01:49:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580896164; cv=pass; d=google.com; s=arc-20160816; b=R91foEPf7DTgTxgkC1PklJU7cG9ZyPXXeIv4ogWft/vYjXhKQZ//I5jwtZr85F3JMc IZdfwHqstcb7b2UZdxBjPIAOAKOm0TcwP+4P4H9fT5rP1m5mKC1/xBcE4U/EBJ6/mZLL rCd+EwidKpxurjrQ5lfJhGn9XgVXYB9HkPctibLr5KjwUc3Dtg283vW3I1iNgIJw+zx2 h4ectPdJtt8wKuf9QJH7Aje85B95yVK/HCjGwFMQenSB44E4E/vZZAWr9CseC10MPc+c AIYFB9ahD906aZA1qkS+rFTipkJueX5BR6CXjWuT7m5UbdngRCyUDNHse4qB3rl+ylPH IrJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=sQVxtXg9bkI0CeGUZAPUsUKydZXbuWLC2hWOrlG8iCI=; b=MSR7FEILww+wQJJdVXqLqfF63xWV9MqxED0sYLKY/Usz9fZ0JlO1MoDMXYujmJDjvV 0pS4Tn/J16OBHqM7BTKvZlU3QL4LPwvIKANRSmEAg/Oer8WPbxSgl1NefgY1ieQS3SGW V+YlE08g9wQYBHZF142/UyDZBrK5EY9ThrOzfaJrwWH81Bqm8QpIlQNy+BEHS1W1ewj6 wJApoU0Ljtn/JpxR2B/B1wc5Qh2lOf2uHad6ryvhOa7Wpnczq+GajKW5/b520mKzKm2a X9LTOgeIgdspHmS6tBpoBAMFLhxEwXyAdNgC/Sf4u+W4LPUetxeg1Jlp2toDRL38BYrm dHww== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) smtp.mailfrom=CEggers@arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=sQVxtXg9bkI0CeGUZAPUsUKydZXbuWLC2hWOrlG8iCI=; b=H2Fw95458PDJfHnD1PaUSd7IzdyyiFixJ8lKg+FkOPQmmptSV58o5OEOwVPpgeyCIq M2Pke6mV54490jCJnnmFhk2mTSV+LE4Fie7tonl5xdu5mKyXcQ6CHcIVVxojFwyyFfOB 8a8rfGFbNaAjvGxt+c2xeVN4B/QXAH7efP97l6pCX8J5KveF1TuPIcEo3K8PgayPPdhw xr7KyCjCdJ8O8q8IQwVrUsaI6AVqp86VKJ3NKH5ytoYNxJg3JToU4V9Sg1jSPUGATJhC lMip8lZ/sJTc/4NDiU+xJyaBVUDvdAfeB2OjE7u8bAZ+OpShNvntz6WfQ6LNYpEV35VG XbKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=sQVxtXg9bkI0CeGUZAPUsUKydZXbuWLC2hWOrlG8iCI=; b=eL6bEhMZx/K2twkDNA1kIWNweQ0hyoUSiNc4NZBMXWa5JTftHd6KqRFU36NXlYP5JT QzllXfC7rfltGvF2IVWkaNn9Ec6bXR7Tt+tkTjSEkE57T+XKtoNZ6R8AvXDNoM4zVqu2 AfR/oyG6OO5CwcM/EoeXFggZlwjVCnY5MFVwRagHKHj9ODoPUE8QtIPkawfhc/ywBUvg r/xkgou0gAT6D+h7l/vGmepBGukFJpJxXXCVIH1MJEByOLjzSZKncS3WWyPNW0o9tR/t B2SzR2jmI9Nq7TEnIsBgkfP0zzD95dCbIv10c8wrbSvU99OlTvDMiGqWoWVFh4YlJGGZ eEAQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAXn6CwKdefch+Hkg2NDqvq8DAGVaGiG0gye4JvIZ1tdA/3EyBrg 8zvesQlqQb4clClr5jM82Xs= X-Google-Smtp-Source: APXvYqyEjUy7In7M+w/gsa2sBzMpzALjdPQ056Y006bDeEXFGlZRjxKTeBpVMhqzCCvXQBUvUQ72Kw== X-Received: by 2002:a5d:51c8:: with SMTP id n8mr25168833wrv.111.1580896164659; Wed, 05 Feb 2020 01:49:24 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:adf:eb4c:: with SMTP id u12ls571927wrn.6.gmail; Wed, 05 Feb 2020 01:49:23 -0800 (PST) X-Received: by 2002:adf:a41c:: with SMTP id d28mr29304469wra.410.1580896163915; Wed, 05 Feb 2020 01:49:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580896163; cv=none; d=google.com; s=arc-20160816; b=JsKTycwUpA3+cnA/+aD5nnsc8Ukm6uOzdNI07cebcGcXFuip4n4cWdzjWFDNqztjZH qVKtM03RKRWkRYlEyN5youNN0aiyojLnmnvNyPfWZrhtUzFRZXU7hr3H1QK1hzBUtGC3 MU/pKA6UlDycO/6XmPrOf3AfAu695XrIaMjXm9lXXx407kEnBSj58Z77dG+z4bxm9uMV chpOdyz/sNsJGpzoNiWBQSOdfxTxogBh1KeT51q/U3If+rGavtz4TKpDpeofuMMYQqf4 czxs9hyY4Wxt1x7LDD3f0lJXFAlYjiM3RrS1yXOz6DzfUp9Va2iNTlsDrTORUuj0vf6Q j5Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=sVSKiBBvWJIwGKS5eJzR/ZaxOqra946tAVmO9dat9xk=; b=ixGZzsbNS1t3tgq1l422/QCQeUXqcttz5ns0Gc62qjlT3+vqLe1wTflbYTMbgw0ovh GIPkyHcQDca3hpJcLCAMVDdK2VPL6VvUs1PXOWDmF1DKSXerH8xHvH2FcBT7fzmGA+Ld svpz4izA0G8m8S8pSSKGnC7G3bfzaoKhkvZR7PQDRtczttmuExWU2oIPJWgFiJEYy36k +saIs6K96FOMBbD8NLwKy8pLPXoGgaXd+cLzjJvf47z8xY35xRc/8KwuMpqFCUxQZVRh GPRaCEvkG+b5BTXqF7/byYvdPncTToOTQsFVlITh9lGBaTD+4Kzq5+v/hsPF51v8Ornr Pskg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) smtp.mailfrom=CEggers@arri.de Received: from mailout04.rmx.de (mailout04.rmx.de. [94.199.90.94]) by gmr-mx.google.com with ESMTPS id i15si984197wro.2.2020.02.05.01.49.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2020 01:49:23 -0800 (PST) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) client-ip=94.199.90.94; Received: from kdin02.retarus.com (unknown [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout04.rmx.de (Postfix) with ESMTPS id 48CGxG0PRSz3qkwk for ; Wed, 5 Feb 2020 10:49:22 +0100 (CET) Received: from ppmail.arri.de (unknown [217.111.95.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 48CGwz1dJvz2TRlm for ; Wed, 5 Feb 2020 10:49:07 +0100 (CET) Received: from mta.arri.de ([192.168.100.141]) by ppmail.arri.de over TLS secured channel with Microsoft SMTPSVC(7.0.6002.18264); Wed, 5 Feb 2020 10:49:01 +0100 Received: from N95HX1G2.arri.de (192.168.201.254) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Feb 2020 10:49:01 +0100 From: Christian Eggers To: CC: , Christian Eggers Subject: [swupdate] [PATCH 3/5] swupdate: Fix printf format warning Date: Wed, 5 Feb 2020 10:48:07 +0100 Message-ID: <20200205094809.30185-4-ceggers@arri.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200205094809.30185-1-ceggers@arri.de> References: <20200205094809.30185-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.201.254] X-OriginalArrivalTime: 05 Feb 2020 09:49:01.0734 (UTC) FILETIME=[7ECAE460:01D5DC09] X-RMX-ID: 20200205-104917-48CGwz1dJvz2TRlm-0@172 X-RMX-SOURCE: 217.111.95.7 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.90.94 as permitted sender) smtp.mailfrom=CEggers@arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , off_t can be a "long long" on some platforms Signed-off-by: Christian Eggers Acked-by: Stefano Babic --- core/swupdate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/swupdate.c b/core/swupdate.c index 38e5a56..33e846e 100644 --- a/core/swupdate.c +++ b/core/swupdate.c @@ -341,7 +341,7 @@ static int install_from_file(char *fname, int check) } if (cpio_scan(fdsw, &swcfg, pos) < 0) { - ERROR("failed to scan for pos '%ld'!", pos); + ERROR("failed to scan for pos '%lld'!", (long long)pos); close(fdsw); exit(EXIT_FAILURE); } From patchwork Wed Feb 5 09:48:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1233750 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13d; helo=mail-lf1-x13d.google.com; envelope-from=swupdate+bncbaabbl475lyqkgqelzmk5fi@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arri.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=mKpLzG4Z; dkim-atps=neutral Received: from mail-lf1-x13d.google.com (mail-lf1-x13d.google.com [IPv6:2a00:1450:4864:20::13d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CGxb0yKdz9sSc for ; Wed, 5 Feb 2020 20:49:39 +1100 (AEDT) Received: by mail-lf1-x13d.google.com with SMTP id f26sf471058lfh.15 for ; Wed, 05 Feb 2020 01:49:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580896176; cv=pass; d=google.com; s=arc-20160816; b=DAr2kdj/VkoQT8vyHao74sYyKzQw50PeT/yuZ84FyztqTT90u9jBl2KXyFXcOpB4lI A9yuQ9eJnjjwjFFX7re9mU0Re5nsgp+amtoTmQxNp5pNAKbEtKX0n14Mr/daof1SB4z5 L/hWFO0IibNbM4V9WzbCnRefYbVeHhQ2OAhMnSZiAzXwDCoXkeLy0NVtSjlMsL26hCwS 3MUPGtUWhz/LnIdjSSZxjiAjl0SeceGL+2Qm5jAi+mNVb/ZwQpqRZsTNV98qT5zkqlHm zQHCrnyB3WfT50HHCITbN2AK7TFc27mgkALKdfsTMnQuLY17aRHYMwO+Bf4MeCXvLVgp iD3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=U52EtYFJ7q1Sw02t/dcbnXvqyqsb023vnltBDW3Ub/4=; b=IEBtkGq/eOJ1Bgd8SK8+Ahp+CrpAIU2Uw5od7aoh/xWFbsOmMDB9tlbAtdAYAbPOAF DsFVYR0aflqXYt1EdwK7EtupVEidRSkeev+79M/ML9QEcJMkEGsIHUnP5t9ZJRFyTa1V 5mpIkSWbUPJcGibLGtLpHLtb+YtzmKEph9Yj3nLcI8314jKmtmVzfzTcv32/2CHyR8yA AHvefqp73qJPtIThClsuVlFW2NfXY1bXjZsIrCPMTBjU2oxjbMBDupITJT+Nx3wUqhSm MlwUWbXYhHu6+hXZCinCykQuuo7x/OhqlexUf0DDGSdT0z1y65yFXdv7pKN/IXk44CRW 4Oug== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.74 as permitted sender) smtp.mailfrom=CEggers@arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=U52EtYFJ7q1Sw02t/dcbnXvqyqsb023vnltBDW3Ub/4=; b=mKpLzG4ZAabkBYsLX18MIxW0eBUqDsbcrmCcD1gvx/upC0k/8NkqL+lvEfj7w+1uZl 8XdWXsTGEk94sdRtTwYShdxW1+rWACHlU/u1qAT4KHK4Dtx2qj2lB671p+HUsKrVYKJQ MM40gBDWaIW73o3wfrIhd/6hkVFWeJu+1xgMvRbl+7zCxlKpVDVQGpk4HuIdz6jhoZKp 9nBXKFz9a+J44XaCWiRcaAGMrsPcYK+Uanjz04R0+3IHHQf3pzTyWRpwfj4d8lp3AB20 jiTKnB0aBOs9qGtlyCg+YMkQyS+Bhf454IpbsCgnOpx/j1sWPLSQLbKvBYQfRfCiBtpG EWWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=U52EtYFJ7q1Sw02t/dcbnXvqyqsb023vnltBDW3Ub/4=; b=dsMwANWCwk7SV5Y0Vh17S9O+7e2fV3EKT82a0m3NgzYeVf3WnJDEztv8Ca4j/fqpVB 1O/B2HLDgpKGoUrJeK88KZQ5BYPONIFUJwKpZrPgcOnHU0lQH41FvYo3Tf7n0AXvaAz/ hoEItkB+EfeAk1ICkcENLBKQEYMs6Fu+xJGnTWPCY8ZHS532mNSoTt6KIBdJbyZbbmhh B+ybBQVDA7PaJ+XhY4JpzvMURR8EiWz9r+qm0LAW623vqURIgwY9CkXddqz7ulRtv8HG zTG7YGZsawAilA0dez0j0cdQIqlb5neZEVZ5TxgYe7mWg7eiAvnbIjylSkdx9wjetX7R /ajQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAU3KS3seRrWE9oNGFjEDF5CwCSSHUxqEGDg4i5pHsgy35jnnRzV TXDhmwozK7/xDy2E9TeSYSs= X-Google-Smtp-Source: APXvYqzb52ztgw4bHGLD9aPMPzKboyHL94cTY0Q+KqClBaBXF0fvzxvbzdF09Tj9xrFY4I5FCf8oGw== X-Received: by 2002:a2e:3608:: with SMTP id d8mr19864723lja.152.1580896175918; Wed, 05 Feb 2020 01:49:35 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:651c:1b4:: with SMTP id c20ls251830ljn.5.gmail; Wed, 05 Feb 2020 01:49:35 -0800 (PST) X-Received: by 2002:a2e:8eda:: with SMTP id e26mr20341070ljl.65.1580896175274; Wed, 05 Feb 2020 01:49:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580896175; cv=none; d=google.com; s=arc-20160816; b=wISGd7tsK4HdImtw3JhllWzFZz/migD1j5A89POYAklyYu3fL5/0kGVNeg3i/LDpUW R1sKpQaF/vazibwCTbj7uPLkxvhy0qIzh6DDFCyEzMLWvASk66rVuwR8+ams9DYLsitd FvAEJMg60qCB0cmFFgkp02anYiLPSIDxCa17juttr1436I0WKd33J+a75FVKLfc8IT60 KJsiaWKr0Q8NrxYUFb6VEwYagc1K46u4veUcG9dT5RPMIAfzGapRX2ccB3HriM20r4AE 9FZTfzLqEmP4F13SpxFYnaxFF6Ir2LLWL+TYIqoE/GLtzczOHtZB0IFqlEuhNp+tYPHD 3bng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=0hPXj84/GC2xNEs42vWEW6AZb7h+6cgWavoFArJ+3b0=; b=YdZyBHMLFx9E2pbQYRx+XAkQuXe0AOfZbA6fD0Ib6l7cmFQwzTwxUe/cWanBCNmc5I 3ug4mliP14M34UJK2G+nC1l8shMOdRwKUr/4qX4DkPM8TNvWPMpln0X4PfEDoPfthjla /p1oWrXzRmx3FecmVfbzajKKrOqupkt5HlIWa1/TZCJQLRmlM8AA3WCA4vVyU3E2wVhh cvIk0WpAj5XSoN8r4ZnpHGTjVwBcQx1fIZIoGTYY1ATDdI+BIHVuGwjMkMxJFU/Vnvj/ N9zCVtU2dzzmZ8mNJBZYW8JKV+/Cgmu2ZOfHiQgaRdbpOkFQAJY4PWymVhPJnCOMyZYw pmlg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.74 as permitted sender) smtp.mailfrom=CEggers@arri.de Received: from mailout09.rmx.de (mailout09.rmx.de. [94.199.88.74]) by gmr-mx.google.com with ESMTPS id a11si614674lff.0.2020.02.05.01.49.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2020 01:49:35 -0800 (PST) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 94.199.88.74 as permitted sender) client-ip=94.199.88.74; Received: from kdin02.retarus.com (unknown [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout09.rmx.de (Postfix) with ESMTPS id 48CGxS673TzbgMV for ; Wed, 5 Feb 2020 10:49:32 +0100 (CET) Received: from ppmail.arri.de (unknown [217.111.95.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 48CGxG0S27z2TSDJ for ; Wed, 5 Feb 2020 10:49:22 +0100 (CET) Received: from mta.arri.de ([192.168.100.141]) by ppmail.arri.de over TLS secured channel with Microsoft SMTPSVC(7.0.6002.18264); Wed, 5 Feb 2020 10:49:04 +0100 Received: from N95HX1G2.arri.de (192.168.201.254) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Feb 2020 10:49:04 +0100 From: Christian Eggers To: CC: , Christian Eggers Subject: [swupdate] [PATCH 4/5] IPC: Add missing includes Date: Wed, 5 Feb 2020 10:48:08 +0100 Message-ID: <20200205094809.30185-5-ceggers@arri.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200205094809.30185-1-ceggers@arri.de> References: <20200205094809.30185-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.201.254] X-OriginalArrivalTime: 05 Feb 2020 09:49:04.0323 (UTC) FILETIME=[8055F130:01D5DC09] X-RMX-ID: 20200205-104926-48CGxG0S27z2TSDJ-0@172 X-RMX-SOURCE: 217.111.95.7 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.74 as permitted sender) smtp.mailfrom=CEggers@arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , - bzero() requires strings.h - strncpy(), strnlen() and memset() require string.h - strndupa() may require compat.h Fixes: 01f0b52714 ("IPC: factor out pthread-based methods") Signed-off-by: Christian Eggers Acked-by: Stefano Babic --- ipc/network_ipc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipc/network_ipc.c b/ipc/network_ipc.c index 9cfb877..bcdcfad 100644 --- a/ipc/network_ipc.c +++ b/ipc/network_ipc.c @@ -8,10 +8,13 @@ #include #include +#include +#include #include #include #include #include "network_ipc.h" +#include "compat.h" #ifdef CONFIG_SOCKET_CTRL_PATH static char* SOCKET_CTRL_PATH = (char*)CONFIG_SOCKET_CTRL_PATH; From patchwork Wed Feb 5 09:57:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Eggers X-Patchwork-Id: 1233751 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::537; helo=mail-ed1-x537.google.com; envelope-from=swupdate+bncbaabbn5d5lyqkgqedw5nsjy@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arri.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=YNUaieIY; dkim-atps=neutral Received: from mail-ed1-x537.google.com (mail-ed1-x537.google.com [IPv6:2a00:1450:4864:20::537]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48CH7c2mt3z9sSZ for ; Wed, 5 Feb 2020 20:58:20 +1100 (AEDT) Received: by mail-ed1-x537.google.com with SMTP id f25sf1152234eds.22 for ; Wed, 05 Feb 2020 01:58:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1580896696; cv=pass; d=google.com; s=arc-20160816; b=L5LtYL2V+SFs/jnzMJdr7O5EicHlC9XunjTaxU4fzYSGDXNfP3J1ZLUR04tI0PD5JD FJWa1cFd//XcEh58oYqrP2HsNCa/J8HKsgciPCQ37nmLlthXFSEwt27IqRLytaei1mHh abC5ppYPYvScZHAhACFUJcLyKZ+mfIj9VFIiiuIJOayTSzjU2X6Du4YdCDxx2zeeOnVz ZejWAjoaqksqH82sit+xng73f5HGetd/k3lkfVM61qnxZfaNvxBLTQHXMqQUWuqIr28g DPvsD66/JILBwL+rfAQGKU7Vy1fCCdmHEPy+wK2YW2xVFtIKvTUymYzogn2byDw//KDM WoFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=LAekOtSEVwcW1aKX4zhn2x9AddmOwXekL2HWN7DLTG0=; b=Sk6/iHqlbAV6CrbkUhFKPuP75kfcP0YJ5LZ45Jjqd1b6JW7TBSdJnhsj5m3aJDD4y5 KrOpi30DAFh8WMVr6r0gfzvoYUxdWDvUN1uCz0dZ06XYLArMp+o5IS6zJqhJELu3Tnch KQX2ieNbT2JLh6o0curHA75YIN4CFhs8wmSMKumzzbFJIiRHYNGJpk3fj2NX1oe5A5L4 tOQMbgdyIZ4U0A54rtyWLX8/31FxAspDPnn2yBibvVkY79fBtdPB+6EvAEGK8FcoWJLG 7INI4MjCuLQYeS6dtwQ83TzNd5TmKoBfuduuaPUuT/o9iOOzCdiNGX/5z/dwc4TWlF6T HYUA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.76 as permitted sender) smtp.mailfrom=CEggers@arri.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=LAekOtSEVwcW1aKX4zhn2x9AddmOwXekL2HWN7DLTG0=; b=YNUaieIYBuf2vCKJ8OZ/GHbzWm3yNRZLPCEbFeShWG/4y8QbFXTq7cxUQ4hzNgWfgV Is45uM2aMAb4ohHc0jRqJXd7NPOY6fsuLAykJ2U+CywxA/wZ2SlbnduogO45j2QsBJZZ /bqSsoC35DodwWr17oyN0QbN5jddeGvIWR4YspzDtjyjLGB9EMfQ+qr1dycFS9xw8e9Z ejjlg+jk4UoDFXsQxuf7kEsJKM+aE2VpYQz2q2PjA4YWBmmXGFPH/mGnINBL0y3nIqZW 4NleL0NDglnPcb9wSVuSfcTRqAeAYkWwpVy3ljfyGQslu0coHH4lkjNbcgGbS4FKPFKU PPsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=LAekOtSEVwcW1aKX4zhn2x9AddmOwXekL2HWN7DLTG0=; b=TyKIV/P9NrldiaFWitIQSR487Q4goaphy3OCd1wM/InYwwfaHv9eqYGangkyE/nW37 CwOHB4LQxlftNjLCq6bGpE8mJBlbUqwjDScPSBNDIqkctJRu1Ucikzrdr1Jij50nVK3L G1krgfdvoe1iMFz9Vv6VOmfGDWipZPZCJPKBxBQvQXMHZ/3mWixVzN/DZNGEOxb0mYKr +JK6hKWmlO3MxkRSdyHywQHXNmGldNMsGCLTBV9QFD9wfeZMT71FAlZv9zoU6dtbr2/2 WY5B9ih4lTaGRRunNt+oEdZF6CZa2Z/X1BGU9yGmk0VdGQHZ6tHZHzXHFDjyODfgXeAl oPnw== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAWWKKtirVwmTbpNwUQWzqLjTL9w3zpSHG6KaZwvmoVghVrXEkA0 mMme1wa0+tppw27HTsa/w6E= X-Google-Smtp-Source: APXvYqyku1ZFjPZat4J+G60tEcrR5MW8DC3xguW+Oz+PoalIyI86k8tEz5f0DNZWF1HKA3MHcPL3Tg== X-Received: by 2002:a17:906:934d:: with SMTP id p13mr29306095ejw.303.1580896696435; Wed, 05 Feb 2020 01:58:16 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6402:177c:: with SMTP id da28ls670436edb.8.gmail; Wed, 05 Feb 2020 01:58:15 -0800 (PST) X-Received: by 2002:aa7:d3cb:: with SMTP id o11mr4218343edr.145.1580896695614; Wed, 05 Feb 2020 01:58:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580896695; cv=none; d=google.com; s=arc-20160816; b=O2j4hbRtEq3HACFRagVwpjr+ar0inyYjdQ7DCBFAS2CWuBThMw4NL5MYUsNg32F1Md ATeH1ZY7kleZ17ZWHvAVLftCa+/l2d10eirBmgMtcOpYIpMAopmPF0Kyh2RfbdaLH8l5 wEZPhmZOzgUXfB+WosrB94JKc9IFPcRBqWpZpdC3FpCEXTWRwQpY8Z+p1pIK2kcyOoc8 jV2rM3aL/pEICUz3Cuc+eqXJRKX5kh4vYlct7SmO/ADJBYM9O8Dki8iojIkh93sIB87q C8EcBGAcVOuLXgIYOPpWhkom8pk9/dyGknAMmcl2jAC+hligjXWwMRPwMKno+pX1Ap/C Ct9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=rpf7NHrZ69nlQVL6VlS82+obLY+GM9iXmybFEZC1a0o=; b=ROqV+WCACQNJZxHX9PpGWHJE2V+vlxbLNRRiY7zSgawk2mh9Kim+XaFe4QPr+T9e6o 5mZD+7C8g4qHnMNk2MrCg2p8R+9Gy37RkMmhihpIzSR5oXyFprfDuZcfCz00X9SiySkx JAzJQ9k4WC1SjBAqp3ySaBrBWYRKA4lG0aEzwVbFeV79RLZjy5EQ+xeQHYbBkOic9/xv qPkGQek0gHcWC9QQZHPD26bG/EbZikUFAfbXLOZRCfyOqpDbgqf8sCllrwQEKlyjdeVC Gajdj+IgPFykPHEqHbLPOBfNw/fkr4ZOV7Fo7ssIzNAk8jfgJRg3f0zfdqb6JZ6LfMI2 UogA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.76 as permitted sender) smtp.mailfrom=CEggers@arri.de Received: from mailout11.rmx.de (mailout11.rmx.de. [94.199.88.76]) by gmr-mx.google.com with ESMTPS id n21si1208819eja.0.2020.02.05.01.58.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Feb 2020 01:58:15 -0800 (PST) Received-SPF: pass (google.com: domain of ceggers@arri.de designates 94.199.88.76 as permitted sender) client-ip=94.199.88.76; Received: from kdin01.retarus.com (unknown [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout11.rmx.de (Postfix) with ESMTPS id 48CH7T2SzLz40XX for ; Wed, 5 Feb 2020 10:58:13 +0100 (CET) Received: from ppmail.arri.de (unknown [217.111.95.7]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 48CH7J3hkKz2ytr for ; Wed, 5 Feb 2020 10:58:04 +0100 (CET) Received: from mta.arri.de ([192.168.100.141]) by ppmail.arri.de over TLS secured channel with Microsoft SMTPSVC(7.0.6002.18264); Wed, 5 Feb 2020 10:58:04 +0100 Received: from N95HX1G2.arri.de (192.168.201.254) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 5 Feb 2020 10:58:03 +0100 From: Christian Eggers To: CC: , Christian Eggers Subject: [swupdate] [PATCH 5/5] rsa_verify_mbedtls: Add missing includes Date: Wed, 5 Feb 2020 10:57:46 +0100 Message-ID: <20200205095746.30426-1-ceggers@arri.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200205094809.30185-1-ceggers@arri.de> References: <20200205094809.30185-1-ceggers@arri.de> MIME-Version: 1.0 X-Originating-IP: [192.168.201.254] X-OriginalArrivalTime: 05 Feb 2020 09:58:04.0056 (UTC) FILETIME=[C20AA980:01D5DC0A] X-RMX-ID: 20200205-105804-48CH7J3hkKz2ytr-0@172 X-RMX-SOURCE: 217.111.95.7 X-Original-Sender: ceggers@arri.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ceggers@arri.de designates 94.199.88.76 as permitted sender) smtp.mailfrom=CEggers@arri.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , - calloc() and free() require stdlib.h Signed-off-by: Christian Eggers Acked-by: Stefano Babic --- corelib/swupdate_rsa_verify_mbedtls.c | 1 + corelib/verify_signature_mbedtls.c | 1 + 2 files changed, 2 insertions(+) diff --git a/corelib/swupdate_rsa_verify_mbedtls.c b/corelib/swupdate_rsa_verify_mbedtls.c index 533020b..beeb03d 100644 --- a/corelib/swupdate_rsa_verify_mbedtls.c +++ b/corelib/swupdate_rsa_verify_mbedtls.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include diff --git a/corelib/verify_signature_mbedtls.c b/corelib/verify_signature_mbedtls.c index 0dd874d..2921462 100644 --- a/corelib/verify_signature_mbedtls.c +++ b/corelib/verify_signature_mbedtls.c @@ -1,5 +1,6 @@ #include #include +#include #include "sslapi.h" #include "util.h"