From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7035BC433DB for ; Wed, 17 Feb 2021 04:56:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2B4AE64DFF for ; Wed, 17 Feb 2021 04:56:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231411AbhBQEz6 (ORCPT ); Tue, 16 Feb 2021 23:55:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:41360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbhBQEz4 (ORCPT ); Tue, 16 Feb 2021 23:55:56 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 845C564DE9; Wed, 17 Feb 2021 04:55:14 +0000 (UTC) Subject: Re: [SPAM?]Re: arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared To: Arnd Bergmann , kernel test robot Cc: Arnd Bergmann , kbuild-all@lists.01.org, "linux-kernel@vger.kernel.org" References: <202102121331.d4C0ShlS-lkp@intel.com> From: Greg Ungerer Message-ID: <2903dec9-b21d-9d91-0ad9-045bd9b2afd4@linux-m68k.org> Date: Wed, 17 Feb 2021 14:55:12 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, On 12/2/21 8:05 pm, Arnd Bergmann wrote: > On Fri, Feb 12, 2021 at 6:48 AM kernel test robot wrote: >> >> FYI, the error/warning still remains. > >> | ^~~~~~~~~~~~ >> arch/m68k/68000/dragen2.c: In function 'init_dragen2': >>>> arch/m68k/68000/dragen2.c:73:16: error: 'screen_bits' undeclared (first use in this function) >> 73 | LSSA = (long) screen_bits; >> | ^~~~~~~~~~~ >> arch/m68k/68000/dragen2.c:73:16: note: each undeclared identifier is reported only once for each function it appears in > > This problem existed before my patch, I just moved the line to another file. > To fix it, one needs to test on real hardware and figure out what is supposed > to go in there. > > The bug was apparently introduced in linux-2.5.70 in this commit: > > commit 2b1a7e97c8c2d6330a432cbcaf83a0ef5fab848e > Author: gerg > Date: Mon May 26 16:45:57 2003 +0000 > > [PATCH] fix m68knommu DragonEngine2 target setup code > > Numerous fixes for the m68knommu DragonEngine2 setup code. > > It was out of date relative to more recent kernels. Original patches > from Georges Menie. > > BKrev: 3ed244c5dPVeFKP63b4kkeS_rEshag Digging around a bit I think the screen_bits data structure was originally in a screen.h file that was generated from a screen.xbm file. That was removed in commit 0c0e6db80683 ("m68k: drop unused parts of 68VZ328 Makefile"). Obviously no one seems to be using this, that has been broken for a long time now. I could restore the generated screen.h here, so this could compile at least. I don't have any of the hardware supported in the arch/m68k/68000 directory, so I can't test anything we fix in there. The other option is to remove the dragen code altogether. Regards Greg