Message ID | 20241127-unsignedcompare1601569-v2-1-e85098fb02b2@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 AB236D6ACF7 for <linux-mm@archiver.kernel.org>; Wed, 27 Nov 2024 18:07:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 15FA36B0082; Wed, 27 Nov 2024 13:07:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 10F0A6B0085; Wed, 27 Nov 2024 13:07:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ED63C6B0088; Wed, 27 Nov 2024 13:07:34 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id CE07E6B0082 for <linux-mm@kvack.org>; Wed, 27 Nov 2024 13:07:34 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 7940C81815 for <linux-mm@kvack.org>; Wed, 27 Nov 2024 18:07:34 +0000 (UTC) X-FDA: 82832657502.18.3C6C65C Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by imf10.hostedemail.com (Postfix) with ESMTP id CA41DC0005 for <linux-mm@kvack.org>; Wed, 27 Nov 2024 18:07:29 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BNGVdIUQ; spf=pass (imf10.hostedemail.com: domain of karansanghvi98@gmail.com designates 209.85.216.49 as permitted sender) smtp.mailfrom=karansanghvi98@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1732730849; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=JO30qC1eSltn42wpK7uNVVN0jMketuZWZbHs4oqRlAQ=; b=Alg9rksomFuOEYVpIC+QQJKpRYEx8KJLD4X+y/DBMHY7JjwAGqM7/Ysd5+Y+0KGDaLmFSH hRWhtbPa4eKbt6c03KOzm/erUsifO5YFAqxsURW6+wPLQnqpKIA0f812LZTi1cSp3TL5B8 KfhzFzQaaHfZ1ryS37/ZZDj4kPjVeyo= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BNGVdIUQ; spf=pass (imf10.hostedemail.com: domain of karansanghvi98@gmail.com designates 209.85.216.49 as permitted sender) smtp.mailfrom=karansanghvi98@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1732730849; a=rsa-sha256; cv=none; b=CtqFGE4iPH1w/RFmip3g+HBTJuRNcFJb97k49/mHxPXigFoLF/qwLwzlmFQKLzvtGhFdQq 0iZZ+laVBlB20B8CN8ZeX5BReCARt8z8Qj7HLQB33FOG8xP+j1aOhAbVy6oG09tS7qsy+2 hHOmn45m1mNxP3t+vy8nQQsj15Mv9y8= Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-2eacc4c9164so63234a91.0 for <linux-mm@kvack.org>; Wed, 27 Nov 2024 10:07:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732730851; x=1733335651; darn=kvack.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=JO30qC1eSltn42wpK7uNVVN0jMketuZWZbHs4oqRlAQ=; b=BNGVdIUQoQSwEpWtgRt3qFiMdre9jUuVbGS73To8ZNCl/ZKaOmyBTkGKOK7LWypv+e HNJJXG4n5Z8mh35dK/mmxgQxWk8kd/McDNGGX2YRkLExFNBqzyNF48fRg6+hPKMDYEUn uB9nXseUS6EqswmiGvwN0yCtyKdVEV4JEr8Ls/hgJ8H2DtQxlH95dW5ZflRTLNBMOExC iBVvaf8HiITbd7Cl/ycbvWVExq9kRzBAdmQKgrBwzkKJIs+nkbt5yCL8CBBTa6iu6JrB MYfR5+f8ZuYWJTfhXMQNL89Np55esJ7b2lBcw+dA0MPlrszuWgY6eQ7sw4cb7caRBwYk 2YAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732730851; x=1733335651; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JO30qC1eSltn42wpK7uNVVN0jMketuZWZbHs4oqRlAQ=; b=qKCfWBwMYyu6QinGHFyB112tRRVXvA4lQ7vOytJG/ujoyYfXh3j2VA2qrsqUGJwKtD CKr5WIlh2q8+7MLahQXJMlSNAMcbjin35Ug60y0F6bLDo4Cwxla5QaEAV6tvxAHYCDWn dQGxNl8IbMfT76MAVOHJDzL3RW0cPMoLZX39F2NbrZylRSg5DklJTJLjAe9bqn+GrUpB GPLWFh1r2lF9dVuFW40WFNxm6CmgDAg47sIBPuECiU1tYRl7zIFIKzyN7NHtagMVFEU8 FUtQaUhy2KqCMteVQBppsGBjS8CrDsVzoQwPs9FgpVhDNvfylI97yltRd/knsDPpMltU 4SFQ== X-Gm-Message-State: AOJu0Yyje3WzMX7bhD3qmxPOgIC10DQCSOLuZwXmVVVjx4SoCjfJgmh8 Tjnz1AgczUi74WjHpBMdYZ6MPfndBSIVm9akX3tXl0vg5QsfA6y2 X-Gm-Gg: ASbGnctCXaRSk+IGH5XEa8/B9uHqfl6YCuRv78shPoyPjkY5Q2CnFa283WANn4fwv6h ZYnYtItvPOcsSAIgBLdueETatcjRu1co7x5zp4Vs2mFlKWr4kVadwJL8lllJVtRIG7bQsncaUqq A8s0OOFDqHYI1cVHQ8QsNdzuC47xwPucKeYEf9n4+KJQ4XmE6iPMbBm4fej9lJarzX3vEE9o/ri W5BlmvKMBEjiIvOjZ24ILZziZ2VJiU+bXOeCVF+0Wya0eBd X-Google-Smtp-Source: AGHT+IEQWEnf6QRiWgGsqOun2h8lAiZr/UDSJLZHM6NPDAPayRvgiSyLW+yiRwUBfx4n/fjfjJMhDA== X-Received: by 2002:a17:90b:2245:b0:2ea:546f:7e7b with SMTP id 98e67ed59e1d1-2ee08ed43f5mr5366189a91.20.1732730850828; Wed, 27 Nov 2024 10:07:30 -0800 (PST) Received: from Emma ([2401:4900:1c94:da7e:5054:ff:fe53:2787]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ee0fa41f69sm1880374a91.2.2024.11.27.10.07.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 10:07:30 -0800 (PST) From: Karan Sanghavi <karansanghvi98@gmail.com> Date: Wed, 27 Nov 2024 18:07:25 +0000 Subject: [PATCH v2] mm: shmem: Fix variable type to int to evaluate negative conditions MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20241127-unsignedcompare1601569-v2-1-e85098fb02b2@gmail.com> X-B4-Tracking: v=1; b=H4sIANxfR2cC/4WNTQ6CMBCFr0JmbU2nUExdcQ/DopahTCKFtNpoC He3cgHf7nt5PxskikwJrtUGkTInXkIBdarATTZ4EjwUBiVVg0XiFRL7QINb5tVGwlaibo2Q+q5 NrbDRNEIpr5FGfh/Dt77wxOm5xM/xk/Hn/p3MKFC4xhpXu4u2WnV+tvw4lxj0+75/ATA0VJm8A AAA To: Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org>, Gabriel Krisman Bertazi <gabriel@krisman.be>, =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com>, Christian Brauner <brauner@kernel.org> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Shuah Khan <skhan@linuxfoundation.org>, Karan Sanghavi <karansanghvi98@gmail.com> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732730847; l=1454; i=karansanghvi98@gmail.com; s=20241017; h=from:subject:message-id; bh=ZZWe+lujI7ps+VqdwJ/CTFy83PNrDorIopGskoYYJ+M=; b=bUY7isYj/AMuTElo/5ozkbncFrqqSVGrZ2PhWQzDroDdDUTH5eRaLbxnSHrC+g8I9dfxcS6ZZ kWUz+7qVpqlAznEzM51Q7PI8Ph5XCmSZbYGuO6X+EI5qW7GVwg2l76C X-Developer-Key: i=karansanghvi98@gmail.com; a=ed25519; pk=UAcbefT1C06npNVDJHdgpPqTm4WE9IhaA1fmJb3A37Y= X-Rspamd-Queue-Id: CA41DC0005 X-Stat-Signature: ejaqrs5mm95twp1z4ft1k3b5mdrnxzt1 X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1732730849-477363 X-HE-Meta: U2FsdGVkX19VEdTGva4baYk2lddV7L7N6yAh36POvk1zvXimtTStvAPJ5+wtSS044Wg8hekS0TBMMxAi+Ns/AWSjXEzmoeqOmIuMa5CDQXnlXQVhSDuo4nobA8MnzgMP0AJZeIuGv4qE7tSd7H2q9qppW4ytymwHXZf5Du6zFA936CytfunhIYNzm7Y2gfeIh+s3dzH555XGEFzRU8O0k5BsUmXBLWAqj+4hyEzaadB4qLv/ATq1caFDx4T70rnDbtWoSo5e57HeCl7Ebo9efRbSRgH0pfMbw2IUYNXfNkCFeQQMTmj06cNZqJ8eoLHhY9ZWfhah2FivFQZe5ETBjJBWbmDzraqW6/3KUlK5uYP26fetk6F6NKOYh9tEkMr7PxuQKKvQO5qSW9EnpzZBm5FSOoYpT4mg8TgAGPPUbX10hgmFjZ0SUh60bLXTOCwGOVjrZEvM7L9XxGkqIv3/uNZAmKt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BzqXTw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.004629, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[v2] mm: shmem: Fix variable type to int to evaluate negative conditions
|
expand
|
diff --git a/mm/shmem.c b/mm/shmem.c index 7987deb2be9b..17a1d4fa8870 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4367,7 +4367,7 @@ static int shmem_parse_opt_casefold(struct fs_context *fc, struct fs_parameter * bool latest_version) { struct shmem_options *ctx = fc->fs_private; - unsigned int version = UTF8_LATEST; + int version = UTF8_LATEST; struct unicode_map *encoding; char *version_str = param->string + 5;