lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <613d608c-8c11-497c-81ef-e061d7ab69ab@roeck-us.net>
Date:   Fri, 16 Jun 2023 06:39:19 -0700
From:   Guenter Roeck <linux@...ck-us.net>
To:     Julien Panis <jpanis@...libre.com>
Cc:     lee@...nel.org, robh+dt@...nel.org,
        krzysztof.kozlowski+dt@...aro.org, corbet@....net, arnd@...db.de,
        gregkh@...uxfoundation.org, derek.kiernan@...inx.com,
        dragan.cvetic@...inx.com, yi.l.liu@...el.com, jgg@...pe.ca,
        razor@...ckwall.org, stephen@...workplumber.org,
        prabhakar.csengg@...il.com, contact@...rsion.fr, macro@...am.me.uk,
        dsahern@...nel.org, alex.williamson@...hat.com,
        akrowiak@...ux.ibm.com, mark.rutland@....com,
        ye.xingchen@....com.cn, ojeda@...nel.org, keescook@...omium.org,
        me@...enk.de, mhiramat@...nel.org, milan@...verde.com,
        devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-doc@...r.kernel.org, sterzik@...com, u-kumar1@...com,
        eblanc@...libre.com, jneanne@...libre.com
Subject: Re: [PATCH v6 6/6] samples: Add userspace example for TI TPS6594 PFSM

On Thu, Apr 06, 2023 at 09:56:22AM +0200, Julien Panis wrote:
> This patch adds an example showing how to use PFSM devices
> from a userspace application. The PMIC is armed to be triggered
> by a RTC alarm to execute state transition.
> 
> Signed-off-by: Julien Panis <jpanis@...libre.com>
> ---
>  samples/Kconfig            |   6 ++
>  samples/Makefile           |   1 +
>  samples/pfsm/.gitignore    |   2 +
>  samples/pfsm/Makefile      |   4 ++
>  samples/pfsm/pfsm-wakeup.c | 125 +++++++++++++++++++++++++++++++++++++
>  5 files changed, 138 insertions(+)
>  create mode 100644 samples/pfsm/.gitignore
>  create mode 100644 samples/pfsm/Makefile
>  create mode 100644 samples/pfsm/pfsm-wakeup.c
> 
> diff --git a/samples/Kconfig b/samples/Kconfig
> index 30ef8bd48ba3..f23aa60a74cf 100644
> --- a/samples/Kconfig
> +++ b/samples/Kconfig
> @@ -253,6 +253,12 @@ config SAMPLE_INTEL_MEI
>  	help
>  	  Build a sample program to work with mei device.
>  
> +config SAMPLE_TPS6594_PFSM
> +	bool "Build example program working with TPS6594 PFSM driver"
> +	depends on HEADERS_INSTALL

This also needs to depend on CC_CAN_LINK to avoid errors such as

Building arm:allmodconfig ... failed
--------------
Error log:
samples/pfsm/pfsm-wakeup.c:12:10: fatal error: fcntl.h: No such file or directory
   12 | #include <fcntl.h>

seen when building images with kernel toolchains.

Guenter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ