Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp372054pxb; Fri, 16 Apr 2021 07:45:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMFi6XqKVTHFJq88O6xzV0wjoxXbMynUNULyvC6uY5xfj86wPz+iWRX2cS/zchFi2jr9sX X-Received: by 2002:a17:907:1c08:: with SMTP id nc8mr8828209ejc.378.1618584351315; Fri, 16 Apr 2021 07:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618584351; cv=none; d=google.com; s=arc-20160816; b=PI+gHlRHiTkdtV8ckBlFsY7FlEkRF5cjepE3yh3o1WRz0CI5LzCflGPY8b5OkutnGA 9XjsgLKfAsKMt/GU2gAGACpvjNzDgmwD1qbq9IUsFo71P6foPRStsZXevpV+oxP0fZJw vpJJ+wlnRIX+26CrsM7h3VFy0C1RR5nh+v3nNW/7IIay8mzJF9Dr43WaoCm9a9vnYGUi WLYAQGcQb3ebqQxohM0FLUD27i0/QuzWhu8OupMMbqExT9RON31Xg2U+xohGmpF4l4/m 8JSflxOsqcr3qJQ8z7w5+arS1sAvN21V0JCUdnBVaUR3vTteYrvuY18tgKcyeGCYk4Kv 19zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Lp6KUcpzifC+AOvSZvapIoyzvGHXfJkgx9ufls5cSDs=; b=tk6yoL6lM9jid//YLjEzHbilOYp3DLJCQtnFOQ1Gmt6MuNf3kSfo2w6ut6XVD2IgG2 BM0sn43bGxwja7POfqw0mNsfzgSSUJcncliljlAVjdQB1lYq+gbySKFIEPzechlDcSVo thizRQKDNcmYd1of7LKdF2UNuiGjhJGhwm51I6QLiHJqXfVZETrq7o9z9t3kcYv4sAeM iQnnQUu0cA04/X3HMbYJh0fW1OJyL+q7IMqbcGgQC/nmMR2pDdrkgAdJO0UCkiVPaA6y rx8nIUyjjuOshvIJr8WQxRsW0vK/m7WRf35eupq08YIWHRVUZABv03Jk8j3Gn1G1Ll0Z wlsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=euQfq2wF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt8si4549724ejb.515.2021.04.16.07.45.28; Fri, 16 Apr 2021 07:45:51 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b=euQfq2wF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242385AbhDPOn4 (ORCPT + 99 others); Fri, 16 Apr 2021 10:43:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244399AbhDPOng (ORCPT ); Fri, 16 Apr 2021 10:43:36 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 523DFC061756 for ; Fri, 16 Apr 2021 07:43:11 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id s16so22647078iog.9 for ; Fri, 16 Apr 2021 07:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Lp6KUcpzifC+AOvSZvapIoyzvGHXfJkgx9ufls5cSDs=; b=euQfq2wFnH47LbM4abT1kLxvYkf6Sm9dtzlvDEkHRLT16XPhriYBl4jchj3CNIj5Cb 78dEEh4TPIwY63jFSpB3a/4Hw6jbLBUaSghrWwAniyOnmsLBpSGqHaFBCqMY0IIv7hvo XREmLq4799LTQ+vzSqvxuvuQjrowfvajPCs7k= 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=Lp6KUcpzifC+AOvSZvapIoyzvGHXfJkgx9ufls5cSDs=; b=bMy562l6OrrQRg3Dax2/DhUybuNgyU2E2TAqSHLQy43hQa/4QSipWk1PfI0f0gLcRo 58JG3EuoDbyDQnEo8MU58lYf/bY1YvX0e6ap/GQ8N1uDCcpOW/taOAdTECQlUcbRY/Lj GH7iz3R14aw92vBekReuhr7T0FsYZWeNZkUOUGwY3dG3FFPaC7+fAD82vo7YEvSvCiTW Z+cTbWT/SZDgyAl1c0qsDgxo6t96EdsQ1J+lFZ7Dw7x2lL/nPnxoxcmacqDa4AJQeUP+ L1dIpplQG4zmGTXOv/NLG9SMmf85ZPL0HYhk/2SR5X4xmZosg1zRQux0KIapkbf0JZKx Fl6A== X-Gm-Message-State: AOAM533/Nbk4pIw5zu19hlffCAoYfA6sYQLjRQXBc9eYunM6N3wDjGz+ pXo3AH5SvEJAPjHQKiU8+Cx5jfsQqE5FX/xsAVAAiA== X-Received: by 2002:a05:6638:38a4:: with SMTP id b36mr4265974jav.102.1618584190633; Fri, 16 Apr 2021 07:43:10 -0700 (PDT) MIME-Version: 1.0 References: <20210414172916.2689361-1-hsinyi@chromium.org> <20210414172916.2689361-7-hsinyi@chromium.org> <87y2dicnpy.fsf@intel.com> In-Reply-To: <87y2dicnpy.fsf@intel.com> From: Hsin-Yi Wang Date: Fri, 16 Apr 2021 22:42:44 +0800 Message-ID: Subject: Re: [PATCH v19 6/6] drm/i915/selftests: Rename functions names To: Jani Nikula Cc: Wolfram Sang , Matthias Brugger , Rob Herring , Bartosz Golaszewski , linux-i2c@vger.kernel.org, Qii Wang , Devicetree List , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/Mediatek SoC support" , lkml , Greg Kroah-Hartman , Mark Brown , Marek Szyprowski , Bibby Hsieh , Arnd Bergmann , Joonas Lahtinen , intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 10:23 PM Jani Nikula wrote: > > On Thu, 15 Apr 2021, Hsin-Yi Wang wrote: > > pm_resume and pm_suspend might be conflict with the ones defined in > > include/linux/suspend.h. Rename pm_resume{suspend} to > > i915_pm_resume{suspend} since they are only used here. > > I agree with the rationale here. > > Do you need this to be part of your series, or shall we just pick this > up for i915? (We might consider renaming to something else or prefix the > functions with _ though, as we also have existing i915_pm_suspend and > i915_pm_resume elsewhere.) > This patch can be separated from the series, thanks. > BR, > Jani. > > > > > Signed-off-by: Hsin-Yi Wang > > Reported-by: kernel test robot > > --- > > drivers/gpu/drm/i915/selftests/i915_gem.c | 10 +++++----- > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/gpu/drm/i915/selftests/i915_gem.c b/drivers/gpu/drm/i915/selftests/i915_gem.c > > index dc394fb7ccfa..525afda9d31f 100644 > > --- a/drivers/gpu/drm/i915/selftests/i915_gem.c > > +++ b/drivers/gpu/drm/i915/selftests/i915_gem.c > > @@ -94,7 +94,7 @@ static int pm_prepare(struct drm_i915_private *i915) > > return 0; > > } > > > > -static void pm_suspend(struct drm_i915_private *i915) > > +static void i915_pm_suspend(struct drm_i915_private *i915) > > { > > intel_wakeref_t wakeref; > > > > @@ -116,7 +116,7 @@ static void pm_hibernate(struct drm_i915_private *i915) > > } > > } > > > > -static void pm_resume(struct drm_i915_private *i915) > > +static void i915_pm_resume(struct drm_i915_private *i915) > > { > > intel_wakeref_t wakeref; > > > > @@ -152,12 +152,12 @@ static int igt_gem_suspend(void *arg) > > if (err) > > goto out; > > > > - pm_suspend(i915); > > + i915_pm_suspend(i915); > > > > /* Here be dragons! Note that with S3RST any S3 may become S4! */ > > simulate_hibernate(i915); > > > > - pm_resume(i915); > > + i915_pm_resume(i915); > > > > err = switch_to_context(ctx); > > out: > > @@ -192,7 +192,7 @@ static int igt_gem_hibernate(void *arg) > > /* Here be dragons! */ > > simulate_hibernate(i915); > > > > - pm_resume(i915); > > + i915_pm_resume(i915); > > > > err = switch_to_context(ctx); > > out: > > -- > Jani Nikula, Intel Open Source Graphics Center