Bug 280631 - [PATCH] vm_pageout: fix build error
Summary: [PATCH] vm_pageout: fix build error
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 15.0-CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Doug Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-05 13:52 UTC by Kenneth Raplee
Modified: 2024-08-05 15:10 UTC (History)
1 user (show)

See Also:


Attachments
Git formatted patch to fix build error in sys/vm/vm_pageout.c (1.07 KB, patch)
2024-08-05 13:52 UTC, Kenneth Raplee
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Raplee 2024-08-05 13:52:44 UTC
Created attachment 252517 [details]
Git formatted patch to fix build error in sys/vm/vm_pageout.c

Fixes the following build error:

    /usr/src/sys/vm/vm_pageout.c:369:14: error: variable 'object' set but not used [-Werror,-Wunused-but-set-variable]
    --- modules-all ---
    --- all_subdir_ae ---
    ===> ae (all)
    --- vm_pageout.o ---
      369 |         vm_object_t object;
          |
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-08-05 15:07:47 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=8bb6b413f6d32a7db111246b5d2aa8a2b9e50734

commit 8bb6b413f6d32a7db111246b5d2aa8a2b9e50734
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-08-05 15:05:15 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-08-05 15:07:18 +0000

    vm/vm_pageout.c: eliminate write-only variable

    PR:     280631
    Fixes:  acb4cb33d35838e3e86412202cd63d9021b21ce2 (non-debug builds)
    Sponsored by:   The FreeBSD Foundation

 sys/vm/vm_pageout.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)