From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbdLLR15 (ORCPT ); Tue, 12 Dec 2017 12:27:57 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:52254 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751542AbdLLR1z (ORCPT ); Tue, 12 Dec 2017 12:27:55 -0500 To: Linus Torvalds Cc: James Bottomley , Johannes Thumshirn , "Martin K. Petersen" , Andrew Morton , linux-scsi , linux-kernel Subject: Re: [GIT PULL] SCSI fixes for 4.15-rc3 From: "Martin K. Petersen" Organization: Oracle Corporation References: <1513095686.3110.9.camel@HansenPartnership.com> Date: Tue, 12 Dec 2017 12:22:44 -0500 In-Reply-To: (Linus Torvalds's message of "Tue, 12 Dec 2017 09:16:16 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8743 signatures=668646 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=872 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712120250 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus, > This is utter shite, and doesn't even compile cleanly. > > Sure, it's "just" a warning, and the code works. But no, I'm not > pulling crap like this. If you save a pointer in an integer > "hostdata[0]" field, then you damn well do the proper casts or helper > functions or something, you don't just ignore the compiler when it > very reasonably warns about it. > > What the hell is going on? Nobody compiled this stuff at all? Or > nobody cares about new build warnings? Arnd and Johannes fixed this up right away: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?h=fixes&id=45349821ab3a8d378b8f37e52c6fe1aa1b870c47 -- Martin K. Petersen Oracle Linux Engineering