From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 AEED72D23A9; Wed, 1 Oct 2025 22:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759357601; cv=none; b=m1KD1n8OI1IazG1qHQ7KMet3qqKofN2pG5JQn10Y/NplbjHEbhmzzqH9+U/lasfJXjAN0BOxDobWngeMRvBXa/GCGzhGB8orYxT8QSMrTCyyR+FgIxBNP218B5FbCX/IC1O0ALO/6n9C03ysKWrGaRL0lEwkwm+mFxoFwxgQNiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759357601; c=relaxed/simple; bh=kdmD9S//kDqyuwjY16zU0Y+/APZ+wqmlD4cuoNUeaQ8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=RINQzwZhuRWmfy6W+TVpA/QO3VspLM5HY+yH3u1Z9pwM7u+pto0mx3qVJ3qZK0I2unKihRQfin63ltNDaj4+AdCHp6ocnAO3IyZxAuZJDz3o9MlVyR0OXqlrHCEQf6yexj/NHI+rI9KUvqu9L6OGUt7WFDD6r7fpT4iqQoHXZyI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org Received: from mop.sam.mop (2.8.3.0.0.0.0.0.0.0.0.0.0.0.0.0.a.5.c.d.c.d.9.1.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:19dc:dc5a::382]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sam) by smtp.gentoo.org (Postfix) with ESMTPSA id 2D0F7340BBE; Wed, 01 Oct 2025 22:26:38 +0000 (UTC) From: Sam James To: Magnus Lindholm Cc: Richard Henderson , Matt Turner , Stian Halseth , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] alpha: don't reference obsolete termio struct for TC* constants In-Reply-To: Organization: Gentoo References: User-Agent: mu4e 1.12.12; emacs 31.0.50 Date: Wed, 01 Oct 2025 23:26:35 +0100 Message-ID: <87ms6axnqc.fsf@gentoo.org> Precedence: bulk X-Mailing-List: linux-alpha@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Magnus Lindholm writes: >> +#define TCGETA 0x5405 >> +#define TCSETA 0x5406 >> +#define TCSETAW 0x5407 >> +#define TCSETAF 0x5408 > > Hi, > > A similar patch aimed for powerpc (commit ab10727) had the following > definitions: > > #define TCGETA 0x40147417 > #define TCSETA 0x80147418 > #define TCSETAW 0x80147419 > #define TCSETAF 0x8014741c > > On Alpha, if I do something like printf("TCGETA = 0x%08x\n", TCGETA); > I get TCGETA = 0x40127417, but on an intel/x64 I get 0x5405. > Is this something we need to consider here? There are fallback definitions in generic: tools/include/uapi/asm-generic/ioctls.h:24:#define TCGETA 0x5405 include/uapi/asm-generic/ioctls.h:24:#define TCGETA 0x5405 I think those are used where there was no historical value (i.e. for newer ioctls). Coud you run something like https://bugs.gentoo.org/962600#c5 to get the full list of (removed) constant values for alpha? It's awkward for me to test with older glibc. > > Regards > > Magnus thanks, sam