From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A53E9C38145 for ; Wed, 7 Sep 2022 17:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229929AbiIGRHj (ORCPT ); Wed, 7 Sep 2022 13:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbiIGRHh (ORCPT ); Wed, 7 Sep 2022 13:07:37 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A815DBCC11 for ; Wed, 7 Sep 2022 10:07:34 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 287Cg1gj004775; Wed, 7 Sep 2022 17:07:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : from : to : cc : references : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=0/KlPU3QXt39cBh1I0TvE7ncz/Tx0KYVcjqAURUksTw=; b=CyIdTAqjbokgyycHhKUX4qKsKnU1m0Z2OWlfYRpA0dMG6tsWFOR8LF47vf9z0R5rcWUX 6FPAi+ZijsCnYpDWiq5E3VuBZXnqlz/A1yZvPBr9BAy62wJh8HzbTs9jru2PrdMM+wTn AFyUA6LG/Wq21c7s4jBVs6k05sdPVq6TrgQeQgasHKgA/I95pENPQ8Fybm5ozU50m+o2 D8Wtvh8UsPuy8BtXLH7iU23c3ZHqIHN2Hk98qpQc71n38CX+quZqLS4lQwfNKVj9YiEK OvRj0Imd8XOxw8W/QzcGRGadq7S0dZFeucbvikDAHpjAPfuRx1YU/UP3ljJoUwHxdneA yQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jenmjt9a5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Sep 2022 17:07:19 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 287H7IUx024100 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 7 Sep 2022 17:07:18 GMT Received: from [10.110.17.89] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 7 Sep 2022 10:07:18 -0700 Message-ID: Date: Wed, 7 Sep 2022 10:07:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [mani-mhi:mhi-next 2/3] drivers/bus/mhi/host/pci_generic.c:734:60: error: assignment of member 'irq' in read-only object Content-Language: en-US From: Jeff Johnson To: Manivannan Sadhasivam , kernel test robot CC: , References: <202209072144.lWoBySRH-lkp@intel.com> <20220907164506.GA499781@thinkpad> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: T60Cmgz9Ac5HhlxKQYevOFN3L4FCpstI X-Proofpoint-ORIG-GUID: T60Cmgz9Ac5HhlxKQYevOFN3L4FCpstI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-07_08,2022-09-07_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209070066 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/2022 9:56 AM, Jeff Johnson wrote: > On 9/7/2022 9:45 AM, Manivannan Sadhasivam wrote: >> On Wed, Sep 07, 2022 at 09:47:42PM +0800, kernel test robot wrote: >>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git >>> mhi-next >>> head:   0a3b31f6259f4849e4e93731d4c8d7910be072a7 >>> commit: 4a98958ca237a4b7974ea1ec2092b3666bdd26ab [2/3] bus: mhi: >>> host: make mhi_controller_config::event_cfg const >>> config: i386-randconfig-a001 >>> (https://download.01.org/0day-ci/archive/20220907/202209072144.lWoBySRH-lkp@intel.com/config) >>> compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 >>> reproduce (this is a W=1 build): >>>          # >>> https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git/commit/?id=4a98958ca237a4b7974ea1ec2092b3666bdd26ab >>>          git remote add mani-mhi >>> https://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git >>>          git fetch --no-tags mani-mhi mhi-next >>>          git checkout 4a98958ca237a4b7974ea1ec2092b3666bdd26ab >>>          # save the config file >>>          mkdir build_dir && cp config build_dir/.config >>>          make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash >>> >>> If you fix the issue, kindly add following tag where applicable >>> Reported-by: kernel test robot >>> >>> All errors (new ones prefixed by >>): >>> >>>     drivers/bus/mhi/host/pci_generic.c: In function 'mhi_pci_get_irqs': >>>>> drivers/bus/mhi/host/pci_generic.c:734:60: error: assignment of >>>>> member 'irq' in read-only object >>>       734 | >>> mhi_cntrl_config->event_cfg[i].irq = 0; >> >> Ah, so this is why I didn't make it constant in the first place... >> Dropped the patch now. >> >> Thanks, >> Mani > > I believe it should be const in the MHI config, but in this case the > declaration in drivers/bus/mhi/host/pci_generic.c can't be const. > > Let me respin the patch with this in mind. > NM, just drop it. Too much pain for the little gain I was hoping for in the ath drivers :)