Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2814692imw; Wed, 6 Jul 2022 12:13:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tg6aYKX7aMIbbJ2ZcLbZNWpx0IHxHshAITGJ+olLAuSX5dav0MJAhpFyfROcMINawmz92p X-Received: by 2002:a63:5964:0:b0:411:4724:e618 with SMTP id j36-20020a635964000000b004114724e618mr34954298pgm.484.1657134796177; Wed, 06 Jul 2022 12:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657134796; cv=none; d=google.com; s=arc-20160816; b=ltFPVphtgVBjFtjnlFIfxybXtvgW8dVQzo0fhqyTQpPnVDTICbLNRYfL3VbWFbzBkn 9UKrS6yEf7cMPvmdqKlso0xMmvwHl6j1MbDHLVKvRi1lcw+K1NU35Fah7SH5rqXm049V NyGpLhUzCwwqYB8tbwH8RRRrLJZopulX/3rOtYEFv9ta+qaY4+s8gAqT6pOR44a0ibkM pKkGYy1QpN8a766PRf0pXcoEntHKJtpRSGWcllQWKQsQB5I5p5JzRdtQROGGENgYDt2h C73Y28x8Xk6odhknDn6HOhMXKnZkH+p0nd0U62mZ0lh4o2V6PB3094rgPPxqmkmXcR2E 5wkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=W7ZbEmlw8w+6n1YU4dSmu8sxHsdlBMC3TvWwngxWekI=; b=QuUmUfWtoDXgL25oqlrL8BuHjUi3+HGJDSF/IaT2uQLHHFvo+w+XhHba+Bj5j7LKID DZ9BDc8p68hPQZNHFu0wvqha1AMoFpQBohayncn66ViCb5KyDrl7tSlqXuPt3d5lH56m oHwBNCYQfGKDTR5YvfGuIHoQ/KCMAn7Tov5ZGkiiXrInPlWrWg7XeK2iSjIuUq42rALS PhbTKQcNKwKVR027BlonLfzhN1s+OhVrW9+NTHTyg0u7kd0txw7026UGk6LtiyYogHM2 8BRTuaUUMCymmYw3pfMwW3VqRWfbJl2ZtTpvLCztOqM8BlHUrzlCFvt89HtkntkFd+Uq 9zRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=iu3oMjLg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a17090274cc00b0016be834d555si10685355plt.356.2022.07.06.12.12.56; Wed, 06 Jul 2022 12:13:16 -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-foundation.org header.s=korg header.b=iu3oMjLg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233824AbiGFTHR (ORCPT + 99 others); Wed, 6 Jul 2022 15:07:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232935AbiGFTHP (ORCPT ); Wed, 6 Jul 2022 15:07:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B7E81C11C; Wed, 6 Jul 2022 12:07:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9716D62074; Wed, 6 Jul 2022 19:07:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66AECC3411C; Wed, 6 Jul 2022 19:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1657134434; bh=K38rVZ1m/HFXpPYNXoStTqJQXufHClahIpkV/lUJaus=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iu3oMjLgVa4VT0I8PzUHKZ8okMFKeXKQV5F7gYfc1Rs/y7wXKrjDwm9jifcHo2FwE OLlblTM1qQzekK4zwzsdoSBnhP9uPhaVqUQXy10GjMaeBtVNSXsnN9pqjplsY1CPF2 1lpdYlYRvtsiwk3uILEzHv7/7p11vvyIUoK5xbI8= Date: Wed, 6 Jul 2022 12:07:12 -0700 From: Andrew Morton To: "Fabio M. De Francesco" Cc: David Sterba , Chris Mason , Josef Bacik , Nick Terrell , linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Ira Weiny , Matthew Wilcox , Kees Cook , Sebastian Andrzej Siewior , "James E. J. Bottomley" , Helge Deller , John David Anglin , linux-parisc@vger.kernel.org, David Sterba Subject: Re: [PATCH v6 1/2] highmem: Make __kunmap_{local,atomic}() take "const void *" Message-Id: <20220706120712.31b4313f17cb7ae08618c90e@linux-foundation.org> In-Reply-To: <20220706111520.12858-2-fmdefrancesco@gmail.com> References: <20220706111520.12858-1-fmdefrancesco@gmail.com> <20220706111520.12858-2-fmdefrancesco@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, 6 Jul 2022 13:15:19 +0200 "Fabio M. De Francesco" wrote: > __kunmap_ {local,atomic}() currently take pointers to void. However, this > is semantically incorrect, since these functions do not change the memory > their arguments point to. > > Therefore, make this semantics explicit by modifying the > __kunmap_{local,atomic}() prototypes to take pointers to const void. > > As a side effect, compilers will likely produce more efficient code. > Acked-by: Andrew Morton Please include this in the btrfs tree if/when [2/2] is added.