From patchwork Mon Jan 9 10:12:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13093234 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08B86C5479D for ; Mon, 9 Jan 2023 10:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HB87DlW5yef0M+p0IjTwhNcrxtKQj+Tf8tAVHu0NtxM=; b=ip6+kjT5G0j/RR HY5U5hVnewCe/ArvxaMKjjGB7HKyNkTjjvt53nJx8igL7BaOTi7PODfz0iKZHcnNFPAWWEhO0UeRg NAKaUokkaFc6vZ3BMihNeLEkH8oKLZXx1KY1GflL3X3Z7ouZWm/61fK8fV0U3MsU6LlkU7fbbrUOq HSEioXKCeH7SlBCgLhbDXF5SZw4XQ9PDY096mds2ITfqGjEV2U6qsvuIwXmLWEs/XCNscVcyToPEL 36y9+9OPRfO0lb64VCVqQJvucxYEdGqydzMOwHp63wMonKAYsDGmApCHxSMtTS97DdHbpndwi4n42 88OaXN6igNTHics/YzVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEp9s-000jc8-I7; Mon, 09 Jan 2023 10:13:36 +0000 Received: from smtp-out2.suse.de ([2001:67c:2178:6::1d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEp9A-000jEw-2h; Mon, 09 Jan 2023 10:12:58 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 950B27630E; Mon, 9 Jan 2023 10:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673259166; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sEg6KiW/hSxsybeiSe/oAex8XdWQoHDUu+xodpfYi+w=; b=0N/qs/C4B8vSBRMPIe2Q6iOTGQbZXvB4Cn6pwGEsBW4TyeldBLqt1XRFewNsHSlg4qiC/w LisbqFcnoaIgvBJujlgjvK1Lf8ljxatfyvTReP9D/YPGf/SXpo/twk0cr2VpMr7qYTcg4m LhHx/Z0FODAOZtFf03c2LkxSxj7dSmY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673259166; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sEg6KiW/hSxsybeiSe/oAex8XdWQoHDUu+xodpfYi+w=; b=TvcJWaXILnW0V4Nc1Vehn5GVk8MWx8+nWZ8TkfYjglSslbj7HXaRTlK404WVx4h3zlYEiE DjOxZhBg1wIHoBCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4BF3713583; Mon, 9 Jan 2023 10:12:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id aNykEZ7ou2O3EwAAMHmgww (envelope-from ); Mon, 09 Jan 2023 10:12:46 +0000 From: Thomas Zimmermann To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@gmail.com, daniel@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, patrik.r.jakobsson@gmail.com, thierry.reding@gmail.com, sam@ravnborg.org, f.fainelli@gmail.com Cc: dri-devel@lists.freedesktop.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, amd-gfx@lists.freedesktop.org, Thomas Zimmermann Subject: [PATCH 5/5] drm: Include in drm_modes.c Date: Mon, 9 Jan 2023 11:12:43 +0100 Message-Id: <20230109101243.26995-6-tzimmermann@suse.de> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230109101243.26995-1-tzimmermann@suse.de> References: <20230109101243.26995-1-tzimmermann@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_021252_301437_0391D619 X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Include in drm_modes.c for of_property_read_u32(). Until now, the OF header got included via . Also comment on the reason for still including . The header file is still required to get KHZ2PICOS(). The macro is part of the UAPI headers, so it cannot be moved to a less prominent location. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_modes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index be030f4a5311..40d482a01178 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -31,10 +31,11 @@ */ #include +#include +#include /* for KHZ2PICOS() */ #include #include -#include -#include +#include #include