Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp39077ybt; Thu, 9 Jul 2020 14:52:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVl/IIQTec2KetfemPtZEgLTJM2kjbyaWdwXj5mXZqgZ1m5o88OS9exDv4S2JmqeRwSdPg X-Received: by 2002:a17:906:4a17:: with SMTP id w23mr61063130eju.360.1594331537247; Thu, 09 Jul 2020 14:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594331537; cv=none; d=google.com; s=arc-20160816; b=SI8RHbHtQabdRjfLiTJJ/XbV+AWXtJ+R+tmONlLYq59RrR7qs61FmHBBieyRsP3uUF ZUZW4eFYgYnQF64yvvlODzKOr1DBkNW0ykUjjyC48sI3M78QiQF56NYBGAylqgUcdjd2 IAdjfscij9/qw+0uvs7z3RSmuu1+4XegMR7UA7dDj+UUruWqWtcHmfoaLBt5SDVMWuBe WSKk/yqx3vAbATcval5Xq5svUBzzliwCNYDAf/o/dKIcjiONITzgJ+4aTfHt+wv4SL2j w5qQ8rlk3/m6HZVuXdQ//DGqbOsfJkdVV9+rQ/XhqWNXAZpw3KWUtzGtHTsT5/BZTFbC R80w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=yZE59xCL3eBQXoSAxSBT7tm0J2D29/mHRf5l4hrUISI=; b=ebaAut+C19n1GcAjHINjlUSAVXmZEi07giDGRpjmgLQNQsAZ5eAog/mb4b7Yh8Sqz9 OMmfjdQyA7LpmRICYBsOQwahpJN/2FkCGyHnE4Cy64P3OmP54pdNaRLkC9+EoUso8myY 6exDf/Un8ftYdQY1OBlzNEiJ5N43W/hwGnNqQL3a0SD0wLh8in+ctT7ycnNxAmG7dNNk FRYyULKcmk8wFlpR0p8D8+dzwHNl7yxd+j0d++x7e31RthyftRZhRdQJoMGAI9FdBlo9 aBsYUFRuxMX8VAUxxpHyf62xjTJ1F7QYTp8vw2mVg18zmcsfbaY8BGRqyu7T5Kot7Hz2 X4QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KmKQ4RFj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si2736214ejt.197.2020.07.09.14.51.53; Thu, 09 Jul 2020 14:52:17 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=KmKQ4RFj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726806AbgGIVvQ (ORCPT + 99 others); Thu, 9 Jul 2020 17:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbgGIVvP (ORCPT ); Thu, 9 Jul 2020 17:51:15 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF20C08C5CE for ; Thu, 9 Jul 2020 14:51:15 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id k5so1684538pjg.3 for ; Thu, 09 Jul 2020 14:51:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=yZE59xCL3eBQXoSAxSBT7tm0J2D29/mHRf5l4hrUISI=; b=KmKQ4RFjJZN8heHwcunUI+xmSk3O4O7DS/tcqI/shA4R/8tNWpEFDLOaySPCFZvWp0 pnmJL8xRUDDhptx9Z3jpLMortBNwszOKdCEwWLmCDClzKmP0PfHJTQouFtl9Gwb3UG2t Hj5B/OJ3WQZwUBMCrYVBOZrTSHyNr1a9bsFItVX+rEVahrUtcYOaoRxIsg4zx5WoJrtG 1FaWdcSiC/eqUjRVwPigfrWqMO0M/6VyqMmMndTJ7g49Rr/O6JGgWtJaO1V+gcLr9x+l IeEfHITYzSZFf7BWirupcVcL8NQJwun0thCSKLQ2xnWNLiyyqBjTL8foD9POx5zI7Uqp VSoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=yZE59xCL3eBQXoSAxSBT7tm0J2D29/mHRf5l4hrUISI=; b=Axrg77z1gs8AQemOt0xK4s2QBJdNAvswvZlhE2bcEmhwCBhphdDr5V1kbPX3LNbqm4 q4iqMLq8U6UCpwfCKA8+gTJtNRCW5O3pm84EpSyFmNMIG5CLygpKX+aEvY34iTzuEINH ogppCrCv9Dc30m2aUj/2/KOUqHom/ZiNXLnqbrCFaZ4yXPSy98swu+pOtcxFhQ3FGosn 3oolpfWi9b0jLuorcGQn3jncgDX0FIUBIm/C7AdDN9LOLSw43RGDJRVrBRku0l0dLrN2 6bWxkdmdVVVZbJLHObTNyvvlfaOPvSwlavZFYYvzZR7xeLjHZby66GvOSJ8kh7H9oKpG 5dRA== X-Gm-Message-State: AOAM531zuczDHJhjx6DOxAIaL526QWNJ79MFxVAwVKyn9wt6vyLslrWQ 0K8f1pfwGhwMnZnxwsO2DYWsLg== X-Received: by 2002:a17:90b:283:: with SMTP id az3mr2264678pjb.38.1594331474724; Thu, 09 Jul 2020 14:51:14 -0700 (PDT) Received: from [2620:15c:17:3:4a0f:cfff:fe51:6667] ([2620:15c:17:3:4a0f:cfff:fe51:6667]) by smtp.gmail.com with ESMTPSA id t126sm3841690pfd.214.2020.07.09.14.51.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 14:51:14 -0700 (PDT) Date: Thu, 9 Jul 2020 14:51:13 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Nicolas Saenz Julienne cc: hch@lst.de, Robin Murphy , iommu@lists.linux-foundation.org, Marek Szyprowski , linux-rpi-kernel@lists.infradead.org, jeremy.linton@arm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] dma-pool: Get rid of dma_in_atomic_pool() In-Reply-To: <20200709161903.26229-3-nsaenzjulienne@suse.de> Message-ID: References: <20200709161903.26229-1-nsaenzjulienne@suse.de> <20200709161903.26229-3-nsaenzjulienne@suse.de> User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Jul 2020, Nicolas Saenz Julienne wrote: > The function is only used once and can be simplified to a one-liner. > > Signed-off-by: Nicolas Saenz Julienne I'll leave this one to Christoph to decide on. One thing I really liked about hacking around in kernel/dma is the coding style, it really follows "one function does one thing and does it well" even if there is only one caller. dma_in_atomic_pool() was an attempt to follow in those footsteps.