Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp981110rwo; Wed, 2 Aug 2023 07:07:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlF5xEcP3A4wiL7p2nJik7rVqOT+ZB78Y4eCzqOZE8l//mnl7i+JqicYqolc6VBLDARLmKqw X-Received: by 2002:a17:902:b90a:b0:1bb:5d9a:9054 with SMTP id bf10-20020a170902b90a00b001bb5d9a9054mr15429509plb.12.1690985244233; Wed, 02 Aug 2023 07:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690985244; cv=none; d=google.com; s=arc-20160816; b=hyv1L0jjghgX+bV8bts1acDkzia3VVQ+Y5UJF61n9XdakcLZI+mME5lfCkjIhDbr4M b2ji9KBMMAfiIruSbmny2yuOaGHlJhrqDkeC8xOYFeTyHtkA1ozNTcRjUOsLs8D0qt6I erqdjEmZl0SXZHLEmOe4276ft3KEU0yeHPcqOMXt/3jKnuX1ZHPhc7NSioZlZF3Ko2XE mXSOH7OPUAQmfgYmV2k3u4QtDFyXfqT1b7ttAyAlLnzNd+UaCfS4BRz3IsJw3zTXY+ii bB4Fo3R+yD3MVcAroBpWGyq93/1ovcB7IunA6wFsHJZuExYu+zsXA5PNLFmVM8C5w8XK ozLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=hx293ly0ztTmbWHyDE9+yBFWdbMzXc86QGVk6E13LeQ=; fh=wrTqNpzGU8PPZiZXKO/9P1zZ15yQLmgTRXEFsVrUlhI=; b=E9kLCraRZlGt8yZpuUGJDjskftuoCC+Zjo0N7YB0xmfga9GwTx8JUV0zyAo+ZU54Dj aehWqnSduQHzRZd52mV2c+0ThA1ECtnPB08njtWkTrEDXydjXFd7SoC3nZLE+Bf8rk1e dwHlC3NUpd6p8AAjiHykVkq+hnl7FXzb6nUJnNWy5rzqdJzh5bL/MJ44gQ9z6/Fa3sDH yVyc1CIXb2NzD0TVuZ1Rk/QTCX6MP/9HSnO+JlDYE3RmOCIMS1ZqgToaqcMsn1wnOdnq vqkWeR35uP3BkOMF7SNkaehFUuRoHNkBzFNrfuz+QfqL89sNRO9+mPsgzXrTYlQmHb+c bDIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=T4tXubGe; 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 o6-20020a170902d4c600b001b85ca73574si3997894plg.285.2023.08.02.07.07.08; Wed, 02 Aug 2023 07:07:23 -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=@ellerman.id.au header.s=201909 header.b=T4tXubGe; 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 S232227AbjHBMTw (ORCPT + 99 others); Wed, 2 Aug 2023 08:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232192AbjHBMTv (ORCPT ); Wed, 2 Aug 2023 08:19:51 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFCDD269D for ; Wed, 2 Aug 2023 05:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1690978783; bh=hx293ly0ztTmbWHyDE9+yBFWdbMzXc86QGVk6E13LeQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=T4tXubGeRV4uyhwNbNMEMUyP8RuTy9mqvwAZND3SiLeHhlNby08bNIXToLZ2Szv5C YoxtqE5VLcMVvaoTRXZEkacOL3UfXl1Yd7jcOldgq0TKdx1wPGMM5Y9g4cCrVr7faV yQjFI9vHUVlnX0yIoi3udL65YoCgZZWpb9vRdeBfrc0zCrbkvmgmKSUsK/XuGoo8o2 QI9HsdF1JIyAPTxyIzM0khvr9CQBtcyv3LSLCqSDhRG+Glbhwxh0vSan8MTrCY/HT1 yZcfk+auGp2zTeI4O+aKo0hzu4zH6aj4YVcBvt2YQVq+4UUEybOkfJDAOg85rRvNOB ARVa6QjhLnpNA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4RG9yk3ZJlz4xJx; Wed, 2 Aug 2023 22:19:42 +1000 (AEST) From: Michael Ellerman To: "Dr. David Alan Gilbert" Cc: npiggin@gmail.com, christophe.leroy@csgroup.eu, sam@ravnborg.org, benh@kernel.crashing.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Use shared font data In-Reply-To: References: <20230725000141.165985-1-linux@treblig.org> <878rb0em3s.fsf@mail.lhotse> Date: Wed, 02 Aug 2023 22:19:41 +1000 Message-ID: <871qgl1vs2.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 "Dr. David Alan Gilbert" writes: > * Michael Ellerman (mpe@ellerman.id.au) wrote: >> linux@treblig.org writes: >> > From: "Dr. David Alan Gilbert" >> > >> > PowerPC has a 'btext' font used for the console which is almost identical >> > to the shared font_sun8x16, so use it rather than duplicating the data. >> > >> > They were actually identical until about a decade ago when >> > commit bcfbeecea11c ("drivers: console: font_: Change a glyph from >> > "broken bar" to "vertical line"") >> > >> > which changed the | in the shared font to be a solid >> > bar rather than a broken bar. That's the only difference. >> > >> > This was originally spotted by PMD which noticed that sparc does >> >> PMD means "Page Middle Directory" to most Linux folks, I assume that's >> not what you meant :) > > Ah, any good TLA is ripe for reuse: > https://pmd.github.io/pmd/pmd_userdocs_cpd.html Thanks. Unfortunately this patch causes a warning: WARNING: unmet direct dependencies detected for FONT_SUN8x16 Depends on [n]: FONT_SUPPORT [=y] && FRAMEBUFFER_CONSOLE [=y] && (!SPARC && FONTS [=n] || SPARC) Selected by [y]: - BOOTX_TEXT [=y] && PPC_BOOK3S [=y] And breaks allmodconfig with: ld: arch/powerpc/kernel/btext.o:(.toc+0x0): undefined reference to `font_sun_8x16' make[3]: *** [../scripts/Makefile.vmlinux:36: vmlinux] Error 1 I guess the Kconfig logic needs some more work. cheers