Re: [PATCH v7 4/6] pinctrl: Add RTL8231 pin control and GPIO support

From: Sander Vanheule

Date: Tue Nov 18 2025 - 17:24:03 EST


On Wed, 2025-11-19 at 05:19 +0800, kernel test robot wrote:
> Hi Sander,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on lee-mfd/for-mfd-next]
> [also build test ERROR on lee-mfd/for-mfd-fixes lee-leds/for-leds-next linusw-
> pinctrl/devel linusw-pinctrl/for-next linus/master v6.18-rc6 next-20251118]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url:   
> https://github.com/intel-lab-lkp/linux/commits/Sander-Vanheule/dt-bindings-leds-Binding-for-RTL8231-scan-matrix/20251118-055707
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
> patch link:    https://lore.kernel.org/r/20251117215138.4353-5-sander%40svanheule.net
> patch subject: [PATCH v7 4/6] pinctrl: Add RTL8231 pin control and GPIO support
> config: nios2-allmodconfig
> (https://download.01.org/0day-ci/archive/20251119/202511190436.9oQLbI8A-lkp@xxxxxxxxx/co
> nfig)
> compiler: nios2-linux-gcc (GCC) 11.5.0
> reproduce (this is a W=1 build):
> (https://download.01.org/0day-ci/archive/20251119/202511190436.9oQLbI8A-lkp@xxxxxxxxx/re
> produce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> > Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > Closes: https://lore.kernel.org/oe-kbuild-all/202511190436.9oQLbI8A-lkp@xxxxxxxxx/
>
> All error/warnings (new ones prefixed by >>):
>
> > > drivers/pinctrl/pinctrl-rtl8231.c:28:27: error: expected identifier or '(' before
> > > ':' token
>       28 | enum rtl8231_pin_function : uintptr_t {
>          |                           ^

This isn't supported yet pre-C23 and before GCC 13. I will look to ensure the a properly
sized integer is stored into the pinfunction's data pointer.

Best,
Sander