Message ID | 20230706104852.27451-4-tzimmermann@suse.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2468440vqx; Thu, 6 Jul 2023 03:58:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEZcP98+XH83DtxJf2K5wGAXLAUQBZdtE7F/HE9FTGZBZQ1++3asYci6RpikM/QGHYPyh1Q X-Received: by 2002:a05:6358:9147:b0:133:4ce:4e8c with SMTP id r7-20020a056358914700b0013304ce4e8cmr2066738rwr.29.1688641122944; Thu, 06 Jul 2023 03:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688641122; cv=none; d=google.com; s=arc-20160816; b=enQu4v53j3sAead8Qk19BMsDzOmQhEMQD0rB57L7VxLIBuRTp37lhcxH0ZNWuDKb9H QOlsSoXONsvYaPTbn+e/AvayRqmdJAqKbSHzlWOX9X15cVS0LuGTm9QLLn02KnHcgaK+ OKCIRRcRAf1HAc6vFq1KDWy1wS/9EJU/7qa8kkNaeiRAa7i9ZX+4aHCNWOnH/XJRQq2u niuPAKQa2o77HkFm34/LJeNLB8EXGI8VBLOipr1tDB1TN3c0KrEB7QsLjC9jgM2Ah/Gy RUT0YzqKxUY2rF34rCZpIhST6bII/EgCddbic4LSWb1gDV8nG63v+KdCEBonpcGaM366 yU6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=xwwhn8JX/jaC7vprMJX0+rkxovL4+/4Sgyu5JA1iVnM=; fh=EchjRNzqUIAVfyg3CKSIYOVw9uqNuitG7SjWWw5kvbU=; b=INmQqie/MwJ8y/m7MDS7ldN1oxgBa+QEou1PjEdGv/hvbOL5hmce2MnGX8zEsCjizR RpyDaTTqCZvgFNBTYtiTcgU7WDDk15KRpfP9qP5y5IsrDq5n6ydtZwM2EzPrEAtsc9R6 i02CIaFZPq6Qh265NdM9HZ0lH3FNwT5fRzjdPrVfsOO+LaHQYJboWkGyV02nZscva0kY ufp8mrHTT9ioJIJaSWxQFmb5XHk574tANeB7HM/lQMhwXF4rbcNnxJheazA4iH4qfYGJ SL4MwJ8b1MIFWawJ46yHPZn92nMiZcRrTxxx3FJYuKsckaA+nn4khMk9zOIbpbJ6O5dS hKDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0SL+mut3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fc8-20020a056a002e0800b0066215192dd4si1248776pfb.295.2023.07.06.03.58.27; Thu, 06 Jul 2023 03:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=0SL+mut3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232097AbjGFKtK (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 06:49:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231935AbjGFKs7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 06:48:59 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782741BD0; Thu, 6 Jul 2023 03:48:56 -0700 (PDT) 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 83488204EB; Thu, 6 Jul 2023 10:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1688640535; 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=xwwhn8JX/jaC7vprMJX0+rkxovL4+/4Sgyu5JA1iVnM=; b=0SL+mut39oD7upwmekC2cod5inLkF+A7wEKXL/i570Bc/EYE6SZSzIvC6lUDZ7XDs3cBPA E0iwHyZ/LV7xrlAbjP1iUe5gSdC2wrHdGMiYiOihAOxX2i1fFvJqA5vgUtE8m0aBKv5v4V t+4ye0+mlbONYj4OUIGNS0c8lbYJToM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1688640535; 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=xwwhn8JX/jaC7vprMJX0+rkxovL4+/4Sgyu5JA1iVnM=; b=7bw7LXsdPK85ac+mMiOd0w5qarJyfZcL2cVBdd1EY/68L8JhY6THwbQLqkQugdZMOcI/eU 2yfPqnbQo59xlpBg== 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 47CD41390F; Thu, 6 Jul 2023 10:48:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SBGqEBecpmSDAQAAMHmgww (envelope-from <tzimmermann@suse.de>); Thu, 06 Jul 2023 10:48:55 +0000 From: Thomas Zimmermann <tzimmermann@suse.de> To: javierm@redhat.com, suijingfeng@loongson.cn, arnd@arndb.de Cc: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, dri-devel@lists.freedesktop.org, Thomas Zimmermann <tzimmermann@suse.de>, Ard Biesheuvel <ardb@kernel.org>, Hans de Goede <hdegoede@redhat.com> Subject: [PATCH v2 3/4] sysfb: Do not include <linux/screen_info.h> from sysfb header Date: Thu, 6 Jul 2023 12:42:16 +0200 Message-ID: <20230706104852.27451-4-tzimmermann@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706104852.27451-1-tzimmermann@suse.de> References: <20230706104852.27451-1-tzimmermann@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770668554446752501?= X-GMAIL-MSGID: =?utf-8?q?1770668554446752501?= |
Series |
Remove unnecessary includes of <linux/screen_info.h>
|
|
Commit Message
Thomas Zimmermann
July 6, 2023, 10:42 a.m. UTC
The header file <linux/sysfb.h> does not need anything from <linux/screen_info.h>. Declare struct screen_info and remove the include statements. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn> Cc: Ard Biesheuvel <ardb@kernel.org> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Javier Martinez Canillas <javierm@redhat.com> --- include/linux/sysfb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Thu, Jul 6, 2023, at 12:42, Thomas Zimmermann wrote: > The header file <linux/sysfb.h> does not need anything from > <linux/screen_info.h>. Declare struct screen_info and remove > the include statements. > > Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> > Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> > Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn> > Cc: Ard Biesheuvel <ardb@kernel.org> > Cc: Hans de Goede <hdegoede@redhat.com> > Cc: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/include/linux/sysfb.h b/include/linux/sysfb.h index c1ef5fc60a3c..19cb803dd5ec 100644 --- a/include/linux/sysfb.h +++ b/include/linux/sysfb.h @@ -9,7 +9,8 @@ #include <linux/kernel.h> #include <linux/platform_data/simplefb.h> -#include <linux/screen_info.h> + +struct screen_info; enum { M_I17, /* 17-Inch iMac */