From patchwork Mon Apr 16 23:15:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10344059 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3815560542 for ; Mon, 16 Apr 2018 23:16:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30B312895B for ; Mon, 16 Apr 2018 23:16:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2552328962; Mon, 16 Apr 2018 23:16:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BB8802895B for ; Mon, 16 Apr 2018 23:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TSMkm35tQhKJGIg9vb/s4GPRhkcm4N8CcS9NDXetxI4=; b=hdK8f+aevmqGEn EtnD1uNRXwzq3UlPMtLHVP4Fj+BB2LRqd6t0IHadDJleZ1yIOeIQUaEe1QCAwTpuzYULRGDiJe8gs X77ht8m3JsYcLog1jp3za9EG1lwhPkS2BIaZwGJ4HZi/er+r2ibgkLvig9uEgrYLReayBkYLkPObh h9hNQXTR0EwUyPjRAVc7N2JLOFKWjkRqmjwcV75g3eTEPJ9L4gzy/+gVd6OpDCSQBps8z3zDuAVSW ide8GW3FXcPimh/NwCSh0+bG3kPgjCB2O5Ml3a6Viq3ejOgBaKoDpOasvXMvE7xvJNAGD3kvavw9y wm3uZwGG608FuJb5R7Jw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8DLm-00063i-Va; Mon, 16 Apr 2018 23:15:55 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8DLj-00061M-Iz for linux-arm-kernel@lists.infradead.org; Mon, 16 Apr 2018 23:15:52 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F334760310; Mon, 16 Apr 2018 23:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523920541; bh=0dVQ/50ETs//Etzalf0jbAfPwoiyFqSdDWx2QE2bJ4g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=HOxBbfEVwNV1M+s3rxAv3BBSIoFOPGE6/MzPZJU7WWPIz8qILi4+NH8Ql1FYn3Eae E+EyHMqy9og9Z78ufIawgT2R9LpcXXcv+TqwgqHlDxgsET6ATLAt7PFlhsvlbyOPCj gVP1LnX8OJFLJagJ684Z/O1oQjeHKNqH6jLOrGxs= Received: from [10.235.228.150] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8F97F60310; Mon, 16 Apr 2018 23:15:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523920540; bh=0dVQ/50ETs//Etzalf0jbAfPwoiyFqSdDWx2QE2bJ4g=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ZvbPYexCZ/5xOzjlZIelMd2zsmLv4yx71qVUaflgoiJPukIiM70n/u/qzfKUkXqUt 4nsxSalpykZ58it0D4l7rH+ON09/3OJbDjDQqW0QygbPcAPxKp+BtiL9I5qrYWLKMN XMWGAkhhsFBpE/T3TlWiSycECh2KaK59AYFMS5X0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8F97F60310 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCH 1/2] parisc: use the asm-generic version for writeX() To: John David Anglin , arnd@arndb.de, timur@codeaurora.org, sulrich@codeaurora.org References: <1523916078-23049-1-git-send-email-okaya@codeaurora.org> From: Sinan Kaya Message-ID: Date: Mon, 16 Apr 2018 19:15:37 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180416_161551_667362_D4EF3B97 X-CRM114-Status: GOOD ( 16.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-parisc@vger.kernel.org, Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Helge Deller , "James E.J. Bottomley" , linux-kernel@vger.kernel.org, Philippe Ombredanne , Thomas Gleixner , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On 4/16/2018 7:09 PM, John David Anglin wrote: > On 2018-04-16 6:01 PM, Sinan Kaya wrote: >> parisc architecture seems to be mapping writeX() and writeX_relaxed() APIs >> to __raw_writeX() API. >> >> __raw_writeX() API doesn't provide any kind of ordering guarantees. >> commit 755bd04aaf4b ("io: define stronger ordering for the default writeX() >> implementation") changed asm-generic implementation to use a more >> conservative approach towards the writeX() API. >> >> Drop the arch specific version and rely on the asm-generic version for >> parisc since parisc version doesn't seem to do anything special with these >> macros. >   HOSTLD  scripts/mod/modpost > In file included from ./arch/parisc/include/asm/hardirq.h:13:0, >                  from ./include/linux/hardirq.h:9, >                  from arch/parisc/kernel/asm-offsets.c:34: > ./include/linux/irq.h: In function 'irq_reg_writel': > ./include/linux/irq.h:1114:3: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration] >    writel(val, gc->reg_base + reg_offset); >    ^~~~~~ > ./include/linux/irq.h: In function 'irq_reg_readl': > ./include/linux/irq.h:1123:10: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration] >    return readl(gc->reg_base + reg_offset); >           ^~~~~ > cc1: some warnings being treated as errors > make[1]: *** [Kbuild:58: arch/parisc/kernel/asm-offsets.s] Error 1 > > Dave > Thanks for testing. Can you add this on top and see if it helps? --- a/arch/parisc/include/asm/io.h +++ b/arch/parisc/include/asm/io.h @@ -259,6 +259,7 @@ extern void outsl (unsigned long port, const void *src, unsigned long count); * value for either 32 or 64 bit mode */ #define F_EXTEND(x) ((unsigned long)((x) | (0xffffffff00000000ULL))) +#include #include