diff options
| author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-13 17:16:10 +0900 |
|---|---|---|
| committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-10-17 22:01:57 +0900 |
| commit | 17cc1ee6e83b16989118237294327bd0dd12b1a4 (patch) | |
| tree | 6829982972ec9c9b24d42cd86438767dfbce0cba /net/lapb/lapb_out.c | |
| parent | 1e41e693f458eef2d5728207dbd327cd3b16580a (diff) | |
ata: ahci_st: Fix compilation warning
If CONFIG_OF is disabled and the ahci_st driver is builtin (or
CONFIG_MODULES is disabled), then using the macro of_match_ptr()
results in the st_ahci_match variable being unused, which generates a
compilation warning and a compilation error if CONFIG_WERROR is enabled.
Fix this by directly assigning st_ahci_match to .of_match_table in the
st_ahci_driver platform driver definition.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
