Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6868912imm; Tue, 24 Jul 2018 04:41:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf1aeCwFzpfK3EbOYKB0YcKlWnc2DFReMKTF+xsXyDz4wjzJPkzjxy5rE0uOHTQe8ef9mQW X-Received: by 2002:a63:ff21:: with SMTP id k33-v6mr15824476pgi.38.1532432477370; Tue, 24 Jul 2018 04:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532432477; cv=none; d=google.com; s=arc-20160816; b=tNY7UU18laJ1/Zb8u+xjh9kxPe86Rg3d33rQ+Rrz2WpHVaNE3wjBm/11r9a68CBUdI dfuJ5hNACxHq9AhpXIsyVQomcK0qPvbLyqv7pGg4CgCsTNZfRyWTxCN+Q1bI+FBwCnWx IoQr54lqO0QTCbVV2sT2TanP4NOc7CLOwDL8SEhLM2bFL/PPO0RfqnPNe47E54/2/97T CgIcneYhxz0RPjJnGGUxeDWzHk9Txqv3EBZCFYOQBHmaq/0c+Fw6TDk5ZOouIzwKAUEg M/cYJHOakPgjGHTITRV3qEFCdUjyZnCASr5JRcIHJ0IScv0j7YcpZGb5FPEmLzv9Our3 tMgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Z6a1fO2QapxHNoEcgNGED/JWM6pTeBJwmiusVepPTgo=; b=P7tWkJqwqgF31/j4zbDWmtFiETWKB7p0tIaklQvmVzpJXU6pKMGOramtivQYJeNIB0 msyHVp4NIuBN95Q+f4nZJbUg3aQPvcMvezlQH57l3oiELQXVVcuZ7rBDz8cKuBZddd1C bHecl/FMi8ofW3KQVv4h7dk9tqFh3kZfbwYEiHU8AwZboBSp1PaMLIFar2lcQQyuxwLt Yj0WLQjNs7AVjohOpX7qJsNmmMPBHKl/vJVRuN///BmjA/fb+XcBS5fP6NQ1QBQgZwKi AUHwIxUOdHJdzlgVsNyKlntjaQDqvBjj/antQunWvNuL0/INTGR1HtkpE3k067zR6oSw jn1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q16-v6si11022857pgg.619.2018.07.24.04.41.02; Tue, 24 Jul 2018 04:41:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388322AbeGXMqK (ORCPT + 99 others); Tue, 24 Jul 2018 08:46:10 -0400 Received: from verein.lst.de ([213.95.11.211]:54309 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388196AbeGXMqK (ORCPT ); Tue, 24 Jul 2018 08:46:10 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 969B468D64; Tue, 24 Jul 2018 13:43:34 +0200 (CEST) Date: Tue, 24 Jul 2018 13:43:34 +0200 From: Christoph Hellwig To: Geert Uytterhoeven Cc: Jacopo Mondi , Christoph Hellwig , Yoshinori Sato , Rich Felker , Jacopo Mondi , Thomas Petazzoni , Linux-sh list , Linux IOMMU , Linux Kernel Mailing List , lkp@intel.com Subject: Re: [PATCH 4/5] sh: split arch/sh/mm/consistent.c Message-ID: <20180724114334.GA21973@lst.de> References: <20180719130516.1989-1-hch@lst.de> <20180719130516.1989-5-hch@lst.de> <20180723084207.GI6784@w540> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 23, 2018 at 10:49:39AM +0200, Geert Uytterhoeven wrote: > > > + *dma_handle = virt_to_phys(ret); > > > + if (!WARN_ON(!dev)) > > > + *dma_handle - PFN_PHYS(dev->dma_pfn_offset); > > vs > > > - *dma_handle = virt_to_phys(ret); > > > - if (!WARN_ON(!dev)) > > > - *dma_handle -= PFN_PHYS(dev->dma_pfn_offset); > > Doesn't look right to me, neither. > > No complaints for 0day? My gcc says: > > error: statement with no effect [-Werror=unused-value] For some reason 0day has failed me multiple times for sh. Does the 0day bot even cover sh at all?