Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2783307yba; Sun, 28 Apr 2019 08:58:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxs0vhfHkHhdKExz7pZdCHwrwZNykUeDJdIfMuhIRiKxBsblZaqjaifKW1En7fQuuRRncO/ X-Received: by 2002:a17:902:163:: with SMTP id 90mr58019504plb.34.1556467081177; Sun, 28 Apr 2019 08:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556467081; cv=none; d=google.com; s=arc-20160816; b=0xKHz6JIsh5OK/MPkaeXSDtO8L7blD2bjupaBtYfF7VcAsQPMf76LfWdHeDKlROwxo 7Z7ZZ+c+e/SlPHxFtbEVQAXBns2Y5p/USJj37TZROoHaSy+rhPJWUvJQW2yQKSG+GKuH XS6/vAB5DsLgpkRRuV6LSHoouSPo9aqImShc4faZWE07X4367xPcPVrqBM5u5aLTjgt0 QbV+PlidFI266IZ4LTXtL1+8QPgyBWnP5/Av0rHT4fWsWi/TI7GZYgsJOuqErKvLKKS1 swk96NOsZUC5oC8H0SW4i+miBk8/0rbTwmANg00wC23BGMQcx99gUqB+Ro2F2XFXbfaO F+kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=K0dWSVPBxe/x7DCE4XI3xQgS0qOexvgMnbKmMDGU1rc=; b=NmpAkWCvpBS8Y646LruqsEuTME2xQwQOT2rn7VlNCRNY4u+bmJVa4hsZ/WUTnzf/xW sAay5wDX7Z/5GgLg4gVn6Jry6apcDC7h3V+DnfFi/y4jahotl22aiuQrN6lzhQFE3gas HzqkfXDArcEuwywFO7VrbzzYpORIDr/S3SpyJuHCaOlwuu0ZNMjtWJmQfo3LwOENjel6 s+oZ2gyXrCBCI5YuGGuZZkGh6u4ubLvU35wbqITC5fDH12WCaL+iiqNCroJB3G3jgbLV MwooEHVzJi9UE03/onbqU5tEEpwKVgy/T7Oz1vBZ1GZmjibJT4py3SappUUJyKpHjdMH 4UMw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si30851275plp.357.2019.04.28.08.57.45; Sun, 28 Apr 2019 08:58:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726884AbfD1Pzm (ORCPT + 99 others); Sun, 28 Apr 2019 11:55:42 -0400 Received: from mga01.intel.com ([192.55.52.88]:18403 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbfD1Pzm (ORCPT ); Sun, 28 Apr 2019 11:55:42 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2019 08:55:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,406,1549958400"; d="scan'208";a="138184027" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by orsmga008.jf.intel.com with ESMTP; 28 Apr 2019 08:55:38 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hKm9Q-0005qR-JM; Sun, 28 Apr 2019 18:55:36 +0300 Date: Sun, 28 Apr 2019 18:55:36 +0300 From: Andy Shevchenko To: fred@fredlawl.com Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mika.westerberg@linux.intel.com, lukas@wunner.de, keith.busch@intel.com, mr.nuke.me@gmail.com, liudongdong3@huawei.com, thesven73@gmail.com Subject: Re: [PATCH 3/4] PCI: pciehp: Remove unused macro definitions Message-ID: <20190428155536.GU9224@smile.fi.intel.com> References: <20190427191304.32502-1-fred@fredlawl.com> <20190427191304.32502-4-fred@fredlawl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190427191304.32502-4-fred@fredlawl.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 27, 2019 at 02:13:03PM -0500, fred@fredlawl.com wrote: > Now that all uses for the ctrl_*() printk wrappers are removed from > files and replaces with pci_*() or pr_*() printk wrappers, remove the > unused macro definitions. In addition to that, remove the MY_NAME macro. > extern bool pciehp_debug; How it's used after all? > -#define dbg(format, arg...) \ > -do { \ > - if (pciehp_debug) \ > - printk(KERN_DEBUG "%s: " format, MY_NAME, ## arg); \ > -} while (0) > -#define ctrl_dbg(ctrl, format, arg...) \ > - do { \ > - if (pciehp_debug) \ > - dev_printk(KERN_DEBUG, &ctrl->pcie->device, \ > - format, ## arg); \ > - } while (0) Besides ruining the pciehp_debug support this will make unequivalent behaviour. -- With Best Regards, Andy Shevchenko