Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2022 17:32:53 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 01aaff6d1c6e - main - Fix the includes in regulator_fixed.c
Message-ID:  <202210281732.29SHWrJS025071@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=01aaff6d1c6ee4aa391f2ada15db1b06baeb919b

commit 01aaff6d1c6ee4aa391f2ada15db1b06baeb919b
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-10-28 17:19:43 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-10-28 17:31:55 +0000

    Fix the includes in regulator_fixed.c
    
    Include sys/bus.h directly rather than depend on header pollution.
    While here fix the order of sys/systm.h.
    
    Sponsored by:   Innovate UK
---
 sys/dev/extres/regulator/regulator_fixed.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/extres/regulator/regulator_fixed.c b/sys/dev/extres/regulator/regulator_fixed.c
index 176d79867e07..05e0a8bb8f45 100644
--- a/sys/dev/extres/regulator/regulator_fixed.c
+++ b/sys/dev/extres/regulator/regulator_fixed.c
@@ -29,11 +29,12 @@ __FBSDID("$FreeBSD$");
 
 #include "opt_platform.h"
 #include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/bus.h>
 #include <sys/conf.h>
 #include <sys/gpio.h>
 #include <sys/kernel.h>
 #include <sys/kobj.h>
-#include <sys/systm.h>
 #include <sys/module.h>
 #include <sys/mutex.h>
 



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