From nobody Sun Nov 24 19:41:28 2024 Received: from bg1.exmail.qq.com (bg1.exmail.qq.com [114.132.58.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FF072595 for ; Sat, 2 Nov 2024 05:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.132.58.6 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730526111; cv=none; b=ktAO6EccyS8akvbq0KnI7b7qWC5hFrWAaZtd1tDg2iKDx4ferXW08XbAH0Er/dWQumHPsaqyu0jAUXl3ARdU72jjlGYR9sTWgNwInzw/eZVhWYXWeZFdUXOKRQq2pVcxVCmu8niq24bdrzPi/0h9UgFJ+HWfhvKqpz/A71CRKRY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730526111; c=relaxed/simple; bh=yOUQSBsILkKt77B9oalo0ExmSVmo29tUfsF6B6jI7Yg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GapHctKd0XJGmKDZax2U4BAydUYiUEQnNsv9IdAL+yV92vBwT/i4qqvP5UuzL60BQjl/6uhIPoX0VBvs6P3uq1rXjEXHpqNK/F+dQmb6Ckw8rfdtQiQ/9tcrvgedkZzMWxKQMxk2XEtPYxdg/Mi9hpV8+tgWLZpxK2SPJglgesU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b=lgp50Ey0; arc=none smtp.client-ip=114.132.58.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b="lgp50Ey0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1730526092; bh=BIyYvigQq7UKFOdCDQCsps6q948TUJUQ8Syfr7kRYLc=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=lgp50Ey09tdTgFVLkWFehw/M79cvCoAluz0J4ZmsZ73cRobsw3i8Vn3pdJk2zp9eA AWUa+msR/Lx3V9XibidghcOoS+3TtulUUYyToa+dymRizp9dmMdciuiqV6W6NfK0Po CvpKSpUi2sVX6rejqfxC19NbOxg5l2HaAnuj8SwY= X-QQ-mid: bizesmtpip3t1730526061t8abo2y X-QQ-Originating-IP: lGcQ/SKHCJLsGWmdKi8OnvoZ3URBdJcfKRGdsM5umzs= Received: from avenger-OMEN-by-HP-Gaming-Lapto ( [localhost]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 02 Nov 2024 13:40:59 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 2957908697263137939 From: WangYuli To: chenhuacai@kernel.org, kernel@xen0n.name, tglx@linutronix.de, max.kellermann@ionos.com, arnd@arndb.de, wangyuli@uniontech.com Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, guanwentao@uniontech.com, jiaxun.yang@flygoat.com, zhanjun@uniontech.com, anshuman.khandual@arm.com, akpm@linux-foundation.org, vbabka@suse.cz, geert@linux-m68k.org Subject: [PATCH] LoongArch: mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS Date: Sat, 2 Nov 2024 13:40:41 +0800 Message-ID: <1BC681DB785E0181+20241102054042.74847-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpip:uniontech.com:q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HVk6eg9jDt/oHfiGvq3G8yUK6jX7e4j5Wa6qbBv86u X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= X-QQ-RECHKSPAM: 0 Content-Type: text/plain; charset="utf-8" Commit c62da0c35d58 ("mm/vma: define a default value for VM_DATA_DEFAULT_FLAGS") has unified default values of VM_DATA_DEFAULT_FLAGS across different platforms. Apply the same consistency to LoongArch. Suggested-by: Wentao Guan Signed-off-by: WangYuli --- arch/loongarch/include/asm/page.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/loongarch/include/asm/page.h b/arch/loongarch/include/asm= /page.h index e85df33f11c7..8f21567a3188 100644 --- a/arch/loongarch/include/asm/page.h +++ b/arch/loongarch/include/asm/page.h @@ -113,10 +113,7 @@ struct page *tlb_virt_to_page(unsigned long kaddr); extern int __virt_addr_valid(volatile void *kaddr); #define virt_addr_valid(kaddr) __virt_addr_valid((volatile void *)(kaddr)) =20 -#define VM_DATA_DEFAULT_FLAGS \ - (VM_READ | VM_WRITE | \ - ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \ - VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) +#define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_TSK_EXEC =20 #include #include --=20 2.45.2