Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp521162pxf; Wed, 10 Mar 2021 10:53:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8GjsfH13bjDDWRGX6hefhevTq2LYEFUN6z9kXKrny+GPymURt254Gc59in/pEhvfOSi46 X-Received: by 2002:a17:906:894:: with SMTP id n20mr5101445eje.57.1615402403925; Wed, 10 Mar 2021 10:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615402403; cv=none; d=google.com; s=arc-20160816; b=Po6JJZfQHMpriEaxRicWDyEwOCiESwK96w7rqoaTFafA2l2MYnsfZHdCHaoT4fyr3G Cnu9fqakHROtSOXJtqFi04095F6gaQ0tB4Rdb/SXrbloOmY/fBZuj+2G9B7v8rYhFESu b3PF1wTPI9mn0eGfIVVlFOq8R9lctx9vuMSi0SnyPmHF2G6FsNXV0V8zIMeeCJBjZIYg vtGl1ToK2LhOyYF21+lTjZzf1thH7YpAYjsakrMkFr+EzLxtwUpqOrWKN4lFvwfnKO0s DT07Wc9xjdi+GUGqnitQS4b+4vICQXRjoxyZNCfUDTrVeppHYTAMbAJaWOx87MsdK8xz Lxyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4HgOUtZioTDMKUvW4dyz8tRE+AffCXG+nsSseXdbPJk=; b=tTRBxP1nfh4yVbE7Ejn9QXkkQ/M377FFeI8Vm0Be2cFTNNxO0fvBBGbrBUAbHFfMKf VyLTjpcQfYm/BquRXiqdKGRIjOwnv1uKuBdZdivSAdkUIWLRpQNPRwfrZ7V8VbrjvNRA hqvMxdnshUsL7VbdJ2Bn5RJaLy3RJI0MFkpvyHMrVOnFwV2QOtHk8Zy1ll2HC+APtZRT lo9VSTRjvNeFrrwBa2hyR5EcqXQ53kVyTx4T2CuEtIBrWrXzuFMqr62T06/4JENXejZs cvqNkATKUJtgPIcAKV72aHhCLBaOuMk64ZtPQnfRVeHgh+c54wU/a1NK78bMi9ZDmhFK ynRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=P1Bdb0fR; 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 l4si151057eje.225.2021.03.10.10.53.00; Wed, 10 Mar 2021 10:53:23 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=P1Bdb0fR; 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 S232880AbhCJStu (ORCPT + 99 others); Wed, 10 Mar 2021 13:49:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231858AbhCJStR (ORCPT ); Wed, 10 Mar 2021 13:49:17 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44223C061760; Wed, 10 Mar 2021 10:49:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4HgOUtZioTDMKUvW4dyz8tRE+AffCXG+nsSseXdbPJk=; b=P1Bdb0fRml2tffwzopV3LbuQkD XiK+O7Tn0dk24d5j4uLS37+YCyyHyF+OzWpE2WQ4j21wKUZ3s1bWAoGqsSm+u1yBzszeCgZ6Ne+3t L2Z6/sUTX4fqGXjHSwHwgQTiz8zodMisx9vQj9oOS9jjijt1TuElXLy+NYrybZaR4m2GpepX84laF OOtPDEjY3QNJpRE04Os1zOb/8/dLOqIY4hEQ0EPZkBLdyi7nfVXQajaWWEplm25vUVt5Oqm4Npoxr JAR3BcPz0JxaHZYrxaw9zt6NkR+HjFDjkHE8/yvTlOLpjdyLqW6m7PQwWfmacwqh/smZmoyS4VNQQ QlTzrJIA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lK3tI-004PX6-LW; Wed, 10 Mar 2021 18:49:07 +0000 Date: Wed, 10 Mar 2021 18:49:04 +0000 From: Matthew Wilcox To: William Kucharski Cc: "dri-devel@lists.freedesktop.org" , "linux-fbdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Daniel Vetter , Ian Campbell , Jaya Kumar , Jani Nikula , Christoph Hellwig , "linux-mm@kvack.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH] fb_defio: Remove custom address_space_operations Message-ID: <20210310184904.GS3479805@casper.infradead.org> References: <20210310135128.846868-1-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 10, 2021 at 06:38:07PM +0000, William Kucharski wrote: > Looks good, just one super minor nit inline. > > @@ -228,13 +202,6 @@ void fb_deferred_io_cleanup(struct fb_info *info) > > > > BUG_ON(!fbdefio); > > cancel_delayed_work_sync(&info->deferred_work); > > - > > - /* clear out the mapping that we setup */ > > - for (i = 0 ; i < info->fix.smem_len; i += PAGE_SIZE) { > > - page = fb_deferred_io_page(info, i); > > - page->mapping = NULL; > > - } > > - > > mutex_destroy(&fbdefio->lock); > > } > > We no longer need the definition of "int i" right before the BUG_ON(). Huh. Usually gcc warns about that. let me figure that out and post a v2.