Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp215880lqq; Thu, 13 Jun 2024 00:22:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcg/Y98hjFgT51DovwIX+TmC/mGki8KD0uEMQA5u5cwgSEt5lcHiKYEKM2xzikhAIk9X0/ya9JHaLzFZddGCMN+bN5H3i+AmGWOxJHPw== X-Google-Smtp-Source: AGHT+IG838Ry93Z0235CaxQufjViolCvpoBHSg0sYoj9W99hkvig/hw7lysmAXwm9ZF93Ux2MMEJ X-Received: by 2002:a17:90a:7141:b0:2c2:fdc5:2619 with SMTP id 98e67ed59e1d1-2c4a920f674mr4057389a91.31.1718263323672; Thu, 13 Jun 2024 00:22:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718263323; cv=pass; d=google.com; s=arc-20160816; b=Kf/CNACzlMW3cqR1MLJzv6atJ7r7Dahp5hXfKlpUQStWIP6giuHPMqJK97bihI0FDx B4pCtHXxxy1brQsxAG6WON4uyuuF6qSERQ09Wp8lawgtBOsf8XK38aK4yYKhXvgViBGV 1yqfh7RFWFdqC8qNcozQ6W/m1f1q77dafuFeol1CWg6WCLvhuhPF4vTYx7MleKUBizi3 JvUiXUrOw7XSDeWax8jW+8GTnvWJLyRDf/3Xd2r+ZDzm5B/7is2pWniaQu7V8kj/a1TM AJIaFydJuJrqyMWYOQW/OzoqTFu43jsgD32CQyeWDqYQA3A846B7cPTGKV9n7RXgjrBn mKHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=dEVFR99SLFO2y3hoQcsVrtcpVMpEzZh5Ry13XrVo3a8=; fh=GdX9ghHzSUfBy/iDeSg5hI1HOXG33rSuIy6u47tCcBE=; b=kVa96IjUQYNdRfLdEH+lSujV4LZHRsoI0qqIXdFNcgHJRDvCwCHSvwFGSj3y1H8mou QRvxWUQHb6697r5Ul2N/j7xUvrV28oaPDUzPQPfFurrZBhf8Frpq9hPyAGub2SSNFtD7 UvuFtie9G0M8+79SZDeDk4P7LOyQ8bBvPlv0snV4FIFMnVfIWAWukhHEKB0jUffkAPqJ +iy1esuaBBRJcHAiS6kxWnaABgZU7I/pxxxUR7WEGZFNIAH3WXkF6mwLl0ou0jmsR9km j9Ij2iGBr2Rw/H3Wrx+i+D4y8odVdXLLdXb+SF2BqhPnXF75/Hcjyb7tpjdtu3/Q6pWv tOOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DlloofCB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212559-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a76e03b7si3093108a91.139.2024.06.13.00.22.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 00:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212559-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DlloofCB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-212559-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8A930285776 for ; Thu, 13 Jun 2024 04:54:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1189134414; Thu, 13 Jun 2024 04:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DlloofCB" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 18322446CF; Thu, 13 Jun 2024 04:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718254484; cv=none; b=NfkgQrJhecKoCy3P417oEuVxZxTqRNPavmvTlpTJEuWNGtoD0hsughgoTfJdBWIVUhgoTn7y2MvnP3udsIP6zniyzlkDR7MRD8o5VvcSsY7ZXn5xiZ0XhdaMsPDEfdWdAObtSTzOuBMbhwib/mwVfuWqfpYdXw0XHCBbuzqGkCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718254484; c=relaxed/simple; bh=J+BhI/zGBK77styQbHQsQK52iwfQ8DKIrfeE1p8QhEA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UtxD1DZwSNj0bDws9d1zJG75Tuy3QE/ryo0bkWb4zLNHYTNvtjOPLcm5mhYnhgG1rpcGaA5zAzg5gdqqx8RMVpu5MpgF1E1VHhaq/8e9Zx882SSQhep3pysnQvDR2wrRvEhbc/M94OOUior3JjMgs69vnpVjhg2W7kqVK68wRrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DlloofCB; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718254482; x=1749790482; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=J+BhI/zGBK77styQbHQsQK52iwfQ8DKIrfeE1p8QhEA=; b=DlloofCBT7GzZkeCkfCh9mjmnRB6hDX+TOIw7aUaSqMCmReQBmmybAFl 363Es5YeFRkT+Yoe8h3tdoNFGmqdu01vlze1l++Vk/Sr0chA9CHFafqF3 834EY9M4a24o4WWZX7la+Ct6jRpIAoAfPvDNBbvP6lcPZ9CBYR0Ych+Ti brj6jY55VA683WDhrkmej1okluqvIuBVCNNqnySYy22Bo1wR5lN1hNqNI sNCk3j5xyRHsYGHkxYAo5nfRMhuj6Hy09inf5Kc8mRrubPB4MsiD4AKZ3 asfFu4aOk1CenchNdKPIKoY1nQzza0JbQXT0cIueoyOFUqxi4qy3BSLk1 A==; X-CSE-ConnectionGUID: mm3AO8wOSsuiqwLKPMqXuw== X-CSE-MsgGUID: Q/rJnvHfTiKh2eBwLbqBFg== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="40457214" X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="40457214" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 21:54:41 -0700 X-CSE-ConnectionGUID: OA/DktYHQE2CLCRzrZj1LA== X-CSE-MsgGUID: 6F+U8T/ESu2lCHcqALZ8wA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,234,1712646000"; d="scan'208";a="77465931" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa001.jf.intel.com with ESMTP; 12 Jun 2024 21:54:40 -0700 Received: by black.fi.intel.com (Postfix, from userid 1001) id 8848612C; Thu, 13 Jun 2024 07:54:38 +0300 (EEST) Date: Thu, 13 Jun 2024 07:54:38 +0300 From: Mika Westerberg To: Bartosz Golaszewski Cc: Andy Shevchenko , Linus Walleij , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH] gpiolib: put gpio_suffixes in a single compilation unit Message-ID: <20240613045438.GP1421138@black.fi.intel.com> References: <20240612184821.58053-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240612184821.58053-1-brgl@bgdev.pl> On Wed, Jun 12, 2024 at 08:48:21PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The gpio_suffixes array is defined in the gpiolib.h header. This means > the array is stored in .rodata of every compilation unit that includes > it. Put the definition for the array in gpiolib.c and export just the > symbol in the header. We need the size of the array so expose it too. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Mika Westerberg