Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2024 19:16:50 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 323d4a20bd20 - stable/13 - LinuxKPI: remove extern from function declarations
Message-ID:  <202406121916.45CJGoiM004115@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=323d4a20bd202463b2da29b7d7d1957671c66619

commit 323d4a20bd202463b2da29b7d7d1957671c66619
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-05-27 19:49:45 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-06-12 16:58:06 +0000

    LinuxKPI: remove extern from function declarations
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    emaste (earlier version, found another two)
    Differential Revision: https://reviews.freebsd.org/D45386
    
    (cherry picked from commit ecd1d1f1dac49c7ecbf1e7c5ffc64356c2851efd)
---
 sys/compat/linuxkpi/common/include/linux/gfp.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/gfp.h b/sys/compat/linuxkpi/common/include/linux/gfp.h
index 2fcc0dc05f29..e5dd2e44b0fa 100644
--- a/sys/compat/linuxkpi/common/include/linux/gfp.h
+++ b/sys/compat/linuxkpi/common/include/linux/gfp.h
@@ -90,15 +90,15 @@ struct page_frag_cache {
  *
  * NOTE: This function only works for pages allocated by the kernel.
  */
-extern void *linux_page_address(struct page *);
+void *linux_page_address(struct page *);
 
 #define	page_address(page) linux_page_address(page)
 
 /*
  * Page management for unmapped pages:
  */
-extern struct page *linux_alloc_pages(gfp_t flags, unsigned int order);
-extern void linux_free_pages(struct page *page, unsigned int order);
+struct page *linux_alloc_pages(gfp_t flags, unsigned int order);
+void linux_free_pages(struct page *page, unsigned int order);
 void *linuxkpi_page_frag_alloc(struct page_frag_cache *, size_t, gfp_t);
 void linuxkpi_page_frag_free(void *);
 void linuxkpi__page_frag_cache_drain(struct page *, size_t);
@@ -147,8 +147,8 @@ dev_alloc_pages(unsigned int order)
 /*
  * Page management for mapped pages:
  */
-extern vm_offset_t linux_alloc_kmem(gfp_t flags, unsigned int order);
-extern void linux_free_kmem(vm_offset_t, unsigned int order);
+vm_offset_t linux_alloc_kmem(gfp_t flags, unsigned int order);
+void linux_free_kmem(vm_offset_t, unsigned int order);
 
 static inline vm_offset_t
 get_zeroed_page(gfp_t flags)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406121916.45CJGoiM004115>