mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: fix sparse warning
Fix below sparse warning : $TOP/kernel/nvgpu/drivers/gpu/nvgpu/pci.c:145:14: warning: symbol 'nvgpu_pci_class' was not declared. Should it be static? Bug 200088648 Change-Id: Ia3e8f1ae426fa72254b5204da0f6f85502b4670c Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1155981 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
committed by
Bharat Nihalani
parent
f3cb140a71
commit
e4dc4adb3b
@@ -142,7 +142,7 @@ static char *nvgpu_pci_devnode(struct device *dev, umode_t *mode)
|
||||
return kasprintf(GFP_KERNEL, "nvgpu-pci/%s", dev_name(dev));
|
||||
}
|
||||
|
||||
struct class nvgpu_pci_class = {
|
||||
static struct class nvgpu_pci_class = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "nvidia-pci-gpu",
|
||||
.devnode = nvgpu_pci_devnode,
|
||||
|
||||
Reference in New Issue
Block a user