[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z5da0aCupnXRvjr9@eleanor-wkdl>
Date: Mon, 27 Jan 2025 18:07:13 +0800
From: Yu-Chun Lin <eleanor15x@...il.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: jirislaby@...nel.org, linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org, jserv@...s.ncku.edu.tw,
visitorckw@...il.com, kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] serial: pic32: Fix build warning when CONFIG_OF is
disabled
On Mon, Jan 27, 2025 at 10:12:47AM +0100, Greg KH wrote:
> > So I should remove of_match_ptr and add the CONFIG_OF as a dependency
> > for the configuration. Correct?
>
> I don't know, but putting #ifdef in .c files is not the correct solution
> at all.
I fixed the build warning this way because I saw it was done the same way
in these three files:
drivers/tty/serial/samsung_tty.c
drivers/tty/serial/mps2-uart.c
drivers/tty/serial/altera_jtaguart.c
Or maybe we can add __maybe_unused to avoid the warning?
Yu-Chun Lin
Powered by blists - more mailing lists