> We started with the assumption that modules must be compiled > by the same compiler as the kernel was. > https://lore.kernel.org/patchwork/patch/836247/#1031547 > > Now that the compiler capability is evaluated in Kconfig, > this is a harder requirement. > > In reality, a different compiler might be used, > and, this requirement might be loosened, but > the same compiler should be required for CONFIG_GCC_PLUGINS. Hmmmm. If I'm building a module to load into a distro kernel it is very unlikely that I'll actually have the same version of the compiler installed as that used to build the kernel. Additionally some of the .o files (that don't refer to any kernel headers) may have been compiled with an entirely different compiler altogether. Whether any plugins are actually installed is another problem. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)