mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: anis chali <chalianis1@gmail.com>
Cc: BAREBOX <barebox@lists.infradead.org>
Subject: Re: [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled
Date: Mon, 4 Aug 2025 11:41:37 +0200	[thread overview]
Message-ID: <ffe9efb4-78d5-4dc9-b4ea-dde00f0060f6@pengutronix.de> (raw)
In-Reply-To: <CAL+1fyCC0V3MO4tmgBJumbdPn7_BhQc-60s3QhGjye0rQQVpPw@mail.gmail.com>

Hi,

[adding back barebox mailing list]

On 7/30/25 08:57, anis chali wrote:
> Hi Ahmad, 
> I will check back tomorrow,  but I faced the issue when I compiled efi
> on arm64 using the clocksource efi will compile the stuff inside the
> fixed clock and there is a code using of variant that raised an
> undefined reference but maybe it's all good since arm64 support device
> trees, so adding the config to enable of tree support will eliminate the
> issue.

If there is a build error, it should be fixed. I was just wondering how
you ran into it.

Cheers,
Ahmad

> 
> Cheers, 
> Anis
> 
> 
> Le mer. 30 juil. 2025, 02:23, Ahmad Fatoum <a.fatoum@pengutronix.de
> <mailto:a.fatoum@pengutronix.de>> a écrit :
> 
>     Hi Anis,
> 
>     On 30.07.25 05:50, chalianis1@gmail.com
>     <mailto:chalianis1@gmail.com> wrote:
>     > From: Chali Anis <chalianis1@gmail.com <mailto:chalianis1@gmail.com>>
>     >
>     > This permits to not compile when it's not used, fix undefined
>     > reference error.
> 
>     Normally undefined references are garbage collected by the linker if
>     the code that references them is going to be discarded as well.
> 
>     We have configurations with and without OF support that make use
>     of clocks in CI I think, so I am curious to know what configuration
>     you used to provoke the error.
> 
>     Cheers,
>     Ahma
> 
>     >
>     > Signed-off-by: Chali Anis <chalianis1@gmail.com
>     <mailto:chalianis1@gmail.com>>
>     > ---
>     >  drivers/clk/clk-fixed-factor.c | 3 +++
>     >  1 file changed, 3 insertions(+)
>     >
>     > diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-
>     fixed-factor.c
>     > index d2c808d40c63..ea04a4bf7f0f 100644
>     > --- a/drivers/clk/clk-fixed-factor.c
>     > +++ b/drivers/clk/clk-fixed-factor.c
>     > @@ -97,6 +97,8 @@ struct clk_hw
>     *clk_hw_register_fixed_factor(struct device *dev,
>     >                                                      flags, mult,
>     div));
>     >  }
>     > 
>     > +#ifdef CONFIG_COMMON_CLK_OF_PROVIDER
>     > +
>     >  /**
>     >   * of_fixed_factor_clk_setup() - Setup function for simple fixed
>     factor clock
>     >   */
>     > @@ -130,3 +132,4 @@ static int of_fixed_factor_clk_setup(struct
>     device_node *node)
>     >  }
>     >  CLK_OF_DECLARE(fixed_factor_clk, "fixed-factor-clock",
>     >               of_fixed_factor_clk_setup);
>     > +#endif
> 
> 
>     -- 
>     Pengutronix e.K.                           |                       
>          |
>     Steuerwalder Str. 21                       | http://
>     www.pengutronix.de/ <http://www.pengutronix.de/>  |
>     31137 Hildesheim, Germany                  | Phone:
>     +49-5121-206917-0    |
>     Amtsgericht Hildesheim, HRA 2686           | Fax: 
>      +49-5121-206917-5555 |
> 

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




      parent reply	other threads:[~2025-08-04  9:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-30  3:50 chalianis1
2025-07-30  3:50 ` [PATCH] arm: efi: add a dummy efi arch on ARM64 chalianis1
2025-07-30  6:12   ` Ahmad Fatoum
2025-07-30  6:23 ` [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled Ahmad Fatoum
     [not found]   ` <CAL+1fyCC0V3MO4tmgBJumbdPn7_BhQc-60s3QhGjye0rQQVpPw@mail.gmail.com>
2025-08-04  9:41     ` Ahmad Fatoum [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ffe9efb4-78d5-4dc9-b4ea-dde00f0060f6@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=chalianis1@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox