Re: arm32 build warnings in workqueue.c

From: Linus Torvalds
Date: Mon Jul 31 2023 - 15:22:51 EST


On Mon, 31 Jul 2023 at 12:14, Tejun Heo <tj@xxxxxxxxxx> wrote:
>
> PAGE_SIZE is easily available through _SC_PAGE_SIZE, so that particular one
> is never a real problem (and a lot of tools have pre-defined helpers for it
> and similarly important constants) but yeah there are other constants which
> I sometimes wish were available through debug info.

We do have that

scripts/gdb/linux/constants.py.in

thing. Which seems to be the logical place do deal with this all.

That's where other - and arguably much more fundamental - kernel
#define's are dealt with.

Now, looking at the particular constants that are listed, I get the
feeling that the people who have done that script may be mostly
interested in filesystems, but I don't see why it wouldn't be
appropriate for the workstruct stuff too...

Linus