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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B8232D1F9DA for ; Tue, 15 Oct 2024 21:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gnM0sof5+5QgdAmcOQbB4PSeLMOw1mlIXfv+A5bnUms=; b=KNzEDti+fUrVTXrQkeS/xwL8CR /kTW+9bBFGKlFAL9I4MxXC5Of+fZiCyp0kok9pCa8oNPhIg3c7zqjR5oYtqOwZTGRVHbhyzXcRYKL H1CTEc+iejYw/NnxZVjgkJMD3/NMwArrXgL/7Ly/CtV+Qe1EiTERL0uCpc+9LeWNCGytI2dhuNeg1 u+asxn0OYFRiL2pWWbRU9Be5NyBUqm9AAzciYB+9UJy+Op2VAsBQ/Nl2ffCPdR6A+WPekwhonkyJm a1e3FM5m5lkX9hOX6AexmTA8U7SGiSVdk7NUtnfZA7UQ/I4e/ILRtF2dIOI20i1hphDX0Awu1aAUR l7tJQlqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0pIR-00000009hQR-3Fyz; Tue, 15 Oct 2024 21:41:39 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0pBk-00000009fKH-2Fiw for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 21:34:45 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 49FLYZ6M011296; Tue, 15 Oct 2024 16:34:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1729028075; bh=gnM0sof5+5QgdAmcOQbB4PSeLMOw1mlIXfv+A5bnUms=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=WvwVpx8GFMKaGL0qlA6xeMOvK9e4rt6Ps62Bf0NdWSqJamCF8t+QUx+n55NhCSSQ4 CxpeWFr5IohPPyBQMoxBOiHC7AunS3/J9hxlVomx9zQI+yghoWALVRHz4eI30ONV+V RWp4RfivXBe3emtoz/uuPp5/xs9FazBkC3VmQFwc= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 49FLYZYd039040 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Oct 2024 16:34:35 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 15 Oct 2024 16:34:35 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 15 Oct 2024 16:34:35 -0500 Received: from [10.249.42.149] ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 49FLYYgM115618; Tue, 15 Oct 2024 16:34:34 -0500 Message-ID: Date: Tue, 15 Oct 2024 16:34:34 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] mailbox: ti-msgmgr: Allow building under COMPILE_TEST To: Arnd Bergmann , kernel test robot , Jassi Brar , Bjorn Andersson , Mathieu Poirier , Martyn Welch , Hari Nagalla CC: , , References: <20241014144821.15094-3-afd@ti.com> <202410160435.WzzQa1p5-lkp@intel.com> <1a88e7b5-582f-4d52-864a-e828f6619bc8@app.fastmail.com> Content-Language: en-US From: Andrew Davis In-Reply-To: <1a88e7b5-582f-4d52-864a-e828f6619bc8@app.fastmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_143444_705882_7B5A52C2 X-CRM114-Status: GOOD ( 20.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 10/15/24 3:54 PM, Arnd Bergmann wrote: > Hi Andrew, > > On Tue, Oct 15, 2024, at 20:46, kernel test robot wrote: >> In file included from drivers/firmware/ti_sci.c:14: >> In file included from include/linux/io.h:14: >> In file included from arch/hexagon/include/asm/io.h:328: >> include/asm-generic/io.h:548:31: warning: performing pointer >> arithmetic on a null pointer has undefined behavior >> [-Wnull-pointer-arithmetic] >> 548 | val = __raw_readb(PCI_IOBASE + addr); >> | ~~~~~~~~~~ ^ >> include/asm-generic/io.h:561:61: warning: performing pointer >> arithmetic on a null pointer has undefined behavior >> [-Wnull-pointer-arithmetic] >> 561 | val = __le16_to_cpu((__le16 >> __force)__raw_readw(PCI_IOBASE + addr)); >> | > > > Hopefully we will be able to finally address these in 6.13 > for all drivers, it's been a decade. Don't worry about > the above. > > >> platform_device *dev, >> | ^~~~~~~~~~~~~~~~~~~~~~ >>>> drivers/firmware/ti_sci.c:3285:34: warning: unused variable 'ti_sci_of_match' [-Wunused-const-variable] >> 3285 | static const struct of_device_id ti_sci_of_match[] = { >> | ^~~~~~~~~~~~~~~ >> 8 warnings generated. >> > > Needs this change, please fold into your patch. Was going to clean this up in several places in another series, but will add this one to this series, v2 on the way. Andrew > > diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c > index 160968301b1f..6a6bf7a2d134 100644 > --- a/drivers/firmware/ti_sci.c > +++ b/drivers/firmware/ti_sci.c > @@ -3421,7 +3421,7 @@ static struct platform_driver ti_sci_driver = { > .probe = ti_sci_probe, > .driver = { > .name = "ti-sci", > - .of_match_table = of_match_ptr(ti_sci_of_match), > + .of_match_table = ti_sci_of_match, > .suppress_bind_attrs = true, > }, > }; > >