From patchwork Wed May 8 08:04:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 20017 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D9E46C32CB for ; Wed, 8 May 2024 08:04:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 56EF963448; Wed, 8 May 2024 10:04:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="lsGyO3ah"; dkim-atps=neutral Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 50A0E63440 for ; Wed, 8 May 2024 10:04:05 +0200 (CEST) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-41b7a26326eso29417915e9.3 for ; Wed, 08 May 2024 01:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1715155445; x=1715760245; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jVX4VhJ4L0dZzf1MZ7MztEMJwO+LuD8IPNPIkNcynTQ=; b=lsGyO3ahpbgEXKWEJ9h9KFWOGkHFE44jScgonkIFLZ+kWXgcQeeWKxRGtmA2HJh3Hn HOr3sJp0Zb2T+wH+JTehUpEzZw+FVrM2YZzTxLvB4/5004q4tO9NFEXnGb3LCw2/O2BW rByd6Ng87PioK15xID4qXjz5bOB5+UUfN9UOFBBsyfMedj75F63YFq8vGdaWY7nf/8gb YpTzcDgwn/lbrBn1gB+GPr5aTdRtEQymgQI38KhtLPDXSUAiVsqxHqZv/+3se6wTONJZ NFXM2oH0FYfDMrHbJBTaEV9yZxPXt6kUPcjSjqBYxdNLzQcuQZiWCoDY2XzEA/fuCnRN EWaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715155445; x=1715760245; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jVX4VhJ4L0dZzf1MZ7MztEMJwO+LuD8IPNPIkNcynTQ=; b=KgMqgqGAgp48mcEGSIDNcqMPRgOZx2+oDwHBJaqZsV2Dz7UBfgV7kp1R/S+Ebf/4tX fD34PZ78VCdB4tEX8MwjTa7JmTINuQXh2uZL2uNREmAS6WY7YT/7Iz3N8MowSnjsYDtW hqQ0hTUOEMSrpnqRtLRtoa+0IisPMO6kAuLPvtrZyHRyHlw+pTICj6FPBBDZwUTj388P Gnh3v08CqZxB3bZOwfj9BKvFj5kkeAlQjqapopt+HaP4GlvCV52LhFC2lTNBDsJ0D/25 dihEuIRItUNFcKDLSCGIBIA2kwJECaoj0nWht7SzzDXIuDHEg5dvDmpu6JjYXkAbNrv0 Fi5A== X-Gm-Message-State: AOJu0Yz9+Smkpl0QudKP4OFcSOaLE5UEkPtVzICoLlRJkCta6VtLKypj wQ0RZIrnRSQAkcP/lDZET4ORb41to8dQRe5ri8gUgm02F8erSypCW7owuE3a1OzTp+inHn80qH7 5 X-Google-Smtp-Source: AGHT+IFA8Uj+UtZHyMEP8r1vYhuMDNxv8xuZXrI3rAHZy7jtsbwhFh2rhcLmjxVxXyD9r9y59G4hqg== X-Received: by 2002:a05:600c:5808:b0:41b:cc7d:1207 with SMTP id 5b1f17b1804b1-41f71ec26abmr15538075e9.19.1715155444710; Wed, 08 May 2024 01:04:04 -0700 (PDT) Received: from localhost.localdomain ([188.39.149.98]) by smtp.gmail.com with ESMTPSA id w16-20020a05600c475000b0041c14061c71sm1351944wmo.15.2024.05.08.01.04.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 01:04:04 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Cc: Naushir Patuck Subject: [PATCH v2 6/6] libcamera: shared_mem_object: Remove is_standard_layout restriction Date: Wed, 8 May 2024 09:04:01 +0100 Message-Id: <20240508080401.14850-7-naush@raspberrypi.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240508080401.14850-1-naush@raspberrypi.com> References: <20240508080401.14850-1-naush@raspberrypi.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The shared_mem_object may be used to construct complex classes, so remove the standard layout type restriction. Signed-off-by: Naushir Patuck Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham --- include/libcamera/internal/shared_mem_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libcamera/internal/shared_mem_object.h b/include/libcamera/internal/shared_mem_object.h index 9b1d939302a8..c9c0482062bd 100644 --- a/include/libcamera/internal/shared_mem_object.h +++ b/include/libcamera/internal/shared_mem_object.h @@ -56,7 +56,7 @@ private: Span mem_; }; -template::value>> +template class SharedMemObject : public SharedMem { public: