Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6993412rwr; Tue, 2 May 2023 08:08:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56+++c6cu/glio6f9HJNzTPJjfzS7Zk6pThvRgCyVCR9bGsDDyJBcNa+s1dev6BtXWbpBl X-Received: by 2002:a9d:5609:0:b0:6a6:367b:1927 with SMTP id e9-20020a9d5609000000b006a6367b1927mr8499620oti.17.1683040119554; Tue, 02 May 2023 08:08:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683040119; cv=none; d=google.com; s=arc-20160816; b=VorjSetZ1iDzzDY+tSGA2tYJRGt74QYz6FtLZC2qTqqMQkKlxVm/2CDL3d/hwniMxd +2IyqHwbUDfCumASQ1JojQs6U8NYXqUlueXOrizWBQUsPfG6jPfor4aLMJY+C1hvP5md /LXH7vL6lSlcuLZvS8NxYny/TW55wWQwhh1nTV8+u+ylpQAXS3ArYSjT+xL6tR04s89L gvT1o4mi1YhpmjkphhB37SrnMJiz5drRq4ok/9uf2XXcTZSL/qscK+AvkOfCArQg2K9Y Il/d58bFwdbUAVda3gczn8nhbtJTjqdjUcUZku3CVqMp4zHl9voRiH09DBtC9KyHTC7s fMPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=rsaMqlatQkViiSAZhVQs9Ou1oKGXkWWetutoefwbQVE=; b=BuokQResu07HqPYSEIbsMSVJQn22N5gLXTOKqzRnWh3gf8/RhzOuBoy4jgsDJcY24B 3HtFMiclR3UIgrEkQNeGuBX6/Zi4zbbAc6+wR9euPWrsAuceo32M8EEyziXFFU+k4QsO SgM3Q4WrLOvP98pBVOVngA2NbccZTVFF1Grdst+4G4EWzz1EZfLSadduhD5fOGfDLHmz a7PBO+EZTPVfpSGY/uMLu8/l7lYqCcwjDpuLPXgnpCwQn+fP8HZGB1VhW+8k6AZQtlQb 7IOjXNCrlkPtbzGnoscKKm3swJamA1OtJ2v/DDPYUGE1VWV4Rsz7K/TWCRqAJSEdS66Y /Pdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SlHRLPUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020a05683002f200b006a5fe2b6b88si23141631ote.133.2023.05.02.08.08.12; Tue, 02 May 2023 08:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SlHRLPUC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234547AbjEBO6N (ORCPT + 99 others); Tue, 2 May 2023 10:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234187AbjEBO6J (ORCPT ); Tue, 2 May 2023 10:58:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48E2C2693 for ; Tue, 2 May 2023 07:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683039442; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rsaMqlatQkViiSAZhVQs9Ou1oKGXkWWetutoefwbQVE=; b=SlHRLPUCF+EGceEg1NddgqhwUw8oIeCOnhMkHTVB55Q06gOOmGuBr60RROxC+StHj+l7CH 7vji06HZu3/lksi4RajE7DAoVPsGoYE9zwQQKj+AB5ZfsSi6GcPzbXV5PuJ9k/F+J6/8em DtpA/gNp61wbnOdZ9yhVCJJDFxjxmik= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-281-sj6OuDCFNmKu6JjyM7Xx_Q-1; Tue, 02 May 2023 10:57:20 -0400 X-MC-Unique: sj6OuDCFNmKu6JjyM7Xx_Q-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-3ed767b30easo6689031cf.1 for ; Tue, 02 May 2023 07:57:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683039440; x=1685631440; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=rsaMqlatQkViiSAZhVQs9Ou1oKGXkWWetutoefwbQVE=; b=OpKCVG4nNQBTQ/qWWxoxsR9Z038oRZEMP3jzLnRwuU0PxsZCTuF53wHDDSNb3sA3yK amPIAxcInvpbokzKnFkdgX3/cqk0Vzs+LeC/GYGis5Kc1wDcerNnTx1QNlhK2jzR6bry j/Guf2t4yYLValQxMzuU6/F673dWBBM9NW4XO0B8AG2xg4ayUaC0pRMcjT9eeCYezfz/ Q0nT55vPytxgNif2xFELZKvWxTFy1fi1YDxdllASxubNnebCThql3u3kQ+SZcXl2uaL/ rMsygy3MGeSJ3y9CLtCJ3AuBs4AxgKx8/VRTtlG2TNQxLiXIbz369axVJ2eYRW1uHXul fYvg== X-Gm-Message-State: AC+VfDxWVY1OeFjQKb0aSQPiAh8IQZetJOTiRWIDZrpTKlXnEhqhNOni z2sLVmJs+Ndww/8YIrrTTg32Vjhuq4ytfJayA1nwwc+lIm8yvEilTRVqg4VeIvdcUZGlbWyabqj 57bck9UHIt1WIS7gY6Ze9x92C X-Received: by 2002:a05:622a:1999:b0:3ef:3204:5148 with SMTP id u25-20020a05622a199900b003ef32045148mr4092131qtc.1.1683039440377; Tue, 02 May 2023 07:57:20 -0700 (PDT) X-Received: by 2002:a05:622a:1999:b0:3ef:3204:5148 with SMTP id u25-20020a05622a199900b003ef32045148mr4092048qtc.1.1683039439385; Tue, 02 May 2023 07:57:19 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-253-104.dyn.eolo.it. [146.241.253.104]) by smtp.gmail.com with ESMTPSA id y26-20020a05620a0e1a00b0074f4edb7007sm7249541qkm.112.2023.05.02.07.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 May 2023 07:57:19 -0700 (PDT) Message-ID: Subject: Re: [PATCH] pds_core: add stub macros for pdsc_debufs_* when ! CONFIG_DEBUG_FS From: Paolo Abeni To: Tom Rix , shannon.nelson@amd.com, brett.creeley@amd.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 02 May 2023 16:57:16 +0200 In-Reply-To: <20230502145220.2927464-1-trix@redhat.com> References: <20230502145220.2927464-1-trix@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2023-05-02 at 10:52 -0400, Tom Rix wrote: > When CONFIG_DEBUG_FS is not defined there is this representative link err= or > ld: drivers/net/ethernet/amd/pds_core/main.o: in function `pdsc_remove': > main.c:(.text+0x35c): undefined reference to `pdsc_debugfs_del_dev >=20 > Avoid these link errors when CONFIG_DEBUG_FS is not defined by > providing some empty macros. >=20 > Signed-off-by: Tom Rix There is already a patch pending on the same topic: https://patchwork.kernel.org/user/todo/netdevbpf/?series=3D744165 and probably a different approach will be preferred: https://lore.kernel.org/all/84bc488b-5b4b-49ec-7e1a-3a88f92476f6@amd.com/ Cheers, Paolo