Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7373138rwr; Tue, 2 May 2023 13:46:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eym9yjlXdrpGsYqvluyF4LqjLHFbV1Ym/PI6B+e1dCrj5wmB2JdyyW2Ov3q1iY3IgIBSe X-Received: by 2002:a17:902:768c:b0:1aa:e631:9f71 with SMTP id m12-20020a170902768c00b001aae6319f71mr8679999pll.30.1683060384281; Tue, 02 May 2023 13:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683060384; cv=none; d=google.com; s=arc-20160816; b=mxqxBKdgQW9Ht7fGvUo82m8qsTUtXUg4/I2eibhmeD1uASLVD2d3sJZrIMSTusZizQ 76U1xwaznfdnQTuGmGOpg7rE+lGeZwPUk0bt8QLG/k8gILpohnsc6gIka+Ly6zxnjxss qSFz82x4MDod/16RARHyhLxgeJf54UtTC1a3zr635C4b7VZnul+2IyclCTxX6g8O0ppH 6asRt1aDZ1Ef1w1DDbASL6wYEvkVloUjA9Ll7ED/vc8nAhqCTOsvpz65pN3O+E/K55As KPBzwbpFb3PANVjShWO1ky1cHqI+N51PYMjLsOjczCsBmfDiRKDBwXpo2SEv+sbuKRio /OXg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=WhFW8Rae+PmqA9NsRu2fCLYsKzvllBF+D9enxFH2HZY=; b=Z5HTiVKz7zbbA8LYc3MIzsb9mlWuGu93aXJq6FO9rmPElq2IhbhkcwRUpePMc4DLVw 10XCmiJ6Th+Wt7UVz6SFcTi2QkfDTuo6mPSZy2UgbHN1ICv3HGFf3uqrxQ+FOj1SBGbt gKm8jgeYA2R8QfhKLvtRGRzyNKwctkugLX87s75ZnlkiCET1RiY71d2nbIY/Tz3qX7Fq cIY51mrtYiWiS4WWHsB6n2+iSGvy3BCADMicO6hH8vtaiFhyoO3Bnci68dgZGyxFm7sA 7EbCZpHbw/7PfJ8Hm+cGep336E7tjkms0xtEeew/7bCjpxk+gKaBq5CxMmfWJZybi5NY OKFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=hgtKk0Mn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a170902b19700b001a94b91f428si1567003plr.319.2023.05.02.13.46.10; Tue, 02 May 2023 13:46:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=hgtKk0Mn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjEBUSa (ORCPT + 99 others); Tue, 2 May 2023 16:18:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbjEBUS2 (ORCPT ); Tue, 2 May 2023 16:18:28 -0400 Received: from out-60.mta1.migadu.com (out-60.mta1.migadu.com [IPv6:2001:41d0:203:375::3c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 600FD1FFF for ; Tue, 2 May 2023 13:18:17 -0700 (PDT) Date: Tue, 2 May 2023 16:18:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1683058694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WhFW8Rae+PmqA9NsRu2fCLYsKzvllBF+D9enxFH2HZY=; b=hgtKk0MnzVAurVmwiCvBDIjIIIVHKWBblkqx4zQl8oTajKe75PQAIg3RUCa1kKrviBzNrJ GpiBkz7WRGs9kn6obwH3r112ivVqUTFRAFMnA9VjU9p6KvcxDCeLXwzxjYCGsLWrMrxgoJ DNMXVf2QpiAVCACDPy3H7fKlw3VRMxw= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Petr =?utf-8?B?VGVzYcWZw61r?= Cc: Suren Baghdasaryan , akpm@linux-foundation.org, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, dave@stgolabs.net, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, ldufour@linux.ibm.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org Subject: Re: [PATCH 19/40] change alloc_pages name in dma_map_ops to avoid name conflicts Message-ID: References: <20230501165450.15352-1-surenb@google.com> <20230501165450.15352-20-surenb@google.com> <20230502175052.43814202@meshulam.tesarici.cz> <20230502220909.3f55ae41@meshulam.tesarici.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230502220909.3f55ae41@meshulam.tesarici.cz> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 02, 2023 at 10:09:09PM +0200, Petr Tesařík wrote: > Ah, right, I admit I did not quite understand why this change is > needed. However, this is exactly what I don't like about preprocessor > macros. Each macro effectively adds a new keyword to the language. > > I believe everything can be solved with inline functions. What exactly > does not work if you rename alloc_pages() to e.g. alloc_pages_caller() > and then add an alloc_pages() inline function which calls > alloc_pages_caller() with _RET_IP_ as a parameter? Perhaps you should spend a little more time reading the patchset and learning how the code works before commenting.