Message ID | 20250107022008.104538-2-dominique.martinet@atmark-techno.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCWIVBV7SUGRB3M66K5QMGQENKRYTEY@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=NxcUKvt4; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::103b; helo=mail-pj1-x103b.google.com; envelope-from=swupdate+bncbcwivbv7sugrb3m66k5qmgqenkrytey@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-pj1-x103b.google.com (mail-pj1-x103b.google.com [IPv6:2607:f8b0:4864:20::103b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4YRvsW6rH3z1yPN for <incoming@patchwork.ozlabs.org>; Tue, 7 Jan 2025 13:20:31 +1100 (AEDT) Received: by mail-pj1-x103b.google.com with SMTP id 98e67ed59e1d1-2ef9da03117sf33696209a91.1 for <incoming@patchwork.ozlabs.org>; Mon, 06 Jan 2025 18:20:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736216430; cv=pass; d=google.com; s=arc-20240605; b=aQX92Oegu1eBul+faEAGKT4GK2L9DlN0hg5OtsAxMqfw4Kb0//mAWneEicveDhND3+ WF+a9w7or5XnQGJPgBKfW5NjoXASCUI8bKjhpnZtxNi4Awxk4Ti/Mb+cyAYogugfDxGp AunEDquT7QpxrfAJuU3z4oLoNVD8D50eAE9t2NkgdEyelKV2+xshB6mdrayWmqD714U6 58wGqQ2HvOLt41ygRK9+pwlZdC9gdc8AId514wRzpn5x7S9ouo5T0N0ZJm+YB0KuZeIi VU7uvbI4M4T5G9hO8nG881fWwqhIITwOZ+qpTm6U1GRWH8oGJ8gIRqvhbwZYMkxrlvzA YdVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=U+dB88IYEOXGZFoPoH4rjhxgb6Lbjr5NfibipOf+5Us=; fh=vvrjI+tIjG3KB1HnSMcAPLOa3npe8Wly17KDtAOf4qM=; b=FGrb6aoeXvaOmswnQ3s23mm+RkdzTTkTvlmiQLDcV1wGAWdeFXfOFGfkO9Ys6orSo8 Ol7eEc45mcNijUBEF5rn2CSvvrssuBLmghfvK4yJUAO8lcPQ8n82c/CPZUyu7s/Bsj3C vqaAhfwrk2OmuwgYOrJCjXxcQ4sqPBVyEEeNifKHSFNNWgYSuaTcZKKMqQdf5RGe14yi NOYNUgh5aaoLXeFDmdSxN9vjXerEVFVXUoPJ0KEA1JBAf0AY8tZxZCNtpgjfYtsO2vH1 H9JuRjt6pAZIhIFjdMW0K1txKrl6L/YEXwD8YELQxxFjztBz1LbPj28L5cZz7XSJp8j9 VVwA==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=gw2_bookworm header.b="GP5+HYq/"; dkim=pass header.i=@atmark-techno.com header.s=google header.b="Lzc/rcKh"; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.com; dara=fail header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1736216430; x=1736821230; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=U+dB88IYEOXGZFoPoH4rjhxgb6Lbjr5NfibipOf+5Us=; b=NxcUKvt4ly1jnY6JnWQh4fuuuK4vdfGa4Zsk1kGCGfPuvzxV3gjhc6zl6P+GMKSiA9 o5F3S3l+0T8jBAJy92vCXldayO9GVq6dgbbTqCPRSfVY7TT0C4j0ZFUj6w2psSCMGfft PHbvlHiT5i6Uk7+S1EgmVXk2NsCWI808Iun3QbjpVHlJ3E9moahFVc4bVynsoLWLk34e qwtmVSQ+Y3baL/uACzeXR9SYtQpkt/Y8cXM1cvv7+KovR/+S5XrEE+DVVRda13xKA/Qu lC8mcilK8fH5qHgeFQibDJLbdnj2k2QakMi4M7cfHzdqEJebeK5xxbNSKsbW+v5vZfEW QDgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736216430; x=1736821230; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=U+dB88IYEOXGZFoPoH4rjhxgb6Lbjr5NfibipOf+5Us=; b=qZXrKtB7c1gBrMbbWZL36mGbarLPmZICwgros7DjobcUBiWyBXFLmwcOkTQFIME34K 6odquNH7JQgvrivi804d2uw+3QmppDSTBs/aniYOqVqZotiMleuiNn8I9Ki4rHgSMq30 EmR7lyb7ZIq3gzUo/mPWxCXYyTSOa8aEFV4HNOrJXXF3fP/yRWdg15WP9frtIO/QUeFT mzKYLx5tl9fwaelByDg3QhSgolCoTnkvz+MBlCePmvNyiaY9bew2In1A+YGHZ9I2hs9J 4qPdcHOKyksxwaZlrk4hy6pdpl7BrxXe3W077dxY6hdUX586B5/VCenUihwskZQNNz5u 3g6w== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWEveTUnYIn1Ha/DvM249su/mzokY6b6JYQtRzGW2CJKopn+di2DZRUR87tcW8yaLEx9z2ooz20Gg==@patchwork.ozlabs.org X-Gm-Message-State: AOJu0YwKaNeZ1OaeFV6gQPZUGXO5w9MAKqvm2tGbIsYr1WEu5L/f2yJw PiqdRwDOTjVsfdjZnuDCSMzZcdLustzsqXFnYgshSeXvvS8YMFfC X-Google-Smtp-Source: AGHT+IEd4B3TfwRTS6EV4ze1/BNou/UWNo2Gw3Op0DiixYBp6NMoHFISsBkqZ5nx9+ZdZvA8yi9M/A== X-Received: by 2002:a17:90b:5208:b0:2ee:dcf6:1c8f with SMTP id 98e67ed59e1d1-2f452e1814bmr94886918a91.16.1736216430335; Mon, 06 Jan 2025 18:20:30 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:90b:3cc4:b0:2ee:88c0:f7f1 with SMTP id 98e67ed59e1d1-2f51822b106ls2991023a91.2.-pod-prod-08-us; Mon, 06 Jan 2025 18:20:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV38OyOQRKfUJqk8M+QVESE4RFlyGfUEDXh/GWQLD+XaElaNpMEhSp0hGl1hNi0X+KzE9OmnrCNog==@googlegroups.com X-Received: by 2002:a17:90b:2e4a:b0:2ee:fa0c:cebc with SMTP id 98e67ed59e1d1-2f452e38d0emr93433783a91.20.1736216428572; Mon, 06 Jan 2025 18:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736216428; cv=none; d=google.com; s=arc-20240605; b=BKN4gHFnIF+5g6jh2Fq4aijTXGOxVvBnPOeshrOX5CDehN2ITCFzNDbSnbocszcpsq Idk/ciMV73DydTidvK9T54s5QPYgemur4sOhVYLDg4fAM4QeQmf36QAGZRbgO0365cQy U6fadERuhuBseOOe/2MJ688nt3FsB/No22jw2sWCHyS4vHGKzMcCQ0eLjzMo3Mz9K3SA MtYsWk/td/0pwTdK8RWjPME/DnLqBqapZo6WOgZ0d7ky6UH00Qp9bDJRWLu3BFcxe92c YqRV+22D+VMpsMP6wW1p8xW+3ms6+bW8ZtU0M1j17Zf1xlRqmmYvdxJ+01RSyzjFRgSQ 8ebQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=oaEAHznb0iHb6SqJ2rJFiOLmeYbajSNsIlbI/0soGlw=; fh=XUKQgqIEd5blt4S44jvDQzx6jDbZlNMFrGT9Shgv0ZA=; b=Gt6QXTNmu+RRIyBOTx7eTLKWZbjPX3EWqTmb9JaVnpcXFgcrq3UAOeSNuO53SMrtnx uLnn5z7hQDF6YTjPFDHnEp+f/syu1EVuojFg0vU/Ta+8MDHc0eQRWUmidnvTu7NCAomM kgS4j1MvkW04KOQTHUoE8HFQliX7ymvcQtb8g9hH4SsHE/di/BZfPTW5ZV1L6I3b6Gto blrd0wXa29zifS8Ku9zlO16nVR6SC5Eo7moNJ+lXOn1zqD55B4eDsuouPclHz2xhHk7y g2NunG0NhvDmo0Ac18DQdk56DYk+VCKKYxFot/xD+rzjINF4VUG+RSArCrVfG849daOP y8uA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=gw2_bookworm header.b="GP5+HYq/"; dkim=pass header.i=@atmark-techno.com header.s=google header.b="Lzc/rcKh"; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.com; dara=fail header.i=@googlegroups.com Received: from gw2.atmark-techno.com (gw2.atmark-techno.com. [35.74.137.57]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2f53e23a11esi48932a91.0.2025.01.06.18.20.28 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2025 18:20:28 -0800 (PST) Received-SPF: pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) client-ip=35.74.137.57; Received: from gw2.atmark-techno.com (localhost [127.0.0.1]) by gw2.atmark-techno.com (Postfix) with ESMTP id AA0CA4CA for <swupdate@googlegroups.com>; Tue, 7 Jan 2025 11:20:26 +0900 (JST) Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by gw2.atmark-techno.com (Postfix) with ESMTPS id 29E4F4CA for <swupdate@googlegroups.com>; Tue, 7 Jan 2025 11:20:26 +0900 (JST) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-2ef79d9c692so33705628a91.0 for <swupdate@googlegroups.com>; Mon, 06 Jan 2025 18:20:26 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVtqju2zy7OWMeGaRCPeHW1Wuj4UA/63J0Yo9LiAKVkk4+74KFskO/wF8UKAFLmVd6iaDmHXJawxQ==@googlegroups.com X-Gm-Gg: ASbGncsQVf7n4BSaE+l2vYC1TdTBbN1nv+Btmx85VnEw/FL8E+uEFbGEvk6zHMpWrSO XsIwa+29uUhzGk7c3ZKFY0yQGLriZLxuLeSjOqHsytYmFj84gV8s3aM/ZkMyExSyT4jLrtSIIs2 aWkvzUNobKjgwxMu0vQ9jSkh9VW8XCapgU+29B1V5KsuSc+afF4YoWsX54ge+FkdpsF+1pIFtf8 aEcA65pJ+vDJmYCdnu1+/Aemc6MAZLH80PwpPXg3tDXadINe0+lOYePmNixBvszDS7bUCrIAlSZ Q1X0cSorgbRUc47H/yKpWHVsaIjmnlsnM91IC0yT X-Received: by 2002:a17:90a:f950:b0:2ea:5054:6c49 with SMTP id 98e67ed59e1d1-2f452d258bfmr107130612a91.0.1736216425236; Mon, 06 Jan 2025 18:20:25 -0800 (PST) X-Received: by 2002:a17:90a:f950:b0:2ea:5054:6c49 with SMTP id 98e67ed59e1d1-2f452d258bfmr107130592a91.0.1736216425003; Mon, 06 Jan 2025 18:20:25 -0800 (PST) Received: from localhost (145.82.198.104.bc.googleusercontent.com. [104.198.82.145]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f4477c4cc5sm38481119a91.12.2025.01.06.18.20.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jan 2025 18:20:24 -0800 (PST) From: Dominique Martinet <dominique.martinet@atmark-techno.com> To: stefano.babic@swupdate.org, swupdate@googlegroups.com Cc: AFIQE ANUAR <afiqe.anuar@atmark-techno.com>, Dominique Martinet <dominique.martinet@atmark-techno.com> Subject: [swupdate] [PATCH 2/2] copyhandler: add missing unistd.h include Date: Tue, 7 Jan 2025 11:20:08 +0900 Message-Id: <20250107022008.104538-2-dominique.martinet@atmark-techno.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250107022008.104538-1-dominique.martinet@atmark-techno.com> References: <20250107022008.104538-1-dominique.martinet@atmark-techno.com> MIME-Version: 1.0 X-Original-Sender: dominique.martinet@atmark-techno.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=gw2_bookworm header.b="GP5+HYq/"; dkim=pass header.i=@atmark-techno.com header.s=google header.b="Lzc/rcKh"; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.com; dara=fail header.i=@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
[1/2] ipc: add missing unistd.h include
|
expand
|
On 07.01.25 03:20, Dominique Martinet wrote: > close() requires unistd.h include. > > Note that musl does not provide FTW_CONTINUE/STOP, so copy_handler cannot > be built on musl anyway; this is only a theorical fix. > > Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> > --- > handlers/copy_handler.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/handlers/copy_handler.c b/handlers/copy_handler.c > index 222bc9f5cfd3..f888a43baddc 100644 > --- a/handlers/copy_handler.c > +++ b/handlers/copy_handler.c > @@ -24,6 +24,7 @@ > #else > #include <linux/fs.h> > #endif > +#include <unistd.h> > > #include <pctl.h> > #include "swupdate_image.h" Reviewed-by : Stefano Babic <stefano.babic@swupdate.org>
diff --git a/handlers/copy_handler.c b/handlers/copy_handler.c index 222bc9f5cfd3..f888a43baddc 100644 --- a/handlers/copy_handler.c +++ b/handlers/copy_handler.c @@ -24,6 +24,7 @@ #else #include <linux/fs.h> #endif +#include <unistd.h> #include <pctl.h> #include "swupdate_image.h"
close() requires unistd.h include. Note that musl does not provide FTW_CONTINUE/STOP, so copy_handler cannot be built on musl anyway; this is only a theorical fix. Signed-off-by: Dominique Martinet <dominique.martinet@atmark-techno.com> --- handlers/copy_handler.c | 1 + 1 file changed, 1 insertion(+)