Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2609859ybm; Thu, 23 May 2019 21:24:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0MuNO7INAL3iEv3lxGZp/+SSmy4dEHB1SfOhqW9V6RmbdSxtoOmkMHFVI+mMe35PFEmrw X-Received: by 2002:a65:44cb:: with SMTP id g11mr101822391pgs.193.1558671861640; Thu, 23 May 2019 21:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558671861; cv=none; d=google.com; s=arc-20160816; b=cuCs73cXZg0LdUkwLVAv5QegeqdAZtDqiH9+5myWBDQEq7MbM/7QTpZJUopGDMRUid pqwoCQMdKXsP2PGJxbWlYSnsRPoPwxoUpxl60ucKpsR8U9JpDB44WEWEqNWGOT3DfWDx 3CRnfzI8dShftm59vt/S57HDDRId+C7NrsfEEohf8/1ybXalAUV1a3WrOTjLPIjbNPk0 vb0NX14xmvnXxa6zjShohM7n9fu+NgmsynB1vxdOed55Bm2dr0nAiKqEkX9Jo5CCu8dU LUid5so/ewWpu1go8AXGfqJkTzILp/sB0N5chYQByG6HOPJlEqVb+p5Tt3o8sob+ZGcr PyFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MGL1sUb7/SuZO1SlzbuvddIsg4e01QlpVj8IoIDWPcU=; b=LAcrKgLyiadxBRlyTh20wDIdvSh12cCEAB7CyosjQuOQOurSR7zYJFw1mOBRmcPC9B 8tH62yuHGP+dG/KFRRwiXnkQLjoIeD3IkC/wcT/r4aFr+Pp5FY1xBF64l/RSpk5J/lCI amFqr8Qz4SvO4iO0mbFNPGXVaKHKbLqdug9kNJYUlw1ltVZWDRA3eeiaeaoAlHM/NOM6 emwqF+N0/JzgXpCcshBuC2W+WzrWqT9UywABFmpWopqfL4kZ6OTjfeL/QQA36TQN8Iq1 iWJ5Ggs24pRKvyZjaoSqJopYy61oksF5lyDtlN0acB7dmk1DTWOwqoowPlyRRUsMHoKJ 1AmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UBAlcfSj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si2375520pgs.161.2019.05.23.21.24.01; Thu, 23 May 2019 21:24:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UBAlcfSj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726373AbfEXEWP (ORCPT + 99 others); Fri, 24 May 2019 00:22:15 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45367 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfEXEWP (ORCPT ); Fri, 24 May 2019 00:22:15 -0400 Received: by mail-lj1-f196.google.com with SMTP id r76so1946677lja.12 for ; Thu, 23 May 2019 21:22:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MGL1sUb7/SuZO1SlzbuvddIsg4e01QlpVj8IoIDWPcU=; b=UBAlcfSjXrc1BmmoSl/BpT7znIVVgca/OTtGj7uFEdWgWKXisgB5nm9kbAq2ev+bZJ PU19mTIMTQuBToniOp0HTiX47NFpuXj43WH3JPO9xS7koRQELufUSr0/Hn7MUgWS9y9s lkERyikOGn5C+ckUL3VyjYoTWnD/Yj6f60gk91Htjll6kz1cQsSOnqM8V1M+CzFZEA0Z Wf+BJ25vuJaBVQqALcerHH4xfNRzT7yX/4jOSXEqPzCY8DSya4JS97r09w10GcFu4xUC m/r+80h5rjYoLoXOQdxdYj9GxUAs6XkgPIRZdBU1OZ/jqB0CBAyZoj3W3S389Z0dPEOT uJ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MGL1sUb7/SuZO1SlzbuvddIsg4e01QlpVj8IoIDWPcU=; b=ZwdKYqQ1NTVJd49/Fo+dl01+UxhSfETQTewP2/je7bQFINM1MW38qjCqgmP9Hc5OVp TyrgBBvB9UetGOqrFcoweZOYmZPWGvVVxabnOh9pbgVZAZIVDoOQasE3favwidAotxdJ 4PO03LWOjmVsCA40ogXBcwToYrTyUKlixqP7UngI8Qxld5ugQjKOi2ZOug9V0xXFknaw Q6ySB0xiK3wLAnio1BlKJs8m2N2Lg2CeSjHJTlAEFMSgOO1+I9IEsXqOEK6Ew3skaRVQ O7fTZBG5u98npylSvDj0TD6uwMOsSpchbbc8iCQ70pnXP95CmjdTk1HnBTxoeUR+xCD+ fvTQ== X-Gm-Message-State: APjAAAVPWspYmQbt1prAaiYv3XPEDc3pL/yYLdG6mzbUN1xkwi9/TJS9 a8wa2B77I9TdGz3m+xXUS0oVjyWU+yjMJDGfeVk= X-Received: by 2002:a2e:1412:: with SMTP id u18mr16589988ljd.197.1558671733368; Thu, 23 May 2019 21:22:13 -0700 (PDT) MIME-Version: 1.0 References: <1558366258-3808-1-git-send-email-jrdr.linux@gmail.com> <20190521085547.58e1650c@erd987> In-Reply-To: From: Miguel Ojeda Date: Fri, 24 May 2019 06:22:02 +0200 Message-ID: Subject: Re: [PATCH 2/2] auxdisplay/ht16k33.c: Convert to use vm_map_pages_zero() To: Souptick Joarder Cc: Robin van der Gracht , linux-kernel , Matthew Wilcox Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 23, 2019 at 2:58 PM Miguel Ojeda wrote: > > Taking a quick look now, by the way, why does vm_map_pages_zero() (and > __vm_map_pages() etc.) get a pointer to an array instead of a pointer > to the first element? Also, in __vm_map_pages(), semantically w.r.t. to the comment, shouldn't the first check test for equality too? (i.e. for vm_pgoff == num)? (even if such case fails in the second test anyway). Cheers, Miguel