From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73A58C433E0 for ; Fri, 3 Jul 2020 01:23:57 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1FB6820748 for ; Fri, 3 Jul 2020 01:23:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ix7QrYTk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1FB6820748 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49ycgH10GjzDqXw for ; Fri, 3 Jul 2020 11:23:55 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::644; helo=mail-pl1-x644.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ix7QrYTk; dkim-atps=neutral Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49ycb53lWszDqkZ for ; Fri, 3 Jul 2020 11:20:17 +1000 (AEST) Received: by mail-pl1-x644.google.com with SMTP id w19so1308673ply.9 for ; Thu, 02 Jul 2020 18:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Pmg18ZVtz+aHnPcYNR/ar+KZfsU0xgw5dZN9uFapXrc=; b=ix7QrYTkhbDElBDQK97dD1ZIli7OvLW/q7YCa37dgxZSpEvoqvj/NxJqsufWECEq3S XSXfix0vvdAjZrZo/tEINlw/lEf9zvilReHVhtnVH+m30hJKBgbcMQkV1J0aWFUbb5KI mVn4lAk/ruolbBf+cVKfHymLp1+q2DDJ4S7C48wPGgVaHq3Z4QHjZkA9OxLHA3sEivvx 3wHYXv0G89NH3Ct7j7NZBHWcqBJ+tG9nSD8QDzP8Y5oJVWCgxwSKjpHutopLdgqblx73 lKyGbJUndXKYW4TSufT1Ci6JX1PVnu/D7zg9L0k8Wh1+WQDpqcqPHRe0ZH7oOYNzjvr5 5I+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Pmg18ZVtz+aHnPcYNR/ar+KZfsU0xgw5dZN9uFapXrc=; b=uOg7x/zkF0WbwTZ0LnYjK11KRfS81ynctvMkveve2uwwY2RpMvuL8kS/s/NfhAGgA5 W8XBvVWSaO9tz/lrlRoBh2f2ZheU2CKo3a4hu2n6FFxR4qJoXmIJjxInFQUDhFwQI5K+ FNyvEgiJ8UexKO52X9REYZnN4V8e8D8In8aUxi5gGpkUlsBHs5gLsFpAL1azjWaOWFLa Yw31SGda4Bpfu3IruRcPFJrk2z28tVgxKnKYPIA1Yn4MTChc65SpmTTQyM5X7hn8gyhM 4xJdsMuS4EZl9eL08GachlQjHMI9Ox1RUQ3E4mF053HZe67UxOPgQoWbW8+1TVi8DhYX YNkw== X-Gm-Message-State: AOAM5311Zf/ub5gm1ZnfZ/PBkOO3l4HE9eZnL0JgzG9lX3ESuPqgLVTN af6gNJBNCzDh/drXNQss8AP5XtTj X-Google-Smtp-Source: ABdhPJycoMHaJ6keUkaICJE+J9qDkLH3KGkWOscF7Ui+Q5MY7bumj4st46Jo8k4jaioh/RUFY3o5GQ== X-Received: by 2002:a17:90b:405:: with SMTP id v5mr10594146pjz.226.1593739213943; Thu, 02 Jul 2020 18:20:13 -0700 (PDT) Received: from bobo.ozlabs.ibm.com (61-68-186-125.tpgi.com.au. [61.68.186.125]) by smtp.gmail.com with ESMTPSA id v186sm10094222pfv.141.2020.07.02.18.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 18:20:13 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 1/3] powerpc: remove stale calc_vm_prot_bits comment Date: Fri, 3 Jul 2020 11:19:56 +1000 Message-Id: <20200703011958.1166620-2-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20200703011958.1166620-1-npiggin@gmail.com> References: <20200703011958.1166620-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mm@kvack.org, kvm-ppc@vger.kernel.org, Nicholas Piggin , linux-api@vger.kernel.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" This comment is wrong, we wouldn't use calc_vm_prot_bits here because we are being called by calc_vm_prot_bits to modify its behaviour. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/mman.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/powerpc/include/asm/mman.h b/arch/powerpc/include/asm/mman.h index d610c2e07b28..4ba303ea27f5 100644 --- a/arch/powerpc/include/asm/mman.h +++ b/arch/powerpc/include/asm/mman.h @@ -13,10 +13,6 @@ #include #include -/* - * This file is included by linux/mman.h, so we can't use cacl_vm_prot_bits() - * here. How important is the optimization? - */ static inline unsigned long arch_calc_vm_prot_bits(unsigned long prot, unsigned long pkey) { -- 2.23.0