Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1867867lqg; Mon, 4 Mar 2024 06:21:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUNxuY4Ypb1GkV3pL+AwSfMl3cuQKYX5Sce+ejVVV2mTG2KgwYubwpOEYSAHitnxKCWkkVZMomEM22JagmKO2D+VqmC23tP5u1taVLEXg== X-Google-Smtp-Source: AGHT+IH0fHmT1o66/I6nukPuIhQjlfXLkPGPNMmfWEIizleUceymaJED+DBUXrOVjldGwSbEbngJ X-Received: by 2002:a0c:efc4:0:b0:690:7928:87bf with SMTP id a4-20020a0cefc4000000b00690792887bfmr2270002qvt.22.1709562115892; Mon, 04 Mar 2024 06:21:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709562115; cv=pass; d=google.com; s=arc-20160816; b=XcRORu0bffinjp8jZSpsxhWk0aPadkD2W0+raAcKTA3/E0xcs8jZTArdampinlkaYS R3i5nN/dDV5SN3+i9PqpnXf3mlXwWn2tfoFAlJ1tn5QQsWkWRVaMydSVv4RjuQAOZixV Mek6//SWHR42EcVy3oRbSYIjNFYwnau/Z8Y3kDCl72XFkWJKlr4RfgxFduuAenjPQXWZ dhbCHuSnRZvF7X2YnK+0SSOWeKm7I1t/wYWfTi+b2+JHkCNDkh31oYgokrth3LyStSKe EnZJtlGbUQewr/RuvmzxqRI+jkaUFeqriKA+GCdA1dm3XxvzeECdvXCt3QPr2xhdl1UF zMxQ== 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=JIN8y4O7mW/tfP/yj2CUKARqOiw3PB7vIKQNQWOqQ6Q=; fh=+yg/40YjaGUJpYiiACOD6TUwQ774D0pA+M2bGpWQC6M=; b=QAfBf7q7sbit4bi6poeYVbLA367501z7YB+h2bTQUILm3zxaoEqVmkDOoUiqUsTIv/ szJoEfUFZydz9squSCsKJ1zaWpicQnxgKxFRkrAs+iux7wk5mPxXEnF4TcnLp60LXibW AX6DEvSPz2JNIimU0Y546BxsQ9xvQjB3NxTANOZPmMqBTBjyuoNHTlqRUtNaKUUYkX8n /8OXkvdhi26991n0p0TmDK3/HuC9jiaPR6bbDjdj3FGSNHtxSEoApxLssBEdfDc4wZHc eiWt2x6m5+tjT+EPF0WHrFAM8d823B/DPpxunDfDcnYZrPWhYq5x/sj2RNTrwwZnN1LZ +lmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3GGOItv0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-90720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jm14-20020ad45ece000000b0068cb0aa2ec6si9844452qvb.518.2024.03.04.06.21.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 06:21:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3GGOItv0; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-90720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 9DDD81C22471 for ; Mon, 4 Mar 2024 14:21:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAAB73FE58; Mon, 4 Mar 2024 14:21:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="3GGOItv0" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 79CEF3FB0F; Mon, 4 Mar 2024 14:21:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709562110; cv=none; b=PNlhDCkcVn523jLXjyeMB9/dOt5TTbJoUm5ZQqSEekicxU15OA+V+epiA5VcC96+o81ClJCxPAqbcc3CiVaXjomQ410b+0mYBRTVDnpcWvMyhJh81LHi80KTfKSak+BeNenPeXRY1jYP9UG0n5TyrHEY/1cgZLgm9N7s339KJZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709562110; c=relaxed/simple; bh=zZT0cmO/66bD+ZDQQKiN4DsPz1NU/xkUGFceWCJydN8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nD6zWlKO0ZLC0ybaMK7YEa4S+zqH2byuYlHhJ9BsSG/IjBHUybIv61XbDXvM8/+Oy4OL1h35lZ4qc7CedCnmLgVy6gi2Yt6c9aelfNHMEDD3p9ApQSRF7d1oy6BZeQUTFoGVo9j2+otH8/mIL9AUkFd+7hP9OrS41HweJAj7GJY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=3GGOItv0; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=JIN8y4O7mW/tfP/yj2CUKARqOiw3PB7vIKQNQWOqQ6Q=; b=3GGOItv0lEPkfxKpYVSFfaAur4 nP/lEhux2TM3ZpooxAbmYlyKTjm4jRE1U4L3hx0PTOCEMZ/qiEyhECndZiY9IDIJ164AM5Fv36RkN TYAkVWYnLVv28HqXJMsZ1XoqTxnvKBJ7qKB1v/A4n9fOoOEUAV9wOcJLXQWXrMUfWMyM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rh9CF-009KaP-HK; Mon, 04 Mar 2024 15:21:39 +0100 Date: Mon, 4 Mar 2024 15:21:39 +0100 From: Andrew Lunn To: Ravi Gunasekaran Cc: Lukasz Majewski , Oleksij Rempel , Eric Dumazet , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, Tristram.Ha@microchip.com, Sebastian Andrzej Siewior , Paolo Abeni , Nikita Zhandarovich , Murali Karicheri , Ziyang Xuan , linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: hsr: Use full string description when opening HSR network device Message-ID: References: <20240304093220.4183179-1-lukma@denx.de> <8d92dcbb-828d-17f4-d199-c625505e7b0c@ti.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=us-ascii Content-Disposition: inline In-Reply-To: <8d92dcbb-828d-17f4-d199-c625505e7b0c@ti.com> > > case HSR_PT_SLAVE_A: > > - designation = 'A'; > > + designation = "Slave A"; > > "designation" is now a pointer and is being assigned value > without even allocating memory for it. "Slave A" is in memory somewhere, probably the .rodata section. So designation now points to that memory. Andrew