OpenSolaris

You are not signed in. Sign in or register.

heads-up: 6470037 and lint warnings in STREAMS code

Date: Fri, 10 Nov 2006 23:30:46 -0500
From: Peter Memishian <peter.memishian at sun dot com>
To: onnv-gate at onnv dot sfbay dot sun dot com
Subject: heads-up: 6470037 and lint warnings in STREAMS code


Gatelings,

The recent putback for:

   6470037 remove global disable of some potentially useful lint warnings
           from the kernel lint build

... may very well expose lint warnings in changes you've made in your
workspaces.  Of course, it is your obligation to properly address and
eliminate these warnings prior to integration.

However, those of you working on new STREAMS-related code will likely find
that you now have mountains of E_PTRDIFF_OVERFLOW and E_BAD_PTR_CAST_ALIGN
warnings.  Unfortunately, these are due to limitations[1] in the STREAMS
API that are difficult to fix in a backward-compatible manner (sigh).  In
the meantime, please turn off these two lint warnings in affected kernel
STREAMS module Makefiles with:

	#
	# STREAMS API limitations force us to turn off these lint checks.
	#
	LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
	LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW


 [1] For instance, b_rptr must be `uchar_t *', and lint correctly objects
     to it being casted to types with stronger alignment requirements.

-- 
meem