Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp781498lqh; Thu, 28 Mar 2024 17:00:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVS7SuqKVLtSG/GNLlcsAstn9kNYjW4Yu7kpsD8w5VWCiL69EwsSS8w3NLCZ5FLfU2VRW04wfcfCkznXPko1sCotBTC85XibTZJW54Ikw== X-Google-Smtp-Source: AGHT+IEIjB776xleM3TGZLCTz5Vh1UqAxLlzUiCtzxhIL1ZYkODZY7clINXE8s+7a0rjJYG6wWIz X-Received: by 2002:a17:906:c0cb:b0:a46:b1b3:aba0 with SMTP id bn11-20020a170906c0cb00b00a46b1b3aba0mr458720ejb.17.1711670432595; Thu, 28 Mar 2024 17:00:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711670432; cv=pass; d=google.com; s=arc-20160816; b=MP8NmHCfkrC3I1imWlOUzhTmnGTJQZCUPdQAZOcHkJVjcer25bPzJa8CuKCJ1xYEtN la7X6Ju8d1PRwD0lZvfOGim9chENNZkqzOerR2vH6JF2kSDN1BuigBmcryeUIZIHV87Z acQcPESL8/eqetebc9MimjKEPOLIHSFQQgNwcENedVTz4b1gf9VSdVipwl4Z+uyJlMhe AMDAVyXLv59zMwwOYgnD3W13g6ZIxmkDPFWBfcDqfdC3Y/vZBzzRS16Ef3NDZSNDUHnQ fv3VUJtOttY83tbcp0JA49abZWCxPUT6cYAKEg3QZWdhyDL3ECEbA1Zfe/rHjNgB9mzx hWEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=T11tKOiumhan7/aJq4T1XnpxT0P/7w0lhoUT1uDz5xc=; fh=U+FUnTEOesGTn2pZpunKz99nngQ4IMTWPvoCsjh/A1A=; b=huOh6INcl3TZlEQ4/LdZS2kY8unTUDJox8/6UfrCzkFXtZab8RjEqOm2OAEBmJLpYt BcIhOLf+c/GR1g2GA93f7U3D7gWc9xm4ZKG1kS4P80eay7tN26vb9cLhSTnAkcBuuuF2 pW468S2mOC4qq0Z/jV5kEIqgpsv2WqDdaGocekE3zg01VymYk1QNujv9MuzAj5E4UXtI /sh4j2kGbKFwHlnlrXauxg8RSuZXUs7wXOS03dqPSENGKoqIaXEhorgU/5h59JfeJ0zl 604whXxcyTekfB9Lyz94Onhu0zzUUIuFhuzfaZV7YRDuGseVp3bfMANShTVk++kbuNks lxMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pBr2MLfh; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-123847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lx3-20020a170906af0300b00a4e26a4bbc3si842449ejb.51.2024.03.28.17.00.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 17:00:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=pBr2MLfh; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-123847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3143E1F22CD6 for ; Fri, 29 Mar 2024 00:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19E39A936; Fri, 29 Mar 2024 00:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pBr2MLfh" Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A0B27FB for ; Fri, 29 Mar 2024 00:00:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711670423; cv=none; b=GdYVXmbrMNk0oBZrnFHqpPAkh7bLCfeAsc3kRy45VP0lm5SBxJPdI8IfZiNCZ3afllt5QxT4oby11uWtHuS8+/gR8TI+e++5tD9Zm5SdWRM/j4EDtxBsUJyeI1wZ9uJTcb096EsW5gATKOJ3qKCbr9cwgifm6r2roSKIEojsFkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711670423; c=relaxed/simple; bh=T11tKOiumhan7/aJq4T1XnpxT0P/7w0lhoUT1uDz5xc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=tFlZ9VBRZg3YqNfYSldFwMDrtLUSmAq/ADLSOmbIA76k2HzNPBEJtq0aLrLXUJqyVxVlEZ+JFzpYZTJhaJz2HKYwNGMBs7IghgAEGaRiV5iZNSgKRaQpz1oFWR7X/pnoGzFlI9qCPhmvP4lOy8DWpqjQNFHF5nFN2UNCPq/TZ28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=pBr2MLfh; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-dc6d9a8815fso1596403276.3 for ; Thu, 28 Mar 2024 17:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711670419; x=1712275219; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=T11tKOiumhan7/aJq4T1XnpxT0P/7w0lhoUT1uDz5xc=; b=pBr2MLfhvMUStzof151jmDBPoDuxmWoDcbB+JOWt1oxnRuZSBFjbVdLXYRnqzYw3nd P6OmUZnsiU+wtDW2xQ2LP8oHzEXw+7Y1jryQ40pT+ItZjCrWCNunIoVgN0MZ8qXMuSKd G3Gs/AHyZ37OuPIaxFdtFbFPY4MqRClMGvCEZCXctSfRKgHDRBJ3a9kc3DTGKwsoS3SC NycENPBJ2BpjVIlPs1yFECw+Wwk45l3G6kueZq72FiBG5A+qbNue05aQF4cckMsNjlxO mLj+l1TKP324ka/M6DOCfg/5Hh9qJpn79Dbf0s9cSz8Z5i5gugRGosrPrliq4pype/iB 2GQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711670419; x=1712275219; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T11tKOiumhan7/aJq4T1XnpxT0P/7w0lhoUT1uDz5xc=; b=SXOKF8HMjhRotkCn80cIjj8zDwkMxsklD/aiKwFuF4QAxDSrErff7UN16kvtPB/HFm wOWBpMwkUR4MV4v0sXDX5Xy9NlrDpAnCk2797edMLBAGa+jf7IN+re80dmT6CYNZ7uJB c2kIpJYzvKtDPRgJ0apHRMBrLy/XVLQysWOmIdd5T0rKmFf/ADxZeV7bG/hPk0fmiqNs CCFlsEAM9xTXhFqLlBoZkdZ2huXR3AzLJZLdJqMzBKzshpER1D3U6Gzqq4ZT6eWmDkpr J0lF2/nXpYk+aeMpZ6FJpwyS3l7CjQEdq2gB3biQypc5UwVY9Qmbhc512nchp6XmKKv4 wbMA== X-Forwarded-Encrypted: i=1; AJvYcCXDm3f2RxqLBG8UJz+GoWBcwbgeS4ajo3Zgy2pDPT9Vsr5UFhkUBpuczDiIHm6OM7ymgNc519roxNe4FgKULzGKxmtgxugQyONxL5eM X-Gm-Message-State: AOJu0Yy/NNqDz96vjX3XEclf/FmDPTzyk7x362O1Sbh0fakhDtlVVxXl jYLhOLeArq5vCVxK7cfaW3RhNLM5Dy12N1jQcFIgtUNaLRxDoHy5bVb79NRokZLgcVyLa7CBctA O2btxuugXxvPWVYWMcQeAJywpQ+8we71QHIyp X-Received: by 2002:a25:9b05:0:b0:dcd:2f89:6aac with SMTP id y5-20020a259b05000000b00dcd2f896aacmr820996ybn.10.1711670419054; Thu, 28 Mar 2024 17:00:19 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240328145323.68872-1-tursulin@igalia.com> In-Reply-To: <20240328145323.68872-1-tursulin@igalia.com> From: "T.J. Mercier" Date: Thu, 28 Mar 2024 17:00:06 -0700 Message-ID: Subject: Re: [PATCH] dma-buf: Do not build debugfs related code when !CONFIG_DEBUG_FS To: Tvrtko Ursulin Cc: dri-devel@lists.freedesktop.org, Tvrtko Ursulin , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, kernel-dev@igalia.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 28, 2024 at 7:53=E2=80=AFAM Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > There is no point in compiling in the list and mutex operations which are > only used from the dma-buf debugfs code, if debugfs is not compiled in. > > Put the code in questions behind some kconfig guards and so save some tex= t > and maybe even a pointer per object at runtime when not enabled. > > Signed-off-by: Tvrtko Ursulin Reviewed-by: T.J. Mercier