Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20711188rwd; Thu, 29 Jun 2023 06:10:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4zw/8ScquXodfCcspGMrQIgiRZ0j/LpHoQlOii5tks8S9lpc03Keh+FnpEqgzOZYua6VoZ X-Received: by 2002:a05:6a20:7d81:b0:12a:cc8:75dc with SMTP id v1-20020a056a207d8100b0012a0cc875dcmr8986447pzj.31.1688044253265; Thu, 29 Jun 2023 06:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688044253; cv=none; d=google.com; s=arc-20160816; b=k+ZXxHLSXo3KbJ0/gIi5X4+rKWGOtpoVKF27ZL2EGyQPDaF0CS3I9P+bPBZmmSJRnu fBMqpg+dDpDyYMYUKQPT4PTnrQpybTxY8QzcpViTozbeE6fsGxQ7DIidTlJNLrdvUget hUd0Z5Mwjpa0TqZwOs7CRHmGfvROTsund7Pgi841j6btNOB7fG7Ne0oNAl3x8jalLxaa lyOfe98CxaiTThS3ol3IEIbUAioocc8METLFNreja3M1Hmd0EzSuBGj98PhzzP8ZHF6t xprwL3XgIArgT5bUvEKuYXszNITlE9u8nZn6xdjyq+EaT1mQ9/KgBZjJSAbym1X7eTQr 5wDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=UUHaYOR2mXOloOMHF3WLMCOR1A2U5vkl9suJPqtiWo0=; fh=BQCdL1k5b2IwlSnJrbTo2Zr2ntXZ/mu7oi2IYkG1zIE=; b=Aqcj2JcKiCLTXmuX314ey2ODMuNkYRzq9NUt9Cww0hq8+h+xM6TR43Xt821yhioJjL hPyCgTyZWBVCG+04s2uB6WU1BYRmvNV8kZF3JBInzwSWKq/dUOaINNSAWtvVVi4H5CLC sd5sZ3L8gbvzFNPhQTB8d1tykn/+KtVB6PPzWPsx/XHkEJWdnRAYHEmwL1TpTanJsaG0 ltqL/7LG6Zj7daPF16OFLNB+6jLqx96l0FWAa3d9oiadQqKnUanlQqkrTRgRREbZSHVd S0EGf+smrsLLBxzLEnSd9sdcao0gA7tvR7ztHuedjlb/KPN2DPYQTNB3smdn4UAIpbXG FmZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=MrZKZHz8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=cw+4bxWp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n124-20020a632782000000b0054ffc2d9fc3si11328911pgn.38.2023.06.29.06.10.37; Thu, 29 Jun 2023 06:10:53 -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=@arndb.de header.s=fm1 header.b=MrZKZHz8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=cw+4bxWp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbjF2NDu (ORCPT + 99 others); Thu, 29 Jun 2023 09:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjF2NDq (ORCPT ); Thu, 29 Jun 2023 09:03:46 -0400 Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 550722D52; Thu, 29 Jun 2023 06:03:45 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 66FAB3200645; Thu, 29 Jun 2023 09:03:43 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Thu, 29 Jun 2023 09:03:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1688043823; x=1688130223; bh=UU HaYOR2mXOloOMHF3WLMCOR1A2U5vkl9suJPqtiWo0=; b=MrZKZHz8n89eIUCcId WXghgyhn+F5Y91JfHNG7h6bRVjajE8fTPAAhjd5yTneIb4wXSmpq1LbKXeSmewdI sjdK3BzECiJ9VsNHc2PNHRoZhm3xRYAm+niXcO3LaQQU4MhSkHRgNL7KekTbhGST XCtAL/9vFB8aEMmwPzbk/lKYaOw3o3ta7pbwYVJoUl4935nDF9T6MZnBnxl2NyE7 45XG/pQFMaOjg4FsJiuQ0OJjKw2rT3OTyLreg4EK69iWblkKDeRqN9hM0nHAreco 4RI2C7HjAM7m3bAIxsusNPU7K1/tqKHlRAu78xIkM/MvkFfL8/VzpTp9irh6eiv1 BUyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1688043823; x=1688130223; bh=UUHaYOR2mXOlo OMHF3WLMCOR1A2U5vkl9suJPqtiWo0=; b=cw+4bxWp1SCuh1Fepi9QaF0if2xkJ 4cVNwE6L2Y8B0BZ4j9mhs/w9CTABQ9uk/lLli7KdPcxXX5GNTfzwwEySah2SpLb8 3Aufg0geWX/HnfgPaOANO2QzCTk7sUuxlOKDej+fIqwnaRnTlWOjf1PvCQRQ1mQ0 CXujhLdJDB5jYKlNYIPiNMNvbVyuShIxf7Z2hPXbTAnwB8HTZUAxnS+3doFVCZfS gmb4I1VMLKW5DeH4sul6m4UUqvsEZj5uqrhNhN+sCrKAZmp5/84QBsLfhkM2pVjK QvJS+nuvgBir+CxBeaUMXNbGK4UqHWvJ/CRH9X+edp1kdt3CdxMbNaTXQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrtdeggdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 688DEB60086; Thu, 29 Jun 2023 09:03:41 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-499-gf27bbf33e2-fm-20230619.001-gf27bbf33 Mime-Version: 1.0 Message-Id: In-Reply-To: <20230629121952.10559-7-tzimmermann@suse.de> References: <20230629121952.10559-1-tzimmermann@suse.de> <20230629121952.10559-7-tzimmermann@suse.de> Date: Thu, 29 Jun 2023 15:03:20 +0200 From: "Arnd Bergmann" To: "Thomas Zimmermann" , "Helge Deller" , "Daniel Vetter" , "Dave Airlie" Cc: linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, "linux-csky@vger.kernel.org" , linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-hyperv@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, Linux-Arch , "Richard Henderson" , "Ivan Kokshaysky" , "Matt Turner" , "Russell King" , "Catalin Marinas" , "Will Deacon" , guoren , "Brian Cain" , "Huacai Chen" , "WANG Xuerui" , "Thomas Bogendoerfer" , "Dinh Nguyen" , "Michael Ellerman" , "Nicholas Piggin" , "Christophe Leroy" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Yoshinori Sato" , "Rich Felker" , "John Paul Adrian Glaubitz" , "David S . Miller" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org, "H. Peter Anvin" , "Chris Zankel" , "Max Filippov" , "Kees Cook" , "Paul E. McKenney" , "Peter Zijlstra" , "Frederic Weisbecker" , "Andrew Morton" , "Ard Biesheuvel" , "Sami Tolvanen" , "Juerg Haefliger" , "Geert Uytterhoeven" , "Anshuman Khandual" , "Niklas Schnelle" , "Russell King" , "Linus Walleij" , "Sebastian Reichel" , "Mike Rapoport" , "Kirill A. Shutemov" , "Zi Yan" Subject: Re: [PATCH 06/12] arch: Declare screen_info in Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 29, 2023, at 13:45, Thomas Zimmermann wrote: > diff --git a/include/asm-generic/screen_info.h > b/include/asm-generic/screen_info.h > new file mode 100644 > index 0000000000000..6fd0e50fabfcd > --- /dev/null > +++ b/include/asm-generic/screen_info.h > @@ -0,0 +1,12 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +#ifndef _ASM_GENERIC_SCREEN_INFO_H > +#define _ASM_GENERIC_SCREEN_INFO_H > + > +#include > + > +#if defined(CONFIG_ARCH_HAS_SCREEN_INFO) > +extern struct screen_info screen_info; > +#endif > + > +#endif /* _ASM_GENERIC_SCREEN_INFO_H */ > diff --git a/include/linux/screen_info.h b/include/linux/screen_info.h > index eab7081392d50..c764b9a51c24b 100644 > --- a/include/linux/screen_info.h > +++ b/include/linux/screen_info.h > @@ -4,6 +4,6 @@ > > #include > > -extern struct screen_info screen_info; > +#include > What is the purpose of adding a file in asm-generic? If all architectures use the same generic file, I'd just leave the declaration in include/linux/. I wouldn't bother adding the #ifdef either, but I can see how that helps turn a link error into an earlier compile error. Arnd