diff options
author | Vince Hsu <vinceh@nvidia.com> | 2018-07-26 07:16:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-07 04:45:02 -0400 |
commit | fde90d0c8dc9182bfa730e889ffc26cefca18ccc (patch) | |
tree | 2bcc41c596408470e9c67ecb70ffea4b4db57d52 /drivers/gpu/nvgpu/os/linux | |
parent | ea896018364560224f7047417e48b61e1c2bee38 (diff) |
gpu: nvgpu: pass correct argument to sysfs_attr_init
The sysfs_attr_init accepts pointer of struct attribute instead of
struct device_attribute. This patch fixes build error when
CONFIG_DEBUG_LOCK_ALLOC is enabled.
Bug 200432223
Change-Id: Id655ca18102c5252485db378ba2499a66d758882
Signed-off-by: Vince Hsu <vinceh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1786590
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/ecc_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c b/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c index 0962e247..d2986d7d 100644 --- a/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c +++ b/drivers/gpu/nvgpu/os/linux/ecc_sysfs.c | |||
@@ -40,7 +40,7 @@ int nvgpu_ecc_sysfs_init(struct gk20a *g) | |||
40 | ecc->stats_count); | 40 | ecc->stats_count); |
41 | break; | 41 | break; |
42 | } | 42 | } |
43 | sysfs_attr_init(&attr[i].attr); | 43 | sysfs_attr_init(&attr[i].attr.attr); |
44 | attr[i].attr.attr.name = stat->name; | 44 | attr[i].attr.attr.name = stat->name; |
45 | attr[i].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); | 45 | attr[i].attr.attr.mode = VERIFY_OCTAL_PERMISSIONS(S_IRUGO); |
46 | attr[i].var = &stat->counter; | 46 | attr[i].var = &stat->counter; |