Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6669007rwl; Tue, 4 Apr 2023 17:09:30 -0700 (PDT) X-Google-Smtp-Source: AKy350YOxgnkW1uN2iQ/BnN/QxFFCA7j/YqOwCveO3mtC8nysoNL/D7K6QSUhOOUJgRg2f7wnPah X-Received: by 2002:aa7:9478:0:b0:625:a012:a59c with SMTP id t24-20020aa79478000000b00625a012a59cmr4031610pfq.9.1680653369871; Tue, 04 Apr 2023 17:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680653369; cv=none; d=google.com; s=arc-20160816; b=mN94ICZ/4l6mfei0BS1kHcm7+toyRksTfC4YHNTXYvnP0rbLpFJzhYVSD6leLlnZ+m 3qXwWyY3cbkJmn713w/JzBtp6Muhi/vy9h/P5vSPB59I7hFspwtJITvC6FupllIxLr8U meNjLw1ZdHrW1SJEm/F7sWGEjY0onwVyfGZoifU+T2LkS1WMabETxcFGOka8UgbESKfR HF8l4IIdWMXGk2/PjOp0hAHMz6oQ3Br31pA0PIbWL9scWs2m9Vk+tvZDreA54rPceOAv OwBBDZDHq0+5jeiFiJMMaOOJy8URygsqm3K04tRYvxiPhZsI3Cvw9c8CZrTo8sS0JmyJ z7iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=zu+LT4m9bTpmlAefKcX0chH2sTk6W58anNMQINmqoSA=; b=jeF5rdHMPtuzObNPSNW69ErAivktrPd/wsvlK2ZeWjLAiDqZA0IEHjO5sAo4MeSR10 trsHk5TKp/YX8gRaxHCMzF9aIzeYjfNonu+ALSiRzSpBCrW2Xjb3ryDnfGcii8Rf6hBT Vhg0dZj1e9CcBWNbo3NbzpUcOmuMRaURM63eB5qn+SiToUp0pCCp5bQKC0GYKpcKJFMS MuNmgUcR04fFVS788ADE3btHF9P88JVpPOTOZ3wwqHCY6VScewf4eD1+99SDflUQKW+e H0p8luz3eOVssdbwkQ7akwNQZyhzhV+jB4dU0fK+DhGS9XAhZEqOt2UqzOI+Od+zA5/4 2OFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="O6X2nPC/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 79-20020a630652000000b00513162c2235si11262848pgg.580.2023.04.04.17.07.47; Tue, 04 Apr 2023 17:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@infradead.org header.s=bombadil.20210309 header.b="O6X2nPC/"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236617AbjDEAB5 (ORCPT + 59 others); Tue, 4 Apr 2023 20:01:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235153AbjDEAB4 (ORCPT ); Tue, 4 Apr 2023 20:01:56 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8E6421E; Tue, 4 Apr 2023 17:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Cc:To:From:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=zu+LT4m9bTpmlAefKcX0chH2sTk6W58anNMQINmqoSA=; b=O6X2nPC/09ge4dU0qrHi54P7kK ALdC6IqUbYbQ4dEJKDME61w6TmgJt7hjEOpRr7RMvou/X5vuN6uYCwlEMvhTuZHliJnbt2lxso2Or iFtjuFb6e4rE3/nNStwfjXY2LWgdcMCONciGfZENQnVM+hL3hyS4lKj6JngfC4PQc5WlpGQdrdh03 hHjd3XVXFwwXSbcRbaKcQDdGCA+PoZWKM5AfbQoa9dcRWSqTWTiRTcTIKdEXpx+cJAQ+ZmTCvFeMS ZgOFkWPa0GCEf6IUorLSZuvF0lS6w6U+Hc9CYdvMcuGs3sXCsvQLuU2GkAA0E2a75kTQ9S+xliV6v +hwZLP4w==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pjqay-0032Jj-0q; Wed, 05 Apr 2023 00:01:48 +0000 Message-ID: Date: Tue, 4 Apr 2023 17:01:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: Build regressions/improvements in v6.3-rc4 (parport_pc) Content-Language: en-US From: Randy Dunlap To: Sudip Mukherjee , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, sparclinux@vger.kernel.org, "Maciej W. Rozycki" References: <20230327072641.3591802-1-geert@linux-m68k.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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-wireless@vger.kernel.org On 4/4/23 15:40, Randy Dunlap wrote: > > > On 4/4/23 14:16, Sudip Mukherjee wrote: >> On Mon, 27 Mar 2023 at 08:29, Geert Uytterhoeven wrote: >>> >>> On Mon, 27 Mar 2023, Geert Uytterhoeven wrote: >>>> JFYI, when comparing v6.3-rc4[1] to v6.3-rc3[3], the summaries are: >>>> - build errors: +9/-1 >>> >>> + /kisskb/src/drivers/net/wireless/cisco/airo.c: error: 'status_rid.currentXmitRate' is used uninitialized [-Werror=uninitialized]: => 6163:45 >>> >>> sh4-gcc11/sh-allmodconfig >>> seen before >>> >>> + error: modpost: "ebus_dma_enable" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> + error: modpost: "ebus_dma_irq_enable" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> + error: modpost: "ebus_dma_prepare" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> + error: modpost: "ebus_dma_register" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> + error: modpost: "ebus_dma_request" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> + error: modpost: "ebus_dma_residue" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> + error: modpost: "ebus_dma_unregister" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> + error: modpost: "ns87303_lock" [drivers/parport/parport_pc.ko] undefined!: => N/A >>> >>> sparc64-gcc11/sparc-allmodconfig >>> seen before >> >> Tried sparc64 allmodconfig with gcc-11 and did not see the parport >> errors with 6ab608fe852b ("Merge tag 'for-6.3-rc4-tag' of >> git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux"). >> Is it still being seen? >> > > This is reported at http://kisskb.ellerman.id.au/kisskb/buildresult/14905002/ > > I still see it on sparc32 using gcc-12.2.0. > > The compiler info vs. the sparc-allmodconfig is confusing IMO. > I am compiling with sparc-linux, not sparc64-linux. > > The .config file says: > # CONFIG_64BIT is not set > CONFIG_SPARC=y > CONFIG_SPARC32=y It looks to me like we have 2 choices (though there may be others that are more complicated): (1) restrict PARPORT_PC to !SPARC32 This fixes the build errors. (2) We could build ebus.o and some (new) binary that includes ns87303_lock for SPARC32. They are currently only built for SPARC64. I prefer option (1) unless we need to support PARPORT_PC on Sparc32 (which I have no idea about). Patch for it is below for inspection. --- From: Randy Dunlap Subject: [PATCH] parport_pc: don't allow driver for SPARC32 arch/sparc/kernel/ebus.o is only built for SPARC64. ns87303_lock is only built for SPARC64. Also, arch/sparc/include/asm/parport.h says that it is for sparc64. Therefore don't allow PARPORT_PC to be built for SPARC32. Fixes these build errors on SPARC32: ERROR: modpost: "ebus_dma_irq_enable" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_unregister" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_register" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ns87303_lock" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_enable" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_prepare" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_request" [drivers/parport/parport_pc.ko] undefined! ERROR: modpost: "ebus_dma_residue" [drivers/parport/parport_pc.ko] undefined! Fixes: 66bcd06099bb ("parport_pc: Also enable driver for PCI systems") Signed-off-by: Randy Dunlap Cc: Sudip Mukherjee Cc: Maciej W. Rozycki Cc: "David S. Miller" Cc: sparclinux@vger.kernel.org Cc: Sam Ravnborg Cc: linux-parport@lists.infradead.org --- drivers/parport/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -- a/drivers/parport/Kconfig b/drivers/parport/Kconfig --- a/drivers/parport/Kconfig +++ b/drivers/parport/Kconfig @@ -42,7 +42,7 @@ if PARPORT config PARPORT_PC tristate "PC-style hardware" - depends on ARCH_MIGHT_HAVE_PC_PARPORT || (PCI && !S390) + depends on ARCH_MIGHT_HAVE_PC_PARPORT || (PCI && !S390 && !SPARC32) help You should say Y here if you have a PC-style parallel port. All IBM PC compatible computers and some Alphas have PC-style