Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4459055pxy; Tue, 27 Apr 2021 05:42:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH579UZl8kCdUAKmFem0R/NP0+ZAbhuqBYxcGiecsuMqI9tyuXkcVkbOxWRjq32LdfmL+h X-Received: by 2002:a63:e007:: with SMTP id e7mr22729652pgh.260.1619527358126; Tue, 27 Apr 2021 05:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619527358; cv=none; d=google.com; s=arc-20160816; b=GfbLZyh1gY0S/EkX1mUB+3FYpOqZHuHHEVA+wqO1ePU9c0OnU40rfKodJu0c38erXD mpNgoMhKz9yTrdkSPiathlJExxO6WA3XCbms6kqnRLaHum9J0CmRSONHeE9kZGx21b8v +ot7syC9dcn5+TLX86/O5EHNVeFJCSkMk9wZlr10pXLBVjUGGsoqHtGJt5DL3z7Qa89s vGLIjUKoLIGfbYNTUTKpUe/hzCVaPvbvCAnLK4wFBInxE8VQ7jd8FDbPhivrntONohIi wNMiNaAdvkO895wylblxNvBPxgKljV9qVPALWxFWd9YHDc9VQ9kVNcs4TRNuSVgjbgKL OFBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cZ21gZXRbDQCP1+gWLkdEChswiOAmqFQLs0NT28GXiA=; b=moyXY5yp3J8XWn4He8dAPwGGTH47V3DgX6wX4e79wYPoe57DSdSiROPQyrgb6RKj3C 7/BTc/PhgHv6uZ18xt4KyvbT7Q/dTkboxuFddz+ToyytnDuv/R8vZhJ0DUleWZYOjN0o 2lg0tvWxQhCIPy4Kxwk/XQvuJx8mrM8H2a4BObx70trpoV4QDKKGCAUtRCRA3T26eynv 1rym6ovq7QSBVL/V24lwIVbL0ye+UUlqngIC8LxkL8Rwf0kalVfnbABwxRyAqVsx7Za/ EdlfTRaJz3OxlXBpqSpg1IPmttycZDAebUq01FDZRGJDNG1MftecC2/8E4D4EKNfCYCj HTuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bfQbTzMs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si3524809pjn.169.2021.04.27.05.42.25; Tue, 27 Apr 2021 05:42:38 -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=@gmail.com header.s=20161025 header.b=bfQbTzMs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236197AbhD0MmW (ORCPT + 99 others); Tue, 27 Apr 2021 08:42:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235410AbhD0MmW (ORCPT ); Tue, 27 Apr 2021 08:42:22 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F39FC061574 for ; Tue, 27 Apr 2021 05:41:39 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id a22-20020a05600c2256b029014294520f18so2439051wmm.1 for ; Tue, 27 Apr 2021 05:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cZ21gZXRbDQCP1+gWLkdEChswiOAmqFQLs0NT28GXiA=; b=bfQbTzMsiGQbeF4gRMmfnfYhqnhq2VAiqm7zF9HzRs+RMIreFhBfdS8CSlbsRJpYsv HB+mZZCpcssIHSrrvfKuZuEQ4TZcRQ0OSaQtwwJl5RrzEnuLNpHVvgAqfpibqE1fu7sG D1uqj4Og22DtTmTRU6v2z/dCFfQ8exyFVbta3DtxImS+/R3Nm4/garPDtjasgTJDwgnX /mhXurr/RkFJv1hi3mwaEp4SRc8DP6piTuvN4xINJJ42iM8uD8W0oX5+LaJX7ehFtYNL sjB5j2KbBEYUA6IEQWC/e6v/f7cuC37a1Nld36dvKGEy0HYfQRVEOPRsc+KbSRvukYHA E6gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cZ21gZXRbDQCP1+gWLkdEChswiOAmqFQLs0NT28GXiA=; b=DrkZs93Chm7chnc6oO49N9uXIzpZSDkG0z3Emz9gEra23UV40wi5CmrlCmJx3GkX0h FpIQDHmsikCDbYWODkDUUlKfZQ87Y/ZYf5sAcaW0wXPapvM2Rn6UGg1jsUb3YxZ5oYzb /dmQ0euZBdURjWZFQBAcjCur0f5LE4a4QIr431VQfeJpSUYBdzLv+0DfFg0lNXcoJ9nH RQlrL5x4v+mXpdYv71c8RiXM0kRwaK5kqYTRFtWWIn6mqeHJWxdVCpg9U0s7TRiZUv4D Vi6wJ3ntd0c22teQ7TC2M81cJbxBDoAfvKWV4TPTmlqwFu8k9qZkicl2boX+A4zfco7z Pcuw== X-Gm-Message-State: AOAM532aikLcX+Z1SNPC8zabGWN9gvLmWE20D0uwBouF912S+oT+tzjo P27+vkn26aiSl22uPVs7E4MuGf4gkveitQ== X-Received: by 2002:a05:600c:3581:: with SMTP id p1mr24631290wmq.76.1619527298029; Tue, 27 Apr 2021 05:41:38 -0700 (PDT) Received: from agape.jhs ([5.171.81.92]) by smtp.gmail.com with ESMTPSA id t2sm2668228wmg.38.2021.04.27.05.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Apr 2021 05:41:37 -0700 (PDT) Date: Tue, 27 Apr 2021 14:41:35 +0200 From: Fabio Aiuto To: Greg KH Cc: joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 50/50] staging: rtl8723bs: macro DRIVER_PREFIX expands to lowercase driver name Message-ID: <20210427124134.GA1399@agape.jhs> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 01:04:09PM +0200, Greg KH wrote: > On Sat, Apr 24, 2021 at 11:02:33AM +0200, Fabio Aiuto wrote: > > macro DRIVER_PREFIX expands to lowercase driver name. > > > > Signed-off-by: Fabio Aiuto > > --- > > drivers/staging/rtl8723bs/include/rtw_debug.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h > > index 189f02a8300a..3a5b083e95a1 100644 > > --- a/drivers/staging/rtl8723bs/include/rtw_debug.h > > +++ b/drivers/staging/rtl8723bs/include/rtw_debug.h > > @@ -7,7 +7,7 @@ > > #ifndef __RTW_DEBUG_H__ > > #define __RTW_DEBUG_H__ > > > > -#define DRIVER_PREFIX "RTL8723BS: " > > +#define DRIVER_PREFIX "rtl8723bs: " > > KBUILD_MODNAME should be used here, in the future. ok, got it > > But really, this shouldn't be needed at all, it's kind of pointless (if > it is being used, then odds are the places it is being used is wrong...) > > thanks, > > greg k-h fabio@agape:~/src/git/kernels/staging$ grep -r DRIVER_PREFIX drivers/staging/rtl8723bs/ drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CRsvdPageParm:", DUMP_PREFIX_NONE, drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CMediaStatusRptParm:", DUMP_PREFIX_NONE, drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CMacIdConfigParm:", DUMP_PREFIX_NONE, drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CRssiSettingParm:", DUMP_PREFIX_NONE, drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CPwrModeParm:", DUMP_PREFIX_NONE, drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c: print_hex_dump_debug(DRIVER_PREFIX ": u1H2CPsTuneParm:", DUMP_PREFIX_NONE, drivers/staging/rtl8723bs/hal/hal_com.c: print_hex_dump_debug(DRIVER_PREFIX ": c2h_evt_read(): ", DUMP_PREFIX_NONE, drivers/staging/rtl8723bs/hal/hal_com.c: print_hex_dump_debug(DRIVER_PREFIX ": c2h_evt_read(): Command Content:\n", drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c: print_hex_dump_debug(DRIVER_PREFIX ": C2HPacketHandler_8723B(): Command Content:\n", drivers/staging/rtl8723bs/include/rtw_debug.h:#define DRIVER_PREFIX "rtl8723bs: " When I recently changed the old macro printing hex dump I decided to keep DRIVER_PREFIX. But I can replace it by KBUILD_MODNAME. Thank you, fabio