From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 0D41C79CD for ; Sun, 20 Jul 2025 07:50:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752997848; cv=none; b=gZ9O2IaTlBZZCcuU0e6ZSfffMOy/HlNonQ+nagAGxvdvxFT7Cs0oY+YRd9G5T771xc2LBV+M8u3I2aGBNqWdjtI+B4TE9YexTWMG4oWDrjgWvjyy7PTbjh6r/jfkVKo9XoS7Jco+8vXNg4vtDnzCxcsCgDL+fs+93Tkkye5yg5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752997848; c=relaxed/simple; bh=1EIzLiEKFNKNhapurV5TiPfyoyMNTU5jV2wejXKsOv0=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=ncGSYVAPjGCF4sXYAJQ3l6r0J01oqrG8+IevcIh1Bm1ssK7UFZoVfYrouPpuI8quqwcbC+4oZEWM6ME0/YnF0lLESEPTPtpqJpolfIyAW1TC55wMzbwjcrXj2Yu2IclbliTVPXELVd96tf5EfsKrVPMZuZb4bpt7uushfjI0mJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=brighamcampbell.com; spf=pass smtp.mailfrom=brighamcampbell.com; dkim=pass (2048-bit key) header.d=brighamcampbell.com header.i=@brighamcampbell.com header.b=IzjdQdo7; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=brighamcampbell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=brighamcampbell.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=brighamcampbell.com header.i=@brighamcampbell.com header.b="IzjdQdo7" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-235d6de331fso38567775ad.3 for ; Sun, 20 Jul 2025 00:50:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brighamcampbell.com; s=google; t=1752997846; x=1753602646; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1EIzLiEKFNKNhapurV5TiPfyoyMNTU5jV2wejXKsOv0=; b=IzjdQdo7wGaKuhNOGzIiwkYWcxkVGYcbdbgGLQXo2rqvvlIAIkQ85QFjVx5rmqKkL/ UTy3KIWie02KA41hqh6z901fuLsW9CpW8Ef8QKZshcSkonyCz8Zo4Z+6pDY1TnUm5pYc EYjgyiTVLEB2WUJ+94v44rpmgOPKksBJdpGbzV99neONL1vjJ54YlsH50gXibNG2iLks ZEwCb2Ad2cL0fxOjr20nW2MyskLxHPTyz4TQcYw7iz5CVZwndUfell82A7uhUUT6ibz4 cyqpgZ5RzAAq6gn6lBqig3iDjvB+CFW85IzlwEKuq1FVUc0NyBERdJsUd2zONtbNDcvw G/nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752997846; x=1753602646; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=1EIzLiEKFNKNhapurV5TiPfyoyMNTU5jV2wejXKsOv0=; b=DXA3lm1FwRpmKgaYUdLuvJkZNkbgJgDCZCIDrzeHTYoMiI/fqjCW5IsH7cAnvjYDo8 iXG2Q3JLJ8EQ9L6TbMi2HHC0FtsUdn9etYdZuF/dkzhJOBHKLPIyJALm5FNdoMqAfSiE JUDw5NQkLoyY0YaZ5Dr0RMgUuqdqVDylUtYylwvdp4fFUGSkJkqSA+nfIIPt+l5JQbcY htLu6KxwfqaBWcUR5E+44dryK7styLnOFjUZRcCs3OH+L4qEJ7O2KaCHAA6D08Jc7W8x CVTLrwWqS08pyrGekNhXIwV/QTKhKLcn8l3YSrz+TJ61yx81PUWAsSNdOKhXZk/97K1I 2vRw== X-Forwarded-Encrypted: i=1; AJvYcCW4eG8urjsLV0ttQL9SGPdVXXgUsCQlsbyyOD4z4eYSR87x9FGAPDcMDeFRM/As3sG1c2IGRWgSCeA=@vger.kernel.org X-Gm-Message-State: AOJu0Ywb5uVhv3m3n6Wx41vPgYvn+wPfcl7P+L5LIGqgxHsrGDFd2fsK haB8JN5RduukOcNldS84RJwQ78QtiW5NSA2MWlS3JY+mipEJq57VPquxFK3yjgTAQis= X-Gm-Gg: ASbGnct95Y9SaihtgZAJw7apAozZjFN6CM5lnoW3JrNa427b/hEBKl+/aXq2GqjFpJv +vIJvnBl5bAiD+YOu/VVkCi4qsJIaDIt0mHGUHNrZeSa3wzZ/pnY1a7srgrGtdp9O8lOKjhPPVP 6ehoak6VB8aEJzF7T9EjVRIcTC+zsZljhXTD1hU/VkPjUkw0oL82hwvDhYzpRYmiF0NIK/jHgvJ MktgYydVOF79FC8x+v8wnU9VOG4lwf0t+dbzPuUTLI1fF9h+zqQm2fJn3gaAJEei4gk32JZpzK1 +dSE3biwMR9+QVW5PwQsdpVL1znxnsX9Fzsmbe/UDGEUx2Y3sSdEgqxruByfDJcIA7SempxXEld /Y9BpAIlNF8YtDkfTs6w= X-Google-Smtp-Source: AGHT+IHLtegd1iyRVDLN/vP8oO8twGnp2iC58ZPKXolFVDdIfrLW6ekD318QbzbDW8XkVDBKOe/oyA== X-Received: by 2002:a17:902:ef44:b0:234:a139:120b with SMTP id d9443c01a7336-23e2566ae6fmr224043965ad.11.1752997846197; Sun, 20 Jul 2025 00:50:46 -0700 (PDT) Received: from localhost ([64.71.154.6]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23e3b60ec88sm38530095ad.65.2025.07.20.00.50.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Jul 2025 00:50:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 20 Jul 2025 01:50:43 -0600 Message-Id: Cc: , , , , , , "Neil Armstrong" , "Jessica Zhang" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "David Airlie" , "Simona Vetter" Subject: Re: [PATCH v4 2/4] drm/panel: jdi-lpm102a188a: Fix bug and clean up driver From: "Brigham Campbell" To: "Diogo Ivo" , "Doug Anderson" X-Mailer: aerc 0.20.1-0-g2ecb8770224a-dirty References: <20250717164053.284969-1-me@brighamcampbell.com> <20250717164053.284969-3-me@brighamcampbell.com> In-Reply-To: On Sat Jul 19, 2025 at 11:10 AM MDT, Diogo Ivo wrote: >> nit: can just be this: >>=20 >> struct mipi_dsi_multi_context dsi_ctx =3D {}; > > I am not an expert here but I was under the impression that this is only > valid with C23 while the kernel is written in C11. Is there something I > am missing? > > Diogo You're right, C23 was the first standard to bless the usage of the empty initializer, ` =3D {};`, but if I'm right, it's been a GNU extension long before C11. At risk of being pedantic, I'll draw attention to line 580 of the kernel's root Makefile: KBUILD_CFLAGS +=3D -std=3Dgnu11 The kernel is technically written in the GNU variant of C11, extensions and all. In fact, the first patch of this series uses optional variadic macro arguments, which aren't a part of any official C standard as far as I'm aware. In any case, a simple grep for some forms of the empty initializer shows usages all over the drm subsystem. That said, I don't know if GNU extensions are formally documented or where one would look for that information. Importantly, I am by far the junior as far as kernel coding is concerned. I yield to your experience and I'm happy to change this initialization in v6 if that's best. Cheers, Brigham