]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: Mark max_segment with static keyword
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 2 Sep 2020 17:31:05 +0000 (20:31 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Sep 2020 13:41:31 +0000 (09:41 -0400)
commitada529dc164df9ff8c7674ab6236ca3f17694ab9
treed2e195a2f90c6f5b4629bbdd3330fc86cb1055f0
parent942b1d07b26a9e0d6e6ada5afc3f0662b670bfb8
swiotlb: Mark max_segment with static keyword

Sparse is not happy about max_segment declaration:

  CHECK   kernel/dma/swiotlb.c
  kernel/dma/swiotlb.c:96:14: warning: symbol 'max_segment' was not declared. Should it be static?

Mark it static as suggested.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c