Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2224645ybi; Thu, 4 Jul 2019 07:09:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3eowfKL0OSbLNalhEis5lm5UqI8EFRkRICO82BPZJEgAU5eFTWwSDk0yrfIIgh8xnUb6X X-Received: by 2002:a17:90b:d8f:: with SMTP id bg15mr20007394pjb.65.1562249371494; Thu, 04 Jul 2019 07:09:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562249371; cv=none; d=google.com; s=arc-20160816; b=TdXZ41NipVaUw1LHrzuJI97KC7idcgXz7FqErVKZpRuBcRarVPtXBEhYUZo00edrHu 3iBa8r6soyjWaIULmW4AB4ns4QQteFwcR3uLqqPW+aU7OMOyMB6Na4CFlVFgV5u/6CuD a6VJAnh7Z3fVK9ZRtizuqzAndug4PHWbWMoTdxwKh0wM2NKizyZdJvPcEPpEQx86qHYo 5ohg6nJcSDHbrx9SnBu66VuVch3ZXdohJ0phfJbNLYVAwguW+uxUcuuOiWaJKT5bQp/R ASmpqJk5BO7wqcNExeuj/MGr038NtJBCzni/NPx9tLGxKQNSqmHKteaQdOlkYwcn7K2e n9QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=P90kgH7q9sXvK86t1MZ4NbDsLn806eYSQE5PzlGAARc=; b=xiUvaHun3731c2d2vXRS62Wp8Yfe/pTIdhHcOtYaANUXuc/knhapGgtN/m5rpfjRvg khysi2TXU11yeHnwn38T4foym3+PEB+aIuAQOQkGbBIIW9Piarv45s4xhlmCXJ78d4MH 3n0aUgngJc3DpPpIzQDvkoVjcJpsEOVRBaE0cyFTcKYf8lt3eP2AClaMWuLz73Vyg0uw gLQKwnCiAIybp7GtZ9PVhHew6UhG28vMC/zn4610bKiH2Eo9zlsA2IOx4McJQCi40/Jb gPZiORXPvrXrW8mmyoAtuZgNt/hR5hmeEjkSogvkhoRW5fF3a9MP0aW77TWKI+WEV0Oe rPug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j1zYiDtk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si5671622pfr.36.2019.07.04.07.09.16; Thu, 04 Jul 2019 07:09:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j1zYiDtk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727755AbfGDOHQ (ORCPT + 99 others); Thu, 4 Jul 2019 10:07:16 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:43054 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727365AbfGDOHO (ORCPT ); Thu, 4 Jul 2019 10:07:14 -0400 Received: by mail-vs1-f67.google.com with SMTP id j26so2026076vsn.10 for ; Thu, 04 Jul 2019 07:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P90kgH7q9sXvK86t1MZ4NbDsLn806eYSQE5PzlGAARc=; b=j1zYiDtki+YMl3ZvtZfvAuXTVlnDEStPBOtdkF9p0fPM6M7w/NBp1I1IRhHkSlnwyV GNTq9Em5g0gy+EkPxBhdvgbjqiI8YanKTJQqDEHlcKzUkIAUIiHyFJmSJNhES7QrQRX1 j+5NDsgt/HY91cb34ryr7d1jgY3YDBZ+d1HElKoIikbOhI4KXWXVdlgP718Ig/4ROk9t iK/9AZib5cCpism8EIWqxizf4z6obLgGkbMtipU8ltVCVXU++1jDeGcvTBBAd7vNF9xm yQGRZsX2IXTLUilJe40E2WELAq4UufVd32hJH5tlAkMWNJGRuS3qM2Xg8ZaRCxL9PYIL oiqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P90kgH7q9sXvK86t1MZ4NbDsLn806eYSQE5PzlGAARc=; b=Cs8dm8fysttLGb7bRBsDoLYvq7sMx3nAQAR+Oz7c30sHOYCb23UVDskpf6YJdINAPo 15dg0/JtIXkj/rdbVS2l4sQqFA013BfpYlK45qBMZO/wwE8STcTgfxCItpsHjgm5bIB2 biiNCZxpBYCNH2CnWBWL/P5I9VbGigHbwuEtp3l7lg1fLNA2ZFXUM/IJVLfeIvUZ42a4 CbfOdaoOyp7Jzg1/2465HOi2MevRtAjDJm0R6CM30hrN0nxef3Q9mZfeb1fovuIIvcYS tBWGf5D6Gjea+orKiNP6AFaIMQzR5dBqn0LQJbcKwsRikGiOcgXDzRTjlzqVKE4FG7iO OEkw== X-Gm-Message-State: APjAAAXHToMoHiku3eZWKq3uXEBsGmMWDts0EaQjf7JUXYPofDGvZc2w VbmcAk/NCaCJokj3UT/N/2deVpLo5ighdI00AxiUmQ== X-Received: by 2002:a67:7fd8:: with SMTP id a207mr21712067vsd.85.1562249233840; Thu, 04 Jul 2019 07:07:13 -0700 (PDT) MIME-Version: 1.0 References: <20190703170150.32548-1-efremov@linux.com> In-Reply-To: <20190703170150.32548-1-efremov@linux.com> From: Emil Velikov Date: Thu, 4 Jul 2019 15:07:22 +0100 Message-ID: Subject: Re: [PATCH] drm/client: remove the exporting of drm_client_close To: Denis Efremov Cc: =?UTF-8?Q?Noralf_Tr=C3=B8nnes?= , ML dri-devel , "Linux-Kernel@Vger. Kernel. Org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Jul 2019 at 08:27, Denis Efremov wrote: > > The function drm_client_close is declared as static and marked as > EXPORT_SYMBOL. It's a bit confusing for an internal function to be > exported. The area of visibility for such function is its .c file > and all other modules. Other *.c files of the same module can't use it, > despite all other modules can. Relying on the fact that this is the > internal function and it's not a crucial part of the API, the patch > removes the EXPORT_SYMBOL marking of drm_client_close. > > Signed-off-by: Denis Efremov Nice one: Reviewed-by: Emil Velikov Out of curiosity: Did you use some tool to spot this? -Emil