From patchwork Wed Mar 15 03:03:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 13175242 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 721C6C76195 for ; Wed, 15 Mar 2023 03:05:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2367C8E0005; Tue, 14 Mar 2023 23:05:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1B9FE8E0001; Tue, 14 Mar 2023 23:05:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 05AA98E0005; Tue, 14 Mar 2023 23:05:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E9CB18E0001 for ; Tue, 14 Mar 2023 23:05:30 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id AE5E7AB060 for ; Wed, 15 Mar 2023 03:05:30 +0000 (UTC) X-FDA: 80569642020.21.D66B23F Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by imf09.hostedemail.com (Postfix) with ESMTP id EEACC140013 for ; Wed, 15 Mar 2023 03:05:28 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=TBNUeSBf; spf=pass (imf09.hostedemail.com: domain of palmer@rivosinc.com designates 209.85.216.41 as permitted sender) smtp.mailfrom=palmer@rivosinc.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678849529; a=rsa-sha256; cv=none; b=IioiNm1aMnSK/eLyKtjHEEs3aOMlityX7Brc1TB2+fmVN+J1ymIyTUZLVh9DBV8a/JsfLG eQ3q1N3lYhcgoogrhzLzBBpcl9rR6/Tu6lucE0bx5WECOleU+2VADiqvcbqXaU9YUwamx5 Btq3/v5pxzbUaVZwQAWAU0N0sZsqTB0= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=TBNUeSBf; spf=pass (imf09.hostedemail.com: domain of palmer@rivosinc.com designates 209.85.216.41 as permitted sender) smtp.mailfrom=palmer@rivosinc.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678849529; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=nnoQUwQmFqPgSrJHWK8d2p9DXhKQ1/cuEoil7CNd3DE=; b=VNptd2XWBj2X9VwRiHEveEpXUf6Y5mvhGL+9E4N5zAk5tm2zYxgIgFWp9ZsNoiP97k7Yu/ niuGE/DVghIlQ7fzmEeOej/r7NWAAtgZInP8noeW6KFum5CAyeFLu2mb7WANzJIvTIJfgP DJYoZCQW3plW6RAdFXrcIxSSYook58E= Received: by mail-pj1-f41.google.com with SMTP id d13so7324207pjh.0 for ; Tue, 14 Mar 2023 20:05:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1678849527; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=nnoQUwQmFqPgSrJHWK8d2p9DXhKQ1/cuEoil7CNd3DE=; b=TBNUeSBfuBa3ST4mxm1DS4OFwR6VEct391KodjBQ5eDMwvy7IAnH77PwGo1apR6bPh K7nIjhi/uZYJG5kt+DE6phOd9LZqfl9BFT5eMievU9L2UTVHzq36Jl6MFMdA5ssdKwUN gDJDd53OvmzgZShoscboUxRy+5c9II5aP7YLMLZ2PLDTbZH0uvz7j7szJopkCepK9dLm cA4Pv0tR7bnX1Y0V928WrhCq3OiYKHIIoWOc6+RX1qFGNwbibAeVMdjD8hiDrKwkQ60x sSkJH1wnncA5VLaZOh78cNkPD05vCaLhXPKstDORhMzPYnnwWiQ2oq7R2RYY4UnVQdNk 6WZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678849527; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nnoQUwQmFqPgSrJHWK8d2p9DXhKQ1/cuEoil7CNd3DE=; b=S1/FauIfJHOn8WRnVqI3loiuULgYLsonGGj2O1QxrpUqm0oW2rm3nynl7INge0tNBF aLzFI6UxBJCZrhMHLShZu5CQhLnUBP9o8AWvH1PU4MeIDXSynz35NYKhlz30L3s/3/+5 ktgSE3mrktq07jzZEw2OCJLZFE6vQoWHAVsf7mLNGAshAbM9/PUy5ruLMmYCuCvyy/QB O5siObaYplHWcGu2qW/KYOth1gPoQ0MdQtWA4r7eXJgeR4pq9ZAcjnGaZGz2rycghqfx Rf2ed/McRRqjL+DDCSZIbZMSluVEGBpTS95samuUkOfe9xGIdGeI7E6VhINO/T1/sO6r xMOA== X-Gm-Message-State: AO0yUKW7peIqqKTAXiebVihTnvi4RwSG6R0A4k0GykPJhCrqDt5GmDid 8lna5SysskPJRqclQbeNxPppqPEIwxNiR+Fr8PM= X-Google-Smtp-Source: AK7set9+C9cPA06JcNB4chJKZnGHWdotuV162jlrieE+Q24dYD3lVPW20yRGsbK4VhdL3hYON+iG1Q== X-Received: by 2002:a05:6a21:338c:b0:d5:4dc:16ce with SMTP id yy12-20020a056a21338c00b000d504dc16cemr7106582pzb.4.1678849527626; Tue, 14 Mar 2023 20:05:27 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id z20-20020aa785d4000000b005e093020cabsm2305210pfn.45.2023.03.14.20.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 20:05:27 -0700 (PDT) Subject: [PATCH v2 2/6] mm: Add a leading 0 to the VM_FAULT_* types Date: Tue, 14 Mar 2023 20:03:55 -0700 Message-Id: <20230315030359.14162-3-palmer@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230315030359.14162-1-palmer@rivosinc.com> References: <20230315030359.14162-1-palmer@rivosinc.com> MIME-Version: 1.0 Cc: linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Palmer Dabbelt From: Palmer Dabbelt To: akpm@linux-foundation.org X-Rspam-User: X-Rspamd-Queue-Id: EEACC140013 X-Rspamd-Server: rspam01 X-Stat-Signature: gdue94ts3egfdpwdopgp545b6oe6wqkn X-HE-Tag: 1678849528-244659 X-HE-Meta: U2FsdGVkX19gwnFvgOds97eGtYmeSPEKpxttecSElmFefauJ1QKB/Qp+Zmi9MmW2nu3/U+llcVZ1xD2a//Sk2oW7+UeY+JJV8GQs4ydaat2vDHLi9Y79uV3oB00yxOUdKn1FuMFEBiwvova0ry0ssTSRSJbLUhN5TF89sWYe/ocA/M4Ri8F3fJ93bYgdwHulj3pB7JE62YWovXxSP7QIy7gbpDb9I5QLP8hhB2RtlMYcp40aw7vKkbcd09Z6I/VKD++oOs7RL4bgqt5bzBZVOwQeiMpd6Ef+YPdeztCndVsbXHmhd6lBF70tVL9eREmSQSUBTkSGuXrDRf7Arg9sXNKY92pEhR+YVteBlPoEkLVXhDuxICBVrK1Fpa9tCUhKK4THIjEJ/jTzb9qMeX0RjTFU24sK26cvU7XNbil4jDJZOkJls6SJdwWYMbJ7t7Khb94qLeCvsIoc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1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The next patch will add enough codes to need another character, this adds the 0 to all the existing codes to keep alignment. Signed-off-by: Palmer Dabbelt --- include/linux/mm_types.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 0722859c3647..fd9b863869b4 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -941,20 +941,20 @@ typedef __bitwise unsigned int vm_fault_t; * */ enum vm_fault_reason { - VM_FAULT_OOM = (__force vm_fault_t)0x000001, - VM_FAULT_SIGBUS = (__force vm_fault_t)0x000002, - VM_FAULT_MAJOR = (__force vm_fault_t)0x000004, - VM_FAULT_HWPOISON = (__force vm_fault_t)0x000010, - VM_FAULT_HWPOISON_LARGE = (__force vm_fault_t)0x000020, - VM_FAULT_SIGSEGV = (__force vm_fault_t)0x000040, - VM_FAULT_NOPAGE = (__force vm_fault_t)0x000100, - VM_FAULT_LOCKED = (__force vm_fault_t)0x000200, - VM_FAULT_RETRY = (__force vm_fault_t)0x000400, - VM_FAULT_FALLBACK = (__force vm_fault_t)0x000800, - VM_FAULT_DONE_COW = (__force vm_fault_t)0x001000, - VM_FAULT_NEEDDSYNC = (__force vm_fault_t)0x002000, - VM_FAULT_COMPLETED = (__force vm_fault_t)0x004000, - VM_FAULT_HINDEX_MASK = (__force vm_fault_t)0x0f0000, + VM_FAULT_OOM = (__force vm_fault_t)0x0000001, + VM_FAULT_SIGBUS = (__force vm_fault_t)0x0000002, + VM_FAULT_MAJOR = (__force vm_fault_t)0x0000004, + VM_FAULT_HWPOISON = (__force vm_fault_t)0x0000010, + VM_FAULT_HWPOISON_LARGE = (__force vm_fault_t)0x0000020, + VM_FAULT_SIGSEGV = (__force vm_fault_t)0x0000040, + VM_FAULT_NOPAGE = (__force vm_fault_t)0x0000100, + VM_FAULT_LOCKED = (__force vm_fault_t)0x0000200, + VM_FAULT_RETRY = (__force vm_fault_t)0x0000400, + VM_FAULT_FALLBACK = (__force vm_fault_t)0x0000800, + VM_FAULT_DONE_COW = (__force vm_fault_t)0x0001000, + VM_FAULT_NEEDDSYNC = (__force vm_fault_t)0x0002000, + VM_FAULT_COMPLETED = (__force vm_fault_t)0x0004000, + VM_FAULT_HINDEX_MASK = (__force vm_fault_t)0x00f0000, }; /* Encode hstate index for a hwpoisoned large page */