From patchwork Thu Jun 15 17:26:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 18738 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 58F00C322E for ; Thu, 15 Jun 2023 17:26:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1F53A628B6; Thu, 15 Jun 2023 19:26:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1686849979; bh=UWg16aKjq9hZguPIsJUHsMnOeEtA2mQX06lQp7MG3yM=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Z9Fu+swT2kHbYB7AHCUwagI8XmRCnNPJ7LI/ZRAPvoOAsDnrh8kVBMS06wnsIrQqC h+uwoli3QZGf1nWXiU/MJ8AtGNgJyP3tzJ4O5scuSpcCKDlM6Q1WlInzc3mQUbCoKq bnBSDaGAQL0Oz0pa8qwuNv4JYyZAnU+6XACxrLWbjVsuQZu9NrSAQ5IkpaUxqGpTFz 67Y3j3iJBM5HmIUD/LWutPgas+msDX4OLOSC8jvruVIvcY51Sys5YtK839ki1CV+iw ainAol6NWsItFK8ieeezkgwb44TDYHYgtg8PY1X0XObc7Gejd8jUMApQ5DpM5tGxWC sNbNKbE9SmwjQ== 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 0E705614FE for ; Thu, 15 Jun 2023 19:26:16 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="cro3J0hD"; 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 3F8ACDA8; Thu, 15 Jun 2023 19:25:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686849944; bh=UWg16aKjq9hZguPIsJUHsMnOeEtA2mQX06lQp7MG3yM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cro3J0hDPoeVGlnB/8Mdoy0kZ9EOySQUzPfY74+12Z6vikDhVx5LSIuCR+VYanR/q IMaTuzxGqeiGUEXnXpg4VYzpM/n/WPXwdm9NjHj2acHEe78MTbwBtqiTTPVLcp+gf1 LH/rqH6YJlOKG2YOtDMFIEyMd47QjFL1y78AVpPo= To: libcamera devel Date: Thu, 15 Jun 2023 18:26:04 +0100 Message-Id: <20230615172608.378258-2-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230615172608.378258-1-kieran.bingham@ideasonboard.com> References: <20230615172608.378258-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 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 Cc: Jacopo Mondi , Ashok Sidipotu 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") Tested-by: Ashok Sidipotu Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Signed-off-by: Kieran Bingham --- 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__ */