Message ID | 20250111-unsignedcompare1601569-v3-1-c861b4221831@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 25B07E7719A for <linux-mm@archiver.kernel.org>; Sat, 11 Jan 2025 15:31:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 90C836B0083; Sat, 11 Jan 2025 10:31:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8956B6B0085; Sat, 11 Jan 2025 10:31:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 70F346B0088; Sat, 11 Jan 2025 10:31:51 -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 535236B0083 for <linux-mm@kvack.org>; Sat, 11 Jan 2025 10:31:51 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id E1E5716135D for <linux-mm@kvack.org>; Sat, 11 Jan 2025 15:31:50 +0000 (UTC) X-FDA: 82995561180.19.217DD39 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by imf07.hostedemail.com (Postfix) with ESMTP id 0E22C40006 for <linux-mm@kvack.org>; Sat, 11 Jan 2025 15:31:48 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fNalf17O; spf=pass (imf07.hostedemail.com: domain of karansanghvi98@gmail.com designates 209.85.214.177 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=1736609509; a=rsa-sha256; cv=none; b=Oqqz/0AvEabBcvBS2pNMzSn0b74RDUFzXf6FT4VP2nvo7Hvvkj7W07tCjl8bKNeZjnZjlA A37MfMwkd0wde8XhZl1BiWuU+MnbxQIr/jXKpqgbaIxdFh4ckk/K00ZgtnB36UZLRh3tBU WmElPe1EJ8Cl2QxjsRo4BX0AW0fkp/Q= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fNalf17O; spf=pass (imf07.hostedemail.com: domain of karansanghvi98@gmail.com designates 209.85.214.177 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=1736609509; 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=3yf+o4moCsNQBHu+6xUSFsr3GNr9nS49vZol2X3CoWg=; b=65ymRxWoopL4qX7bXhtnWllCFw20IaKgRLmACcVZbaTFcb3tRcW09b9H3FHUzetmU0TouW zI9L3ArrETJltQvUhylYuLbo6HNXyjI9kM1bxIOBrwOp4HGzloD1SiyLrzlF1OAqxIzQ0h y8AO8KCVyx73qe9fsGN/UJp2uVU3HkM= Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-21631789fcdso52423205ad.1 for <linux-mm@kvack.org>; Sat, 11 Jan 2025 07:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736609508; x=1737214308; 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=3yf+o4moCsNQBHu+6xUSFsr3GNr9nS49vZol2X3CoWg=; b=fNalf17OSLFJWXfCrbCDZ8ncTGtaXX2h9OoJI43VEUs8OUb9obv9OX3/MBbTYUlHi/ isZWzcOFUkJZtSCC0KwxerW+viJ/u8tXHbUAhT0IUxLP2hH7q81zTJdbj5Z7QfUy2pqV /VspMDj8AFxvQJuBFO4QHQE+rcI1F4vuBZjq/weZJYAvphjpFHS2hcHCKqEzgALGyXP8 agWPK3ZCNTFbXAvfBnloLw9BYPV/dO59vxFfHEguLbOMNRgzKDS+2EajLPoOJ1TxDE+O QW4vfVI+WI254agMd29LeB+ob4ebWDN9zySe/CvWJu8H599RxrYfnLRsawDcwRs+Z3RO SZgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736609508; x=1737214308; 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=3yf+o4moCsNQBHu+6xUSFsr3GNr9nS49vZol2X3CoWg=; b=BzuoXYQKdIyN7D9qw+sCqnxKZW8tvDSkCevGGSQnT3pr/2ZYyI9VrZKVtgj+QyhQbD 6cTxfZgHNQkFePWS72xI2HFpA9BBO/L5neU9d0yYvsrcQY7Td5Y4ZSt81MkbFS33j2YH xiUzt/RxKQ/+GJKj9uVsxfFG1OP/YmfN6vZkMpHBlC79WPFaLxrZ+ol/KA3kCCU2G3di 6GRVBVrifpq75LUKdfLMrwZpm3WiprJgNRR8Zwl70+MCVwv/ewrNUI1oWsOk+v7xmvXe 4Jb5vdN9jpjwPA6wk/k0FTNJMTvfJ3MG1k7PjMWq4jgVNP5JUd1hXfxmhiVkcQrxRDkn ql8Q== X-Gm-Message-State: AOJu0YyyqOfEG5FmNc4T1mmJgOE6mWyagUltjzQ2u+7pGV8sf6KrBV4P XXNZfl5KXgkjwPYuMjXjGSfsr+Ta0dOBtgGgxyQskC/okMGqxzmre7At2X1OEOb3TA== X-Gm-Gg: ASbGncu0oNvbpAoYiPqpMxArJiQpZ8ShAUDnJw8avr90f4ypiOFyaAG5yCZCK5VAynh Y4N0arAgY+NyadF68jfrE675ysrp8bNQLFB+eohu3p35lSgo4y3pwS4tYuaoV3mUWyYkwpp+JYq aaaf+v7gdUkpqZO8ni4QL7GbycmcyQjFuJJAVF5Gtoa9dWckqytywY/t+SltBYnDLjvxnF2l8ne 1aHvHY9XxZ6xt/AxsN5106Ac3ekHefydn3ApjncsJlVnbA6h+xG09o= X-Google-Smtp-Source: AGHT+IHeDl1/a/r/94jIOxt+peopr3YLU7kN/ZQBg3duiznfbuTUC59j/Qol9V68paJ6ojMnd/GztA== X-Received: by 2002:a05:6a00:8d8e:b0:725:4301:ed5a with SMTP id d2e1a72fcca58-72d324995b4mr15963472b3a.2.1736609507506; Sat, 11 Jan 2025 07:31:47 -0800 (PST) Received: from Emma ([2401:4900:1c96:bd6b:5054:ff:fe53:2787]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72d4056a5ddsm3254591b3a.52.2025.01.11.07.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2025 07:31:46 -0800 (PST) From: Karan Sanghavi <karansanghvi98@gmail.com> Date: Sat, 11 Jan 2025 15:31:30 +0000 Subject: [PATCH v3] mm: shmem: Use signed int for version handling in casefold option MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20250111-unsignedcompare1601569-v3-1-c861b4221831@gmail.com> X-B4-Tracking: v=1; b=H4sIANGOgmcC/4XNwQ6CMAwG4FchOzuzFQbMk+9hPIxRoIkMsumiI by7g5MejL39zd+vCwvoCQM7ZQvzGCnQ5FLIDxmzg3E9cmpTZiCgkGn4wwXqHbZ2GmfjUZZCqlJ zoRqlc5CFwo6l49ljR88dvlxTHijcJ//a/0S5bf+SUXLJbWG0zW2ljIJzPxq6HVONbWSEDwaqn wwkBmsldN01ApovZl3XN1hIIOIDAQAA 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=1736609492; l=1683; i=karansanghvi98@gmail.com; s=20241017; h=from:subject:message-id; bh=ekxFFBOleE1K94YnyfoF4Ve0DsLY3RqwTifUJ16OIE0=; b=FprJgiDdJvJlqmLiolLRcJL5obQUlg3wUY4TiQzlHROe3oTPl7k1wIuVFRHrmnVi82dp7uuen sH5mFe67Z5lAHY/EIUPsQr5Ew0+vfXAX+/6kfERTkfLHxJGhy8rqemi X-Developer-Key: i=karansanghvi98@gmail.com; a=ed25519; pk=UAcbefT1C06npNVDJHdgpPqTm4WE9IhaA1fmJb3A37Y= X-Rspamd-Queue-Id: 0E22C40006 X-Stat-Signature: 1yhyn7fmhz444bwa3kzfzsrchhqmumgk X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1736609508-716390 X-HE-Meta: U2FsdGVkX1+ORFZi6ZaF1K/jRQIwTZEZp7DCsIvhyM+qvO6TnU0T/zTpMDvXNKkDtPTaYhyjSrwDzFf2r0bAlke5kyGb+2z8SzSFK2d9XWJeaS7TvRGKe/cr/gVuOwYJbQJysRKYu3mpAazOfpazxokTLW9HZvJq5u6Huxri20N+TsXSTCsjvQiklI06fZPyJcBUhJI8RV2mYFQHkgmPfV+aFuQRL8vKuyBPfEQh8DM0qCpkIX16xv/28UKW3rENIporO4APShlJwceXfpuUjqNQ8+WEQJk/b9gA5oh9XaTUbKOmw4lEg3hlw9b8PAwl2/HSE6hpdzi2fDZmUSgIOVKPHHIZW4Zpn83/rYjFsRO3jZ4dPYILmhpYQAJCSyNpS0sL9JFm5EehEHTKdod6bfAymejRZDx5Ok4wuEzyAvHZ9uFtLxPeEw2mX8cWzsqSDQ5pw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DTvsmYGeJmHOsE55ODBEi2clQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000634, 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 |
[v3] mm: shmem: Use signed int for version handling in casefold option
|
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;