Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp446143pxa; Tue, 4 Aug 2020 09:13:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx714Uiss3Jit6hk/QUH76YIDX29NjRee+FC91rtLBZMP7UGmjJM54PUvT4DbHkpyoISTmE X-Received: by 2002:a17:906:694b:: with SMTP id c11mr21810070ejs.232.1596557592292; Tue, 04 Aug 2020 09:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596557592; cv=none; d=google.com; s=arc-20160816; b=uFfLz6Z7xYTP252I/UTObeAZs1EEPSSMtv5zz3zz3M6OQeJtBCYv6SHj2BaR9YshZS 1kFW/8kvaqxMN+bg763NnrWyvWb8CtFbdAro000jnnnF4KAysowbOSapzvahsUqsbitz HPr8kIdzdAgNhR3SXF3S27cFtYG0dHzvJQAbLLzVzeipnxOvU8iyHw2OmzohRJDtW0lf 97XisxwCzfvBAN0/nZZTXLZW/YEqzAtd8VB/xb/OzIPQEL/lgFg9B28Ylc8FZGoX+6OV BP1oWmKYajN5dx8m+Jzg6q3z8MqRRCeM808z2bks0HSP0rX5bD51mTR5w/L7K7fvNF3l 70rA== 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=mRVmHUlDxia+y8iJF0GEpX4gpLZxWebaX8oyQpuPk+A=; b=nJ4/lj7lOUzeZTOYM6e2HO6jNY/xxXNQ3olp3umn+ndO477kRs/agL2BXQVNsAkH6E 9f1fD4eX3PlTtadQlCxvPE2c9zfM/KRudR14cQa6JT4boDoHNixsrEEuifTKS20+LQxf jMfXVX3t9mlAHEi4WHrP9TL7Zt/DtG+lNg9KwuWI/y8iEztZ3H0rXGOc1vyXpVLuB7fH 63gNVQg+BL1InoPFM17sHVR6Zj0qnwqWewRxgZPvHgRdiVUobE7xslSs5WaqKsYOCiFs gw2ziqo03mkABFsq8gPX3e2Ygf0cxPcedJ5naz2x/4lLDGcki/7w9+2y/eyavuclnE5k to4A== 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 b7si5959788edz.404.2020.08.04.09.12.47; Tue, 04 Aug 2020 09:13:12 -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 S1729771AbgHDQMJ (ORCPT + 99 others); Tue, 4 Aug 2020 12:12:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbgHDQLk (ORCPT ); Tue, 4 Aug 2020 12:11:40 -0400 X-Greylist: delayed 17925 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 04 Aug 2020 09:11:40 PDT Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F9DC06174A; Tue, 4 Aug 2020 09:11:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8E93DE765; Tue, 4 Aug 2020 18:11:37 +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 sDQfZDMn0Rnd; Tue, 4 Aug 2020 18:11:36 +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 D4671E2D2; Tue, 4 Aug 2020 18:11:36 +0200 (CEST) Received: from samy by function with local (Exim 4.94) (envelope-from ) id 1k2zXL-0027ud-Um; Tue, 04 Aug 2020 18:11:35 +0200 Date: Tue, 4 Aug 2020 18:11:35 +0200 From: Samuel Thibault To: Greg KH Cc: linux-riscv@lists.infradead.org, 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: <20200804161135.pgwqbaahdtxhe7cq@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> <20200804153542.zowupa4ygdgxnciu@function> <20200804154952.GB495852@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200804154952.GB495852@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 17:49:52 +0200, a ecrit: > > #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. > > And that's fine, math with pointers, even void ones, is ok. C++ doesn't like it, but in general compilers provide some semantic for it, yes. > I wonder why riscv was complaining about that. It's not nice, but it is > valid C. Strictly C speaking, no, but GNU C yes. > Let's see if any of their developers care about it :) Ok :) In the meanwhile I sent a v2 series that should fix the different link cases, just not the particular riscv warning. Samuel