From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="3GGOItv0" 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: netdev@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