[PATCH 2/2] pwm: sophgo: add driver for Sophgo SG2042 PWM

Chen Wang unicorn_wang at outlook.com
Mon Sep 9 02:08:41 PDT 2024


On 2024/9/9 16:45, Geert Uytterhoeven wrote:
> Hi Chen,
>
> On Mon, Sep 9, 2024 at 10:26 AM Chen Wang <unicorn_wang at outlook.com> wrote:
>> I wonder why CONFIG_PWM_SOPHGO_SG2042 is enabeld for m68k? Please remove
>> this.
> Because it depends on ARCH_SOPHGO || COMPILE_TEST.
> So it can be enabled on all architectures when compile-testing.
Thanks, it's really a potential defect when CONFIG_OF is not set, will 
fix this in next version.
>> On 2024/9/8 1:58, kernel test robot wrote:
>>> kernel test robot noticed the following build warnings:
>>>
>>> [auto build test WARNING on 431c1646e1f86b949fa3685efc50b660a364c2b6]
>>>
>>> url:    https://github.com/intel-lab-lkp/linux/commits/Chen-Wang/dt-bindings-pwm-sophgo-add-bindings-for-sg2042/20240905-201303
>>> base:   431c1646e1f86b949fa3685efc50b660a364c2b6
>>> patch link:    https://lore.kernel.org/r/3985690b29340982a45314bdcc914c554621e909.1725536870.git.unicorn_wang%40outlook.com
>>> patch subject: [PATCH 2/2] pwm: sophgo: add driver for Sophgo SG2042 PWM
>>> config: m68k-randconfig-r133-20240907 (https://download.01.org/0day-ci/archive/20240908/202409080100.h6lX5Asm-lkp@intel.com/config)
>>> compiler: m68k-linux-gcc (GCC) 14.1.0
>>> reproduce: (https://download.01.org/0day-ci/archive/20240908/202409080100.h6lX5Asm-lkp@intel.com/reproduce)
>>>
>>> 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 at intel.com>
>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202409080100.h6lX5Asm-lkp@intel.com/
>>>
>>> All warnings (new ones prefixed by >>):
>>>
>>>>> drivers/pwm/pwm-sophgo-sg2042.c:99:34: warning: 'sg2042_pwm_match' defined but not used [-Wunused-const-variable=]
>>>         99 | static const struct of_device_id sg2042_pwm_match[] = {
>>>            |                                  ^~~~~~~~~~~~~~~~
>>>
>>>
>>> vim +/sg2042_pwm_match +99 drivers/pwm/pwm-sophgo-sg2042.c
>>>
>>>       98
>>>     > 99       static const struct of_device_id sg2042_pwm_match[] = {
>>>      100               { .compatible = "sophgo,sg2042-pwm" },
>>>      101               { },
>>>      102       };
>>>      103       MODULE_DEVICE_TABLE(of, sg2042_pwm_match);
>>>      104
> Gr{oetje,eeting}s,
>
>                          Geert
>



More information about the linux-riscv mailing list