From patchwork Mon May 15 12:45:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18630 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 429B4BDE6B for ; Mon, 15 May 2023 12:45:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 712C66286D; Mon, 15 May 2023 14:45:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1684154755; bh=aaZMqUPcooHCbX/fwLlmEMqE0g1nrz40v8z9hWQhgWE=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=HRh0x1FC5ALEZH1zJ4x7RWrEe/QWLmjnwE6cDYBi+LZdv5MSg0xi9F5esIdQeKKXd C+FgexVoY5wSvi3WEBfmBx3wjzVLR+f3f9QeMTOSifAhtB3iQNAggm9ecpPE8y6++g qYsMnCu7Vwj9WKyXMM0skKm7dOis8ywVwgbSYTWw6x4sdbKCJfjToPZ5uHC1zuljAp cq8Elbj3+4ks7ifkQy1NWEOqG4VGJxOLtlAw4qd6bdS0U/Rx3Bw5+jR1NA5sglrw8b 8X6KpkTCJi1+zSP8dfhIRKIu6JOkMksmtQR5/vaogShh7u7BDXvuskcBYiGEr4vy04 faoRbYsSofGmQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EDE4F60493 for ; Mon, 15 May 2023 14:45:53 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="AVmXYFMI"; dkim-atps=neutral Received: from Monstersaurus.local (aztw-30-b2-v4wan-166917-cust845.vm26.cable.virginm.net [82.37.23.78]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2256D7E1; Mon, 15 May 2023 14:45:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1684154743; bh=aaZMqUPcooHCbX/fwLlmEMqE0g1nrz40v8z9hWQhgWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AVmXYFMIsp11qhVQniD/L6WzYPcqfm+Rr9nXVbi3oT4V+xOcdh7UiLIJzicK0qevq AmZ6QPTHQioh+3dDt5uIcVMg0l3SR4N/ZnnLCkbIRR5whShz5hAmsznu+Zrl5BNPh/ D/0Pq7QyyxfPncXD+SXRzUW7rCJ6KKfpoNNPBnco= To: libcamera devel Date: Mon, 15 May 2023 13:45:46 +0100 Message-Id: <20230515124550.3601128-2-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230515124550.3601128-1-kieran.bingham@ideasonboard.com> References: <20230515124550.3601128-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 1/5] libcamera: internal: request: convert to pragma once 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: , X-Patchwork-Original-From: Kieran Bingham via libcamera-devel From: Kieran Bingham Reply-To: Kieran Bingham Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Remove the verbose #ifndef/#define/#endif pattern for maintaining header idempotency, and replace it with a simple #pragma once. This simplifies the headers, and prevents redundant changes when header files get moved. The internal/request.h was missed at the time of the original conversion. Update it. Fixes: df131ad08893 ("libcamera: internal: Convert to pragma once") Signed-off-by: Kieran Bingham Tested-by: Ashok Sidipotu Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- include/libcamera/internal/request.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/libcamera/internal/request.h b/include/libcamera/internal/request.h index 8c92a27a95e5..3454cf5a72f5 100644 --- a/include/libcamera/internal/request.h +++ b/include/libcamera/internal/request.h @@ -4,8 +4,8 @@ * * request.h - Request class private data */ -#ifndef __LIBCAMERA_INTERNAL_REQUEST_H__ -#define __LIBCAMERA_INTERNAL_REQUEST_H__ + +#pragma once #include #include @@ -62,5 +62,3 @@ private: }; } /* namespace libcamera */ - -#endif /* __LIBCAMERA_INTERNAL_REQUEST_H__ */