Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp378283rdb; Tue, 19 Dec 2023 22:33:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNvZLAw+kW00LO13lMv6EbwOVEjvhmsm6q8DuxKNNoRoU6b2kRraDNAKpjcu6OX8VphxEy X-Received: by 2002:a05:6214:b6b:b0:67f:1f05:af4f with SMTP id ey11-20020a0562140b6b00b0067f1f05af4fmr3516023qvb.49.1703053980112; Tue, 19 Dec 2023 22:33:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703053980; cv=none; d=google.com; s=arc-20160816; b=hZxVqdlIZOJ+f98EawjSMC+e7eNufhdSMGOqTPnhwyc0vqrueUhqokX/w9ByCq1DTx Y1Ux1qTy+E62sapKHaguR+Zt8tyqpJ8QdLWMUnoKa68MF3Y3VijRNaKtkzgnZilBfl32 Lxfcnytv89j/x3EOvI3zGoVwDuz66C3yIZTuHmsGsiQzOzLkadhAjRdAJPgZyJg/bRuV PlzhvNg7x+MC0iDrBgQ5N40wUXoWtjo/xjAw2UOPynhf8OXpwNWV7syfh+wpIx3mfDAQ mqHAO0eszEg/TtxFPl1nlMYeXwDLki0v8EEMH4/a/c3+vUI+wOlwQozx09Z9r60kg3FK UFxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yy3Pd8xxVQGvQhu3e4sEndMfOiP5mA8UbKObDBwiH1M=; fh=j0eq7JZ5naoY5NdidH2bSYdHv4LwIrUiB8uATgLJ+hc=; b=P1a+nI2FrMpEv29uuA91DT1tfEXcPXcGZ0kHoIdNN1JpS0oT4/gGaMbtpekqDfQgs6 ut2B8GDzyYbvqs6a68VCWdJc8pR+nm+pdjrIX5dwefM7+auf3p8iEABie+dOvRJ7mH4v SMgXPlmsWsQF1zFx6hXMB0b+m1d6gvu/6xd1QnMHbeY7ezHAD3Ua2jNygnq20hyyR33U LRtbvEdGyWp1EzR8cDsqv2rpH+lfOoM++dBM6kauUGNGVbXt/5wyOutrE01fP+CyAl+6 IIpmxg9rwDuoNx4EcXC4Qd0l7eIccsW0oGKjykXcdSrsLak2v8VBqDNrKjQK/VRpnxHc 1IMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zoiVQdE5; spf=pass (google.com: domain of linux-kernel+bounces-6423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6423-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n8-20020a0cdc88000000b0067f2dc4cbcbsi8830563qvk.350.2023.12.19.22.32.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 22:33:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zoiVQdE5; spf=pass (google.com: domain of linux-kernel+bounces-6423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6423-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D4A771C24E7F for ; Wed, 20 Dec 2023 06:32:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA28111CBA; Wed, 20 Dec 2023 06:32:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="zoiVQdE5" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9521B13FF5; Wed, 20 Dec 2023 06:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=yy3Pd8xxVQGvQhu3e4sEndMfOiP5mA8UbKObDBwiH1M=; b=zoiVQdE5Br0fTA1+Sn9IQcEluf Rx4NTC6svRwUJDH66srMrY7jrUKBnydtcGe07wqhqh0JCnqVRLs0IqOE82URdB+ApI6LK4/wuE4IB zl4MPSktxQrlM+d+yTk+003gJlaho8XEXWLM3azSgOYDcWGcozqvdbQ7yh3TJmuJaQH//xhIlm2eT 6gpi6NLKpwqgVRRtpWzN+bLFvRTgNhmCSJ5+V6PH/jfW3QYWIR4Mh/YDKT2YbualcJp61E1A0xEIS +ECesDqDt2apeC6OUu0E/gpQXrJuN7nnyraKRlBh3VLUI8c+2tRjwLtPVcCFKnz85jB/F8h8U0V1H G9zsY5vw==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rFq8O-00GJ40-2Q; Wed, 20 Dec 2023 06:32:48 +0000 Message-ID: <9c955128-6867-4d0a-b2f1-eab692748315@infradead.org> Date: Tue, 19 Dec 2023 22:32:48 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] soc/tegra: fuse: Define tegra194_soc_attr_group for Tegra241 Content-Language: en-US To: Kartik , sfr@canb.auug.org.au, thierry.reding@gmail.com, jonathanh@nvidia.com, frank.li@vivo.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231220061013.120173-1-kkartik@nvidia.com> From: Randy Dunlap In-Reply-To: <20231220061013.120173-1-kkartik@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/19/23 22:10, Kartik wrote: > Tegra241 SoC data uses tegra194_soc_attr_group, which is only defined > if config CONFIG_ARCH_TEGRA_194_SOC or CONFIG_ARCH_TEGRA_234_SOC or > both are enabled. This causes a build failure if both of these configs > are disabled and CONFIG_ARCH_TEGRA_241_SOC is enabled. > > Define tegra194_soc_attr_group if CONFIG_ARCH_TEGRA_241_SOC is enabled. > > Signed-off-by: Kartik Acked-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested Thanks. > --- > drivers/soc/tegra/fuse/fuse-tegra.c | 3 ++- > drivers/soc/tegra/fuse/fuse.h | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c > index 233b8e7bb41b..c34efa5bf44c 100644 > --- a/drivers/soc/tegra/fuse/fuse-tegra.c > +++ b/drivers/soc/tegra/fuse/fuse-tegra.c > @@ -407,7 +407,8 @@ const struct attribute_group tegra_soc_attr_group = { > }; > > #if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ > - IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) > + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \ > + IS_ENABLED(CONFIG_ARCH_TEGRA_241_SOC) > static ssize_t platform_show(struct device *dev, struct device_attribute *attr, > char *buf) > { > diff --git a/drivers/soc/tegra/fuse/fuse.h b/drivers/soc/tegra/fuse/fuse.h > index f3b705327c20..9fee6ad6ad9e 100644 > --- a/drivers/soc/tegra/fuse/fuse.h > +++ b/drivers/soc/tegra/fuse/fuse.h > @@ -124,7 +124,8 @@ extern const struct tegra_fuse_soc tegra186_fuse_soc; > #endif > > #if IS_ENABLED(CONFIG_ARCH_TEGRA_194_SOC) || \ > - IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) > + IS_ENABLED(CONFIG_ARCH_TEGRA_234_SOC) || \ > + IS_ENABLED(CONFIG_ARCH_TEGRA_241_SOC) > extern const struct attribute_group tegra194_soc_attr_group; > #endif > -- #Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html