From patchwork Fri Oct 25 03:18:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 13849982 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 214BDD116E2 for ; Fri, 25 Oct 2024 03:19:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4DD46B00A1; Thu, 24 Oct 2024 23:19:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9FD966B00A2; Thu, 24 Oct 2024 23:19:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 878996B00A3; Thu, 24 Oct 2024 23:19:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 685DE6B00A1 for ; Thu, 24 Oct 2024 23:19:04 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 53BC7160388 for ; Fri, 25 Oct 2024 03:18:42 +0000 (UTC) X-FDA: 82710667620.30.FEA81B6 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by imf27.hostedemail.com (Postfix) with ESMTP id 00AAB4000B for ; Fri, 25 Oct 2024 03:18:42 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="KQjv2/B5"; spf=pass (imf27.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=richard.weiyang@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=1729826290; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references:dkim-signature; bh=+KF0a3QTIH8Nupcu9mgsGyFvPNKwx21Ojy0W9OAQxpE=; b=6dEu1lUkR9FOSL4tpw8Rp0FfZCanY/0DQ5b8k6Fsja+hR3W80IFKsZVBUx2VSXTi0Igs3a uK1YrUjfUVdu1FxeZBw7QAeR1E2Y8Ns5rhSoZj84ho0asHWP2AuPBasUcKqGmBcMbVTfc6 WV3CyQ0vRX6lAjNDVznnsJ9PKyf54Xs= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="KQjv2/B5"; spf=pass (imf27.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729826290; a=rsa-sha256; cv=none; b=Wj17PKPoLcC2yqkv5nIXiQz2k9yLnMG7EgtfyprrITWuRmgsjf0klLtPpzCBjIwjac0zUC YZ1molCenm2yXbuxYRh5fGhyjRUKzQh5vVETL+XHnZEfrDl8L0k1sVe0R9Fq/KnXD6Jc6x 1YVOoCNJnp0hOX0K0jQ1RB++Fp9BfSk= Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5cbb0900c86so289324a12.0 for ; Thu, 24 Oct 2024 20:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729826341; x=1730431141; darn=kvack.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=+KF0a3QTIH8Nupcu9mgsGyFvPNKwx21Ojy0W9OAQxpE=; b=KQjv2/B5wkQjFpNDKCC0HEmyBLFbsZU+PLsnWA12Dc7hcsx2XOZ4xUXFaZ0n7lGnLD xzrJ33UdskCPKgggFLsevyOhM5cDcJfU8/pRhMx4mE7XjoqfYod/7g+e9NJG+ttZOkx2 2nONwlYvJWOil2oOo2/88Zk2FrBOKHBTriRGbB9bEcsOlCfyQtoFRqKtSsIVuvlT0uCi L0nVTtQO1q2KmH4YfhY5hhz4k3hDC9fyL5adJKpG4HScFVa0M6AuWoZ5i7uRanZb99OL 47GkZBnKYOChjttslfd6RaTvsrjZULrF3Lj1Q9zmDFBPF3KH1V81oVY4UjZ/8onEYMLc sF1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729826341; x=1730431141; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+KF0a3QTIH8Nupcu9mgsGyFvPNKwx21Ojy0W9OAQxpE=; b=btUE5Rx9/r9u5fkkEmcv8TXM2COPbYzxCgTlB+fd1Kjobe1T0XcqB304bw4JWfSGCK kU9on3/wyNHVU9iqiKc+rTTNWj/jci4BBTKNhWPVrGr9sDPx3rueGWRXj/Hp/9ph3K6T sYl9ePdFApe5PgxkEeIeym5ql2F9sI6vegcScGybjdt2Z1H0J8z3xIE/AwSbfn12jdTD sc+CzDB4Vyal/Jk38nEbKZiC19r5FBCzeriurTFV1DHejPHSyeCHESExYibQra3SP2uF iynzvv8xVFE9Hkfi8K+iHCEiXxUaOtjdKaMvRdMBuo2GK4lJ19o4emULHG5tINe5kgDP iuUw== X-Gm-Message-State: AOJu0Ywo5WTiP6Z6HXuhnILN0fIGABgf7VpHlAIX2C5HCy9QI/wEKoz8 3Mm6g2IRpTZQy3N90McrrPaDhZFPiD9pOMAge6V7VVPqOPTbOuhp X-Google-Smtp-Source: AGHT+IEorXw9pXMHPH4U+Zj0YOORCWN39rKpdKaCSdDbE5jR4ktf8XojAPMgqMm5ujVJZ7ByCTFN3w== X-Received: by 2002:a17:907:3f24:b0:a99:5d4c:7177 with SMTP id a640c23a62f3a-a9ad270a06cmr335549766b.6.1729826340833; Thu, 24 Oct 2024 20:19:00 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9b1dec7d69sm17315366b.7.2024.10.24.20.18.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Oct 2024 20:18:59 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org, Liam.Howlett@oracle.com, lorenzo.stoakes@oracle.com, vbabka@suse.cz, jannh@google.com Cc: linux-mm@kvack.org, Wei Yang Subject: [PATCH 3/3] tools: fix build error on parameter name omitted Date: Fri, 25 Oct 2024 03:18:47 +0000 Message-Id: <20241025031847.6274-4-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20241025031847.6274-1-richard.weiyang@gmail.com> References: <20241025031847.6274-1-richard.weiyang@gmail.com> X-Rspam-User: X-Stat-Signature: i1seb4z6a3y79i5uhbsj5wypq8w6ij7c X-Rspamd-Queue-Id: 00AAB4000B X-Rspamd-Server: rspam11 X-HE-Tag: 1729826322-944135 X-HE-Meta: U2FsdGVkX183ozGwqMYvAR1AUed56DGIMUx4LtYUgx+s6xuSYf5oLvv3mWJb7DGs3CkgUW8+dbnEjw+AnN1azA9gNdgxiVWkg4GKKZhvRRMNs1EqZ3/NXrt8QsI1vPfItTiFLScqhXaIVCPl6ioRheQRPxpkm7aA4fwY0k1SMrCoQ8bRaUEBOOeu6a9EzktQHzlQs9t2O9+KD7+GKrmaKs1H4vEoNugpLWnzisVVdrPl4mZzE7t4lUYx8vbS9tSuRQT5adSleGxztKa0/vQ3CALtagHiCxF8W1FX8Dp3BAU/d4ET0l1akYbSj63iaytTdAim4WR58zsn3BnAUD/gZ7ieK5ZIVraKjh6FK3kCKEcFAaqIl6C2tqVzJW1Vid0cPZ/VfCqjdSqR9Esy3QVq4vLHzyNDBhQu+4HQeIqsQ83nN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Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On some old version gcc, e.g. 8.2.1, it is treated an error. Just add a name for it. Signed-off-by: Wei Yang CC: Lorenzo Stoakes --- tools/testing/vma/vma.c | 2 +- tools/testing/vma/vma_internal.h | 82 ++++++++++++++++---------------- 2 files changed, 42 insertions(+), 42 deletions(-) diff --git a/tools/testing/vma/vma.c b/tools/testing/vma/vma.c index 46e8989a90ae..212b14a52bd3 100644 --- a/tools/testing/vma/vma.c +++ b/tools/testing/vma/vma.c @@ -219,7 +219,7 @@ static bool vma_write_started(struct vm_area_struct *vma) } /* Helper function providing a dummy vm_ops->close() method.*/ -static void dummy_close(struct vm_area_struct *) +static void dummy_close(struct vm_area_struct *vma) { } diff --git a/tools/testing/vma/vma_internal.h b/tools/testing/vma/vma_internal.h index c5b9da034511..b7aa9369796e 100644 --- a/tools/testing/vma/vma_internal.h +++ b/tools/testing/vma/vma_internal.h @@ -620,11 +620,11 @@ static inline unsigned long vma_pages(struct vm_area_struct *vma) return (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; } -static inline void fput(struct file *) +static inline void fput(struct file *f) { } -static inline void mpol_put(struct mempolicy *) +static inline void mpol_put(struct mempolicy *mp) { } @@ -648,15 +648,15 @@ static inline void lru_add_drain(void) { } -static inline void tlb_gather_mmu(struct mmu_gather *, struct mm_struct *) +static inline void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm) { } -static inline void update_hiwater_rss(struct mm_struct *) +static inline void update_hiwater_rss(struct mm_struct *mm) { } -static inline void update_hiwater_vm(struct mm_struct *) +static inline void update_hiwater_vm(struct mm_struct *mm) { } @@ -686,23 +686,23 @@ static inline void free_pgtables(struct mmu_gather *tlb, struct ma_state *mas, (void)mm_wr_locked; } -static inline void mapping_unmap_writable(struct address_space *) +static inline void mapping_unmap_writable(struct address_space *mapping) { } -static inline void flush_dcache_mmap_lock(struct address_space *) +static inline void flush_dcache_mmap_lock(struct address_space *mapping) { } -static inline void tlb_finish_mmu(struct mmu_gather *) +static inline void tlb_finish_mmu(struct mmu_gather *tlb) { } -static inline void get_file(struct file *) +static inline void get_file(struct file *f) { } -static inline int vma_dup_policy(struct vm_area_struct *, struct vm_area_struct *) +static inline int vma_dup_policy(struct vm_area_struct *src, struct vm_area_struct *dst) { return 0; } @@ -750,31 +750,31 @@ static inline void vm_acct_memory(long pages) { } -static inline void vma_interval_tree_insert(struct vm_area_struct *, - struct rb_root_cached *) +static inline void vma_interval_tree_insert(struct vm_area_struct *vma, + struct rb_root_cached *root) { } -static inline void vma_interval_tree_remove(struct vm_area_struct *, - struct rb_root_cached *) +static inline void vma_interval_tree_remove(struct vm_area_struct *vma, + struct rb_root_cached *root) { } -static inline void flush_dcache_mmap_unlock(struct address_space *) +static inline void flush_dcache_mmap_unlock(struct address_space *mapping) { } -static inline void anon_vma_interval_tree_insert(struct anon_vma_chain*, - struct rb_root_cached *) +static inline void anon_vma_interval_tree_insert(struct anon_vma_chain *node, + struct rb_root_cached *root) { } -static inline void anon_vma_interval_tree_remove(struct anon_vma_chain*, - struct rb_root_cached *) +static inline void anon_vma_interval_tree_remove(struct anon_vma_chain *node, + struct rb_root_cached *root) { } -static inline void uprobe_mmap(struct vm_area_struct *) +static inline void uprobe_mmap(struct vm_area_struct *vma) { } @@ -786,15 +786,15 @@ static inline void uprobe_munmap(struct vm_area_struct *vma, (void)end; } -static inline void i_mmap_lock_write(struct address_space *) +static inline void i_mmap_lock_write(struct address_space *mapping) { } -static inline void anon_vma_lock_write(struct anon_vma *) +static inline void anon_vma_lock_write(struct anon_vma *anon_vma) { } -static inline void vma_assert_write_locked(struct vm_area_struct *) +static inline void vma_assert_write_locked(struct vm_area_struct *vma) { } @@ -804,16 +804,16 @@ static inline void unlink_anon_vmas(struct vm_area_struct *vma) vma->anon_vma->was_unlinked = true; } -static inline void anon_vma_unlock_write(struct anon_vma *) +static inline void anon_vma_unlock_write(struct anon_vma *anon_vma) { } -static inline void i_mmap_unlock_write(struct address_space *) +static inline void i_mmap_unlock_write(struct address_space *mapping) { } -static inline void anon_vma_merge(struct vm_area_struct *, - struct vm_area_struct *) +static inline void anon_vma_merge(struct vm_area_struct *vma, + struct vm_area_struct *next) { } @@ -830,15 +830,15 @@ static inline int userfaultfd_unmap_prep(struct vm_area_struct *vma, return 0; } -static inline void mmap_write_downgrade(struct mm_struct *) +static inline void mmap_write_downgrade(struct mm_struct *mm) { } -static inline void mmap_read_unlock(struct mm_struct *) +static inline void mmap_read_unlock(struct mm_struct *mm) { } -static inline void mmap_write_unlock(struct mm_struct *) +static inline void mmap_write_unlock(struct mm_struct *mm) { } @@ -862,11 +862,11 @@ static inline void arch_unmap(struct mm_struct *mm, (void)end; } -static inline void mmap_assert_locked(struct mm_struct *) +static inline void mmap_assert_locked(struct mm_struct *mm) { } -static inline bool mpol_equal(struct mempolicy *, struct mempolicy *) +static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b) { return true; } @@ -878,44 +878,44 @@ static inline void khugepaged_enter_vma(struct vm_area_struct *vma, (void)vm_flags; } -static inline bool mapping_can_writeback(struct address_space *) +static inline bool mapping_can_writeback(struct address_space *mapping) { return true; } -static inline bool is_vm_hugetlb_page(struct vm_area_struct *) +static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma) { return false; } -static inline bool vma_soft_dirty_enabled(struct vm_area_struct *) +static inline bool vma_soft_dirty_enabled(struct vm_area_struct *vma) { return false; } -static inline bool userfaultfd_wp(struct vm_area_struct *) +static inline bool userfaultfd_wp(struct vm_area_struct *vma) { return false; } -static inline void mmap_assert_write_locked(struct mm_struct *) +static inline void mmap_assert_write_locked(struct mm_struct *mm) { } -static inline void mutex_lock(struct mutex *) +static inline void mutex_lock(struct mutex *lock) { } -static inline void mutex_unlock(struct mutex *) +static inline void mutex_unlock(struct mutex *lock) { } -static inline bool mutex_is_locked(struct mutex *) +static inline bool mutex_is_locked(struct mutex *lock) { return true; } -static inline bool signal_pending(void *) +static inline bool signal_pending(void *p) { return false; }