Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp171202rwb; Thu, 1 Dec 2022 00:12:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ADbRGnppM7npM485UiCUP3Ig+6Voi+nzxiS62rtrGE53NacE5mo4jtbylxgO6at+Qjy3I X-Received: by 2002:a17:906:f2c8:b0:7bc:1506:f42a with SMTP id gz8-20020a170906f2c800b007bc1506f42amr27807322ejb.188.1669882346899; Thu, 01 Dec 2022 00:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669882346; cv=none; d=google.com; s=arc-20160816; b=kwudtkYm7VQ0CLnVjQvNxAE9SWXiMBzewrTxxFD+isSTdfPSHH1WBJZamWw0zUCLsI C65PhLaXTG+9fSnWRQWgB0Xx61lqdPNjhevmTZ1uF1V9FqC4KdaO/wTjIymMq1rzm1vw uxmZTzrIpJAR8VgpFFtIfy4XgtYblqr2b04VGPvRKIcgjX8BUz4CdzDrQ7QfN0FQagna ALYPNsEYid1I8A1g7d+lkcvHmc4OyEI4/1I+JFhQ12pKMCblm71rzkl8xtT08JGcyfs8 HlWwXdMOKx2J9TQAQsZ+uMDMILttnpIIAw/pWJeurlmsYbDnzyreO+d5e/1Gf0NyyXuQ Q2vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=JFAPuqcwWjdRWHghvojHwi7McW1O9DfKJ+K3EY3dLBA=; b=ATYRdQ+984UBctFmZQcBGpgrB577Fv6AQiidXjG5d9fdXwSKJebzzXKbvKUr+QeZ3Z 58U+JPxmmGMN06msyWTkHqrcAcxd6P0XT578eNNqVb80onjHC++UBGrSXJYTN2WG9gl0 VnjSmkhXPLv7yuBFwxGqcU2wHybc1r3IoWLcItdclYJaUb3uP9u9RnEuG1fU6jNdP5NS Jj3NrpurLb/ktsJqW1tVC2VC5zyFbvHzYl0SZqi/QlJ43k/oTzk0cND/dH/adgCpvg1I 6EFJalXRWVw0AgEjcNGf2cfiDnkuGWLlKzlv+KWXWVMoX9mLMFGrkXPjxM5h/Gm4IR9t 9bxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b="IXXS/ihD"; 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=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a05640217d600b00458264c2df2si3187434edy.164.2022.12.01.00.12.06; Thu, 01 Dec 2022 00:12:26 -0800 (PST) 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=@gmx.de header.s=s31663417 header.b="IXXS/ihD"; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbiLAH73 (ORCPT + 82 others); Thu, 1 Dec 2022 02:59:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbiLAH6x (ORCPT ); Thu, 1 Dec 2022 02:58:53 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CE9F3AC21; Wed, 30 Nov 2022 23:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1669881435; bh=1TG7t7iGxI5iBeZfr7K40KtO8/tCvEl9OlJVEZXqzdw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=IXXS/ihDLD5r8o14UFrcAyCArHgi7HmLAv0BnsoiEfOZGjm0P1u5N1fUE2XmKrbTa Q2WMF07+M3Cu6d5qGgtxj7Eh8cqCrg4Kf1x+xLQweirrBP6N5gL0cckat36ref6v+A dH0vLbZ0xBUoMlaBzfd/u+yZi0ZtH9qLljT3UiBT9ww17bxSB5q8dE3DUD4IIjGWA2 MLevw/Z8GKp9pblHcEr3SnlT7PZPZZaEDNDGxXioAiaPCaTDiWljB/UR4dnlt4AKZC 24GzfmzwAzqSNoIuAe/0WAJ4599Z5CntJSSZkL4N5JvIzd/qRdRiOCMxzTFNB1qAMg 9pp7Jh0RefuhA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.20.60] ([92.116.178.52]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MNKlu-1pKu2r1YOA-00OmnK; Thu, 01 Dec 2022 08:57:15 +0100 Message-ID: Date: Thu, 1 Dec 2022 08:57:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 1/2] fbdev: geode: don't build on UML To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Johannes Berg , Richard Weinberger , linux-um@lists.infradead.org, Daniel Vetter , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Andres Salomon , linux-geode@lists.infradead.org References: <20221130215544.28497-1-rdunlap@infradead.org> Content-Language: en-US From: Helge Deller In-Reply-To: <20221130215544.28497-1-rdunlap@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:PpGogZnW6HhwaMr7tc/5/1UjEN/jHdMDXMece1a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MwpROxvcXD+W2X0hh4Bvcfu/U1ffT/tlIsGSIp7U+C aBQDmZsh0aaaaNgqb7kdl3spPh75hba0jk1e+xbn7D4BlngYDPdtxLhtQBSnnuZGzhrvP55UF 7lXH5zWou3FdKyj4IS80Xh2Zb+k= X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 11/30/22 22:55, Randy Dunlap wrote: > The geode fbdev driver uses struct cpuinfo fields that are not present > on ARCH=3Dum, so don't allow this driver to be built on UML. > > Prevents these build errors: > > In file included from ../arch/x86/include/asm/olpc.h:7:0, > from ../drivers/mfd/cs5535-mfd.c:17: > ../arch/x86/include/asm/geode.h: In function =E2=80=98is_geode_gx=E2=80= =99: > ../arch/x86/include/asm/geode.h:16:24: error: =E2=80=98struct cpuinfo_um= =E2=80=99 has no member named =E2=80=98x86_vendor=E2=80=99 > return ((boot_cpu_data.x86_vendor =3D=3D X86_VENDOR_NSC) && > ../arch/x86/include/asm/geode.h:16:39: error: =E2=80=98X86_VENDOR_NSC=E2= =80=99 undeclared (first use in this function); did you mean =E2=80=98X86_= VENDOR_ANY=E2=80=99? > return ((boot_cpu_data.x86_vendor =3D=3D X86_VENDOR_NSC) && > ../arch/x86/include/asm/geode.h:17:17: error: =E2=80=98struct cpuinfo_um= =E2=80=99 has no member named =E2=80=98x86=E2=80=99 > (boot_cpu_data.x86 =3D=3D 5) && > ../arch/x86/include/asm/geode.h:18:17: error: =E2=80=98struct cpuinfo_um= =E2=80=99 has no member named =E2=80=98x86_model=E2=80=99 > (boot_cpu_data.x86_model =3D=3D 5)); > ../arch/x86/include/asm/geode.h: In function =E2=80=98is_geode_lx=E2=80= =99: > ../arch/x86/include/asm/geode.h:23:24: error: =E2=80=98struct cpuinfo_um= =E2=80=99 has no member named =E2=80=98x86_vendor=E2=80=99 > return ((boot_cpu_data.x86_vendor =3D=3D X86_VENDOR_AMD) && > ../arch/x86/include/asm/geode.h:23:39: error: =E2=80=98X86_VENDOR_AMD=E2= =80=99 undeclared (first use in this function); did you mean =E2=80=98X86_= VENDOR_ANY=E2=80=99? > return ((boot_cpu_data.x86_vendor =3D=3D X86_VENDOR_AMD) && > ../arch/x86/include/asm/geode.h:24:17: error: =E2=80=98struct cpuinfo_um= =E2=80=99 has no member named =E2=80=98x86=E2=80=99 > (boot_cpu_data.x86 =3D=3D 5) && > ../arch/x86/include/asm/geode.h:25:17: error: =E2=80=98struct cpuinfo_um= =E2=80=99 has no member named =E2=80=98x86_model=E2=80=99 > (boot_cpu_data.x86_model =3D=3D 10)); > > Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver") > Signed-off-by: Randy Dunlap > Cc: Johannes Berg > Cc: Richard Weinberger > Cc: linux-um@lists.infradead.org > Cc: Daniel Vetter > Cc: Helge Deller > Cc: linux-fbdev@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Cc: Andres Salomon > Cc: linux-geode@lists.infradead.org applied. Thanks! Helge > --- > drivers/video/fbdev/geode/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/drivers/video/fbdev/geode/Kconfig b/drivers/video/fbdev/geode/= Kconfig > --- a/drivers/video/fbdev/geode/Kconfig > +++ b/drivers/video/fbdev/geode/Kconfig > @@ -5,6 +5,7 @@ > config FB_GEODE > bool "AMD Geode family framebuffer support" > depends on FB && PCI && (X86_32 || (X86 && COMPILE_TEST)) > + depends on !UML > help > Say 'Y' here to allow you to select framebuffer drivers for > the AMD Geode family of processors.