Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3289921pxb; Mon, 9 Nov 2020 07:28:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqNuE9DneNWLMivRTuNvvixb84R+syk6h6qzothLRnYpIuwyU07L6Z0fw8OirA7kWw6UXM X-Received: by 2002:a17:906:17d6:: with SMTP id u22mr3274898eje.399.1604935711869; Mon, 09 Nov 2020 07:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604935711; cv=none; d=google.com; s=arc-20160816; b=kI3tKtoKz71aQzhOYRHSffWye8GJPOxk0GmbXOIXg3tSygdU4AAEC3GHY18L4uAhAu CuRr5xcG7FIVlMPVwMw7WfVEZ464NWQ9dCSDj8ern5inAD1OgzdYGIkjYVeIcwLxt6bz fm2AfA4E9YsaX2C7vm/cL7ZZoKp0782AdH9AK6kyn5Tyk2leVmA3NZSbbnl3GSoxZlGE hyNDisbSOZbDOnqBG0pWoFbHyL50XRi4agv+6FgjYfG33O7JzmE9GYwsQ7xl1kHo00OP fxVCL3FJBgQYgMjTKhuHbg26U+8gt/a9rEkQXeaWJQL9qt3h1uruYYEfe1ZUpuQfFjrO EvNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=J1miLRdlx3rplV9CIavWD+qicnrSX/pZNw/OPmmbqpI=; b=CnhPJ0EvuhegapYiMYv3Bnh8G9MRaJkawv4i6sZ3ln/pFd1QdbZqeVC7X1Cgwnw0l2 aStBg/1ee3PIGT2Kt8EghjD9lukVYieDGf7MB7BhB2zIsva1oRP9lRUFjvM9aXLIHev+ Dyaa5Y9XT12QSQvCfdCvZOPgA4rD105MYKEln+ER07Hma1z6vq/ZxmNCffKeIXqh8JSd U+w+NAKYtcr+QTaVOw9H5yc8NQIA9xn1TJXlYvz/mk2axeFpUzI9b1ldn55ZsD8mwfNM j83ZeWLujr7BNOBsuQLWu8cDihH5GGTSIfLaXydDpMAPU/qZnLU79Yw+dbfsvAQrpVG9 WFMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si7506543ejh.32.2020.11.09.07.28.07; Mon, 09 Nov 2020 07:28:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730765AbgKIPZj (ORCPT + 99 others); Mon, 9 Nov 2020 10:25:39 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:43950 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbgKIPZj (ORCPT ); Mon, 9 Nov 2020 10:25:39 -0500 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id C30C58053A; Mon, 9 Nov 2020 16:25:32 +0100 (CET) Date: Mon, 9 Nov 2020 16:25:30 +0100 From: Sam Ravnborg To: Lee Jones Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Christian =?iso-8859-1?Q?K=F6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , linux-media@vger.kernel.org Subject: Re: [PATCH 10/19] drm/radeon/radeon: Move prototype into shared header Message-ID: <20201109152530.GA1888045@ravnborg.org> References: <20201106214949.2042120-1-lee.jones@linaro.org> <20201106214949.2042120-11-lee.jones@linaro.org> <20201107142651.GA1014611@ravnborg.org> <20201109110603.GV2063125@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201109110603.GV2063125@dell> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=VafZwmh9 c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=IkcTkHD0fZMA:10 a=0bRNquZ1QDSsZ4hO3z4A:9 a=QEXdDO2ut3YA:10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee, > > > > Other public functions in radeon_device.c have their prototype in > > radeon.h - for example radeon_is_px() > > > > Add radeon_device_is_virtual() there so we avoiid this new header. > > Oh yes, I remember why this wasn't a suitable solution now: > > The macro "radeon_init" in radeon.h clashes with the init function of > the same name in radeon_drv.c: > > In file included from drivers/gpu/drm/radeon/radeon_drv.c:53: > drivers/gpu/drm/radeon/radeon_drv.c:620:31: error: expected identifier or ‘(’ before ‘void’ > 620 | static int __init radeon_init(void) ... > > How would you like me to move forward? Fix the thousand of warnings in other places :-) I will take a look at radeon and post a new series based on your work with all W=1 warnings fixed. Sam