Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752417AbbKKKGz (ORCPT ); Wed, 11 Nov 2015 05:06:55 -0500 Received: from mail-bl2on0112.outbound.protection.outlook.com ([65.55.169.112]:30406 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751766AbbKKKGv convert rfc822-to-8bit (ORCPT ); Wed, 11 Nov 2015 05:06:51 -0500 From: Liu Jason To: Arnd Bergmann , "linux-arm-kernel@lists.infradead.org" CC: "dmaengine@vger.kernel.org" , "vinod.koul@intel.com" , "dan.j.williams@intel.com" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 1/1] dmaengine: imx-sdma: remove __init annotation on sdma_event_remap Thread-Topic: [PATCH 1/1] dmaengine: imx-sdma: remove __init annotation on sdma_event_remap Thread-Index: AQHRHGUXyDRHHrf3ZEeXOqXwwmIQMp6WlxiAgAAA4TA= Date: Wed, 11 Nov 2015 10:06:48 +0000 Message-ID: References: <1447233649-21464-1-git-send-email-r64343@freescale.com> <4267122.WHg3VAy8bL@wuerfel> In-Reply-To: <4267122.WHg3VAy8bL@wuerfel> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Hui.Liu@freescale.com; x-originating-ip: [199.59.231.64] x-microsoft-exchange-diagnostics: 1;DM2PR0301MB1216;5:550TgrN0NP7gnz9dAF9xbbfY5D39vvahSUP0b4miCMz0OgeCh900zTP9L7liKyhWghyRzgQk0SJNDoVk1xXi3UgONcg6LwMopobBeU3yyDVf13Z/z26Fd4HF0XYwpuU7MRzlOxmJKXEZoK2Fa8Zf4g==;24:kVpYqaHspcaQDK8WiB/qj6f/vbSZ/gYmVe44XFQYEiUDFYgcoFcB/LNeM77iA+FIij84J1e6DHhjuKH51rScFhGNmxgkoc8a+ZWYageE1z4=;20:QochYKEZjGHoUecJ+OjquD/xdnoFYbIvA/j3QCq3MLVLENgM7cDpBq26qGdPUm/Hpt8OYj+2Z8tGjtBRoc2wpw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1216; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(101931422205132); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046);SRVR:DM2PR0301MB1216;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1216; x-forefront-prvs: 0757EEBDCA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(377454003)(24454002)(13464003)(189002)(5004730100002)(101416001)(105586002)(102836002)(77096005)(81156007)(54356999)(76176999)(2950100001)(50986999)(5003600100002)(106116001)(5007970100001)(5001960100002)(33656002)(97736004)(5001770100001)(2900100001)(189998001)(99286002)(122556002)(87936001)(40100003)(5002640100001)(11100500001)(19580405001)(66066001)(19580395003)(86362001)(106356001)(92566002)(76576001)(5008740100001)(2501003)(10400500002)(74316001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB1216;H:DM2PR0301MB1213.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2015 10:06:48.6617 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB1216 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1902 Lines: 48 > -----Original Message----- > From: Arnd Bergmann [mailto:arnd@arndb.de] > Sent: Wednesday, November 11, 2015 6:02 PM > To: linux-arm-kernel@lists.infradead.org > Cc: Liu Hui-R64343; dmaengine@vger.kernel.org; vinod.koul@intel.com; > dan.j.williams@intel.com; linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/1] dmaengine: imx-sdma: remove __init annotation on > sdma_event_remap > > On Wednesday 11 November 2015 17:20:49 Jason Liu wrote: > > The sdma_probe function will call sdma_event_remap, but > > sdma_event_remap marked with the __init annotation which make the > > kbuild complains as the following log: > > > > WARNING: drivers/dma/built-in.o(.text+0x56fc): Section mismatch in > > reference from the function sdma_probe() to the function > > .init.text:sdma_event_remap() The function sdma_probe() references the > > function __init sdma_event_remap(). > > This is often because sdma_probe lacks a __init annotation or the > > annotation of sdma_event_remap is wrong. > > > > Remove the __init annotation on sdma_event_remap to kill this build > > warning > > > > Signed-off-by: Jason Liu > > Cc: Vinod Koul > > Cc: Dan Williams > > > > Looks good. I wonder why I have not caught this with the randconfig > builds yet. > > Acked-by: Arnd Bergmann > > One hint for the future: in the patch description, write less about the > kbuild warning and more about the actual impact of the bug (calling a > discarded function if the device gets unbound and rebound later, or if we > get deferred probing). Yes, that is true indeed. Thanks Arnd. > > Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/