From patchwork Fri Nov 15 23:57:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keren Sun X-Patchwork-Id: 13877411 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 A1208D68BDD for ; Fri, 15 Nov 2024 23:57:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C342E6B00AD; Fri, 15 Nov 2024 18:57:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BC1FD6B00AE; Fri, 15 Nov 2024 18:57:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A35726B00B0; Fri, 15 Nov 2024 18:57:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 812386B00AD for ; Fri, 15 Nov 2024 18:57:52 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id F1C3240A6E for ; Fri, 15 Nov 2024 23:57:51 +0000 (UTC) X-FDA: 82789992684.19.C65A522 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by imf04.hostedemail.com (Postfix) with ESMTP id 1A76E4000A for ; Fri, 15 Nov 2024 23:56:51 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=EFWKD9+S; spf=pass (imf04.hostedemail.com: domain of 3_d83ZwgKCNwICPCLQSLEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--kerensun.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3_d83ZwgKCNwICPCLQSLEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--kerensun.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731714924; 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:in-reply-to: references:dkim-signature; bh=Nw3bU4V27TPmp6Re8ExQGjVU+DnBp9+SCSKcT6kc7do=; b=Ngs6p8lwjZHcbT2UPsJg/QXgw9hsy5ww/VpY1WGHxMjwofygGOZwawGMGqF6Nm2i5ad5ts duhSwUWKOBa9Ur6bOx7fxZ6AtB007fc7tDgxH8GjDKr3Y12sXjJhXm5aIb6+l2PnGcTCy8 BEUfWD2xWDm+6gNmEMkCNS/CINFelhY= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731714924; a=rsa-sha256; cv=none; b=KFGJ/WxtaUV7NvPBOKbiDpMJag+B8PR55qt0TwzMRsF6nSIGAAvpJNWiOdzr3yLKQcXRAN /ZPHJF9//wuFY2yYhr3DseE2YkL6pETE7um4gSKvdswaGTLSfFzRGUS9Kxu0XAVXHOmJKN MfS7E5ynJuXqrb7rZfmcvpRcc+zEgLo= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=EFWKD9+S; spf=pass (imf04.hostedemail.com: domain of 3_d83ZwgKCNwICPCLQSLEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--kerensun.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3_d83ZwgKCNwICPCLQSLEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--kerensun.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-e30cf48435fso3324696276.0 for ; Fri, 15 Nov 2024 15:57:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1731715069; x=1732319869; darn=kvack.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=Nw3bU4V27TPmp6Re8ExQGjVU+DnBp9+SCSKcT6kc7do=; b=EFWKD9+SrwqeFK0hgK36H4bDOxoT5hiD1t6RiovvqLTsYDaczPox+kRDFwN6Jp2ABC ATkC7jUge/xY63K4fBSDB9BE/RItUXEd4OgPLDB7DFC2jjrxAYxXrTNCSzbR5eIGhYEb FoUadV9lYqFL1l4+gpO+03sUqP+wCod5P5SGavPV7TRGEcB0qh0LSQ3MMvwChsDldy5/ wMGGNhN2/nUFPPgOF9ujgazgdzJNELvZQD5M/yIgjXekX7FIb6cnn4NH8MkBXEz+1CDv fimuMsOjbfHvTdCDeM+VdHTZlKAJ6i85cvMCveIZBI/TAWe2CRbPIILL34DIlhoz0Ix+ h8tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731715069; x=1732319869; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Nw3bU4V27TPmp6Re8ExQGjVU+DnBp9+SCSKcT6kc7do=; b=TuiIyBCbkgpfRbX42riwXzbxmn/UNpxF/oca7IOaawjOxlx+20+IsxzKwmWIsjhiIh S23WeLKcYHK2fklRQfATcpfE4jQG9QVqgDB7ecdmJBmge7qZCADJw+pjuw8s+T2K1kXQ bhI5mU2RHz15sdefiKmiF+FZH/ilNVboVMNmSJY5EWPJAtuHYNTlrJoyBAXV0W+rQTyv 6iA+W1qsEqvCSXy4d2hkC18DY2HUpgAUOS0fSesxiqqOCG8nIw4lNwof5wHPcDwnmE05 ixOmTTJo1vRlgfBIqAAEugMnAJWS4DtczW2LyvMdiPQdcxZ3COUNSBoAO1DLtqbuMX7/ hNsg== X-Forwarded-Encrypted: i=1; AJvYcCWvsYra9PYe8NPfrb6dSiiAluqOk/cd7Q7ORUzBbq5JhMxVXUoR93FWWAE3+kTvD4VVJ6G6bkrnzQ==@kvack.org X-Gm-Message-State: AOJu0YxDCTZtoFTDIUIHIZXjaRdLAOsefZl1svjJX5qGQMU2RfsEGalh IKjTTkEiogHZwO5vkW2xURmpoBAJ/eH0cPXqKJjNpwFMgJg4zWFZB+lD3ejNOA1Ok0HHwiF2F/f O+RDXbdUKVw== X-Google-Smtp-Source: AGHT+IEWq7t1tAIsrlf5M+Kv66u7NJ88IRp2HxreC5eRJF9TCkRDpi6vsM+EPFKgV8XHfVDcd5aH59gbHkuWqA== X-Received: from kerensun.svl.corp.google.com ([2620:15c:2c5:11:f2d6:8e6c:5a90:ef1e]) (user=kerensun job=sendgmr) by 2002:a25:6b42:0:b0:e38:7c92:33c9 with SMTP id 3f1490d57ef6-e387c9235d9mr800276.2.1731715069167; Fri, 15 Nov 2024 15:57:49 -0800 (PST) Date: Fri, 15 Nov 2024 15:57:41 -0800 Mime-Version: 1.0 X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog Message-ID: <20241115235744.1419580-1-kerensun@google.com> Subject: [PATCH 0/3] mm: fix format issues and param types From: Keren Sun To: akpm@linux-foundation.org Cc: roman.gushchin@linux.dev, hannes@cmpxchg.org, mhocko@kernel.org, shakeel.butt@linux.dev, muchun.song@linux.dev, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Keren Sun X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 1A76E4000A X-Stat-Signature: 53joztmzdu7p7ywzqctex3zegp9tfa6o X-HE-Tag: 1731715011-709404 X-HE-Meta: U2FsdGVkX180y6vIzdslDnp/pAdoZQlfS8Z8/hbgwmgcT928P5EDsPq4i5Df3DbbkbtjE3GzCUCXETSIp3L2Gys3Zz1fQEJ48ButKXISv4grAXWe7ncboXjskiyOLkNQD65H0jiW2ohuFNEYLtFNLp6qN3HbqO8cuS9n8hOiWBErMnB82dzhzG0LcvopEGdQ4a9q4zsw2MLhuTDxthVcR+lR9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QCBLg2/sMDw4Y3RSZIg/IDQrJ4yss/tqDj4/ZiOjET/S3/NJ8SwF55937fZS1eXUdjohUtNY+wnCxgsGsTp0Jaj+qHztzL4FKr2n4wmBPt2QqMZ7eeUEBOt7FVZDhlJKoiguyCFE1rDlKxnQVnLBoGEfCIZ65Ii+KxwhMoUaS380f4JWOKN9gNkMeniObHVCFsq/acWA9EsWyTbD9Jrd6AjmWjfSA75uWIW2CS1UhyEyjxTEUOMfzqutUzasmhV8uvf/bUfB0fT4Vye X-Bogosity: Ham, tests=bogofilter, spamicity=0.328379, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Fix some minor issues including improving formats, update params types in functions, and removing logic duplicacies, most of which are warned by checkpatch scirpt. Keren Sun (3): mm: prefer 'unsigned int' to bare use of 'unsigned' mm: remove unnecessary whitespace before a quoted newline mm: remove the non-useful else after a break in a if statement mm/memcontrol-v1.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)