Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1642306

[PATCH] Staging: comedi: comedidev.h: fixed a warning

From srishti <srishtishar@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] Staging: comedi: comedidev.h: fixed a warning
Date 2017-05-16 10:40 +0200
Message-ID <tHGbn-3ia-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Fixed a warning : struct comedi_lrange is generally constant.

Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
---
 drivers/staging/comedi/comedidev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h
index 1bb9986..82df090 100644
--- a/drivers/staging/comedi/comedidev.h
+++ b/drivers/staging/comedi/comedidev.h
@@ -623,7 +623,7 @@ extern const struct comedi_lrange range_unknown;
  * There may also be a flag that indicates the minimum and maximum are merely
  * scale factors for an unknown, external reference.
  */
-struct comedi_lrange {
+const struct comedi_lrange {
 	int length;
 	struct comedi_krange range[];
 };
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] Staging: comedi: comedidev.h: fixed a warning srishti <srishtishar@gmail.com> - 2017-05-16 10:40 +0200
  Re: [PATCH] Staging: comedi: comedidev.h: fixed a warning Dan Carpenter <dan.carpenter@oracle.com> - 2017-05-16 10:50 +0200
  Re: [PATCH] Staging: comedi: comedidev.h: fixed a warning Greg KH <gregkh@linuxfoundation.org> - 2017-05-16 11:20 +0200
    Re: [PATCH] Staging: comedi: comedidev.h: fixed a warning srishti sharma <srishtishar@gmail.com> - 2017-05-16 18:00 +0200

csiph-web