Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp420226pxa; Tue, 4 Aug 2020 08:39:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMF1IqMBhbWsLRA4hqOlvO+gTl8zZs8ijDetcWbGe7JpovzyZIOYaPAvOFxl/d+/QEyFIz X-Received: by 2002:a17:906:78e:: with SMTP id l14mr23408299ejc.67.1596555559160; Tue, 04 Aug 2020 08:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596555559; cv=none; d=google.com; s=arc-20160816; b=aHAgwrta6Ct+/+wewal49/+l5dUdREqdqRrUw4zMomeBj2BovdkvQJ/JTdvBxVQ3CH 7Hy334saRMKCvPVwJqltO1xfcI1kPcw/uNBYcHplSsylaZA/L1bSYamAzDHMn8D7Z10x 32CGHpoE/3v4WM7ErKZI4mmgEDTck+DzCI6EoCmbO1zpdznn5Sz0PYBER+b+5LLtyOR4 wWHhmRS4a4brxiTtvCkBdGXshk2gpCsjfW7F8TZexO77U/HT92cOFM5pY6MbmE0yM9ff RtYbKiMuB1/5yycUKT5OJI9tzShWWH5Q+Bpxe79Ns7fPJ++qtfYd3EH3bt836MbgNwvU Lx8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=VFQsAiivn70/kASre3ctssJarEdSqHLE8E4z80M6Jks=; b=kkGIeTGyydgANSIhGq7Jf61RYzzyQJ1xWdDRznRFTs5KTfVVzGnKa5DXSN/PX/SCPu k4OunBu6b6wMNC1JVVPYtY9H7S+V/pTtxi1iEU/mQMBJHcriqLosRt5j8TzBKdXz+efq NaO1p6SN6bK2LGIUvC6ZrjyUx6nX8+lY40UG6hDfGwh3bzpUyDuagyA8BfkGuJy6ja1S PbtYXH/1JJum0V9hISs9Ku7szwjiK7H/ITBg5KTNA0oMHDl0xwfmTyRfexWV9i0oAvBc YFvHXEms6bxobGTBM441KjGbNuPRQw+T0A8dxkoSySBiKw5+3ECvdalnfCqmi2mEWRH2 KF4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si10110497edw.393.2020.08.04.08.38.55; Tue, 04 Aug 2020 08:39:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729718AbgHDPfx (ORCPT + 99 others); Tue, 4 Aug 2020 11:35:53 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:50340 "EHLO hera.aquilenet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729698AbgHDPfu (ORCPT ); Tue, 4 Aug 2020 11:35:50 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7450B1689; Tue, 4 Aug 2020 17:35:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NNp9mwS61FzL; Tue, 4 Aug 2020 17:35:43 +0200 (CEST) Received: from function (lfbn-bor-1-797-11.w86-234.abo.wanadoo.fr [86.234.239.11]) by hera.aquilenet.fr (Postfix) with ESMTPSA id A37C4154E; Tue, 4 Aug 2020 17:35:43 +0200 (CEST) Received: from samy by function with local (Exim 4.94) (envelope-from ) id 1k2yyc-00278t-Dr; Tue, 04 Aug 2020 17:35:42 +0200 Date: Tue, 4 Aug 2020 17:35:42 +0200 From: Samuel Thibault To: Greg KH , linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, speakup@linux-speakup.org Subject: Re: [PATCH 2/2] speakup: only build serialio when ISA is enabled Message-ID: <20200804153542.zowupa4ygdgxnciu@function> Mail-Followup-To: Samuel Thibault , Greg KH , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, speakup@linux-speakup.org References: <20200804111332.dex7jobmabifdzw5@function> <20200804113413.GA181242@kroah.com> <20200804114951.ijs3hnezi4f64nll@function> <20200804115817.GC203147@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200804115817.GC203147@kroah.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg KH, le mar. 04 août 2020 13:58:17 +0200, a ecrit: > ERROR: modpost: "spk_serial_io_ops" [drivers/accessibility/speakup/speakup_keypc.ko] undefined! > ERROR: modpost: "spk_stop_serial_interrupt" [drivers/accessibility/speakup/speakup_keypc.ko] undefined! Oh, indeed, these are not covered by the first patch. I realize that KEYPC depends on ISA, but with COMPILE_TEST as alternative. We can build serialio in the COMPILE_TEST case too, I'll update the patches. But then we'll still have: > the riscv build issues. Actually I was surprised by the riscv build issue: the issue is within riscv's inb() implementation, serialio.c is only calling it. arch/riscv/include/asm/io.h says: #define PCI_IOBASE ((void __iomem *)PCI_IO_START) [...] #define inb(c) ({ u8 __v; __io_pbr(); __v = readb_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; }) and thus yes it's arithmetic over a (void*) pointer, the caller cannot do anything about it. 8250_port.c itself uses inb(), doesn't it get a warning as well? Or is it getting compiled-out on riscv because of some Kconfig condition? I see that the whole drivers/tty/serial is under HAS_IOMEM, and that's the only condition I can see for 8250_port.c (except SERIAL_8250 of course), is that it, or is SERIAL_8250 just not enabled in the riscv bot? Actually the warning seems new, when looking at the Debian build log: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=riscv64&ver=5.7.10-1&stamp=1595803499&raw=0 and looking for serialio.c, I do not see a warning, and its code hasn't changed. Is the build bot compiler just more talkative? Samuel