Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp417342rdb; Thu, 15 Feb 2024 04:27:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU28vVMOA5AsjSk7GSd8SIOMExgMwasEl8NSI4ZBNmjbOSDL3MSVbKxB2IQeMQna54nGdBEkNL1x11DTvkWqWnBeF0YwNHQZ1fgAzsZKw== X-Google-Smtp-Source: AGHT+IG81oISwpUcIXBBbpCOQJIsgatKB2WH9I1B9hxtCqZbCwse1iemoenZmfYtKC8pkO47XHDy X-Received: by 2002:a17:902:ce82:b0:1d9:63a3:e962 with SMTP id f2-20020a170902ce8200b001d963a3e962mr1764219plg.6.1708000062183; Thu, 15 Feb 2024 04:27:42 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id lv15-20020a1709032a8f00b001d9e8a8809bsi1045060plb.600.2024.02.15.04.27.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 04:27:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=bkqR6Eya; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-66789-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66789-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sy.mirrors.kernel.org (Postfix) with ESMTPS id C235EB213D0 for ; Thu, 15 Feb 2024 11:28:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 321ED12AAC8; Thu, 15 Feb 2024 11:28:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bkqR6Eya" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 B5407129A75; Thu, 15 Feb 2024 11:28:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707996489; cv=none; b=kYxWriWD12sG7Plmy+PQg7cZxneGATu4CdozN11kO/PKrH5AFtzTQc1lWMzGcKemrGl1K/Z7FBAXEDUFkWDC+h8BvpN//X/Z1KBLQB2lilN3RXthmTkvV+wyEWOxdTAJ3cPyhRfmff+GoqZFS/hA4j6xFYsIq6cDqYbrMmm6SdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707996489; c=relaxed/simple; bh=xO9ERZYT04zobE8avkfrLBAVFW+bp83vnhF4juLP3AY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=W1pDdLEn9L3ZQ5itBn1VMRNfkG30OIxLFkf1xN43ZqPI7CsEkagL3JW94ATN780PLwrIcx0HIZj91KsUgWFC3ts5JBiE2LilQMpr/zPvU1HfuAWzNRAc2BzxmnvBo6IGDPZhtAFArKCXzok1D/mVmHTzo2S0u0nxXn1UOYmK23Q= 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=bkqR6Eya; arc=none smtp.client-ip=192.198.163.19 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=1707996487; x=1739532487; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=xO9ERZYT04zobE8avkfrLBAVFW+bp83vnhF4juLP3AY=; b=bkqR6EyawmhotfDgII8pyqI/tFR6JZ8/XUGGfVc3F5UqDexZDaf78lJy HxxqxESLJK45t9yUE+GGkpw6lZW3Mbzttn+aLI1MKvWnNSZBPmDzeBu9F 1yJjZ0iwrSx1yMSi+nHYHXdb7wI/Bwk3cjiWjHqZE7UA8J9tYRavG+MFW YUT2ExM/VQQnW2o+eoDGxLMMqieh3U9hr2m4NI4fh7pM1r/G9o2D0k36T 64dRsJ36i+VG5qW3zyvh37veLTzEhvckhZSN8V4KBhRy9Me/qSoa17VMg Al+TI4E+PZiGjRRzCpdVCDCITdeb5C60qQ+Chyi8gleX4gn87Wc0o3lLu w==; X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="1954098" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="1954098" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 03:28:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10984"; a="912149520" X-IronPort-AV: E=Sophos;i="6.06,161,1705392000"; d="scan'208";a="912149520" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 03:28:04 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1raZuL-00000004m4B-4BsW; Thu, 15 Feb 2024 13:28:02 +0200 Date: Thu, 15 Feb 2024 13:28:01 +0200 From: Andy Shevchenko To: Geert Uytterhoeven Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robin van der Gracht , Paul Burton Subject: Re: [PATCH v2 03/15] auxdisplay: linedisp: Use unique number for id Message-ID: References: <20240212170423.2860895-1-andriy.shevchenko@linux.intel.com> <20240212170423.2860895-4-andriy.shevchenko@linux.intel.com> 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 Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Feb 15, 2024 at 11:03:27AM +0100, Geert Uytterhoeven wrote: > On Mon, Feb 12, 2024 at 6:04 PM Andy Shevchenko > wrote: .. > > struct linedisp { > > struct device dev; > > + unsigned int id; > > Note that there is a hole on 64-bit platforms. > Hence I'd move id below, so the hole is at the end of the > structure, and might be filled by future changes. I had checked timer_list, but while it has holes, without debug it ends on 4-bytes boundary (without debug enabled), otherwise on 8-bytes. Nevertheless, relying on the above seems fragile, so I follow your suggestion. Thank you! > > struct timer_list timer; > > void (*update)(struct linedisp *linedisp); > > char *buf; -- With Best Regards, Andy Shevchenko