From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938602AbdLSDlu (ORCPT ); Mon, 18 Dec 2017 22:41:50 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:47236 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937912AbdLSDlj (ORCPT ); Mon, 18 Dec 2017 22:41:39 -0500 To: chenxiang Cc: , , , , , Subject: Re: [PATCH] scsi: hisi_sas: fix a warning reported by sparse From: "Martin K. Petersen" Organization: Oracle Corporation References: <1513646123-93775-1-git-send-email-chenxiang66@hisilicon.com> Date: Mon, 18 Dec 2017 22:41:26 -0500 In-Reply-To: <1513646123-93775-1-git-send-email-chenxiang66@hisilicon.com> (chenxiang's message of "Tue, 19 Dec 2017 09:15:23 +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=8749 signatures=668649 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=567 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712190049 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org chenxiang, > The type of function pci_choose_state's return value is pci_power_t > while we define it as a u32. A warning will be reported by sparse. So > change u32 into pci_power_t. Applied to 4.16/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering