Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

lint warning: initialization type mismatch

807578May 12 2006 — edited May 22 2006
It was posted in the forum of driver development. I think here is right place for the topic.

I don't understand why the lint complains the type mismatch for dd_ioctl in structure cb_ops . My system is running Solaris 10 on x64 system with studio 11.

lint -D_KERNEL -DDRIVER_ARCH=32 -DNEW_ARQSNS -DTEST_RESID -DCONDOR=1
-DCOYLONG=1 -DD40420001 -DD40430001 -DD40430002 -DD40430003
-DD40450007 -DD40430004 -DD40430005 <LintFlags>
myDD.c
lint: Sun C 5.8 Patch 121016-02 2006/03/31
lint: Sun C 5.8 Patch 121016-02 2006/03/31
(988) warning: initialization type mismatch

static struct cb_ops dd_cb_ops = {
dd_open, /* open */
dd_close, /* close */
nodev, /* strategy */
nodev, /* print */
nodev, /* dump */
dd_read, /* read */
dd_write, /* write */
dd_ioctl, /* ioctl */ <--- line 988
nodev, /* devmap */
nodev, /* mmap */
nodev, /* segmap */
dd_chpoll, /* poll */
ddi_prop_op, /* cb_prop_op */
0, /* cb_str streamtab */
D_MP | D_NEW | D_64BIT | D_TAPE | D_HOTPLUG, /* cb_flag flags */
CB_REV, /* cb_rev */
nodev, /* cb_aread */
nodev /* cb_awrite */
};

Thanks for your help!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2006
Added on May 12 2006
1 comment
199 views