[{"id":3683855,"web_url":"http://patchwork.ozlabs.org/comment/3683855/","msgid":"<n41n0n8n-n9q6-qrn1-2qs8-rpp035n0q593@fhfr.qr>","list_archive_url":null,"date":"2026-04-29T07:29:17","subject":"Re: [PATCH] libsanitizer: Fix up build against latest kernel headers","submitter":{"id":4338,"url":"http://patchwork.ozlabs.org/api/people/4338/","name":"Richard Biener","email":"rguenther@suse.de"},"content":"On Wed, 29 Apr 2026, Jakub Jelinek wrote:\n\n> Hi!\n> \n> The Linux kernel recently removed the linux/scc.h header, so gcc (both\n> 16.1-rc2 and trunk) fails to build e.g. on Fedora rawhide now.\n> \n> The following patch cherry picks a recent upstream fix for this, the macros\n> defined in that header haven't been really used since 2013-ish.\n> \n> Bootstrapped/regtested on x86_64-linux, i686-linux, powerpc64le-linux,\n> aarch64-linux and s390x-linux with linux/scc.h missing (16 branch) and\n> on the trunk with linux/scc.h not missing on x86_64-linux and i686-linux,\n> ok of trunk and 16.1?  I think we want this in 16.1 and it shouldn't be\n> risky.\n\nOK for both (and also for backporting further).\n\nRichard.\n\n> 2026-04-29  Jakub Jelinek  <jakub@redhat.com>\n> \n> \t* sanitizer_common/sanitizer_platform_limits_posix.cpp: Cherry picked\n> \tfrom LLVM commit 3dc4fd6dd41100f051a63642f449b16324389c96.\n> \n> --- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp.jj\t2026-04-22 07:43:37.787920757 +0200\n> +++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp\t2026-04-28 15:51:39.348680761 +0200\n> @@ -152,16 +152,15 @@ typedef struct user_fpregs elf_fpregset_\n>  #if defined(__mips64)\n>  # include <sys/procfs.h>\n>  #endif\n> -#include <sys/user.h>\n> -#include <linux/if_eql.h>\n> -#include <linux/if_plip.h>\n> -#include <linux/lp.h>\n> -#include <linux/mroute.h>\n> -#include <linux/mroute6.h>\n> -#include <linux/scc.h>\n> -#include <linux/serial.h>\n> -#include <sys/msg.h>\n> -#include <sys/ipc.h>\n> +#      include <linux/if_eql.h>\n> +#      include <linux/if_plip.h>\n> +#      include <linux/lp.h>\n> +#      include <linux/mroute.h>\n> +#      include <linux/mroute6.h>\n> +#      include <linux/serial.h>\n> +#      include <sys/ipc.h>\n> +#      include <sys/msg.h>\n> +#      include <sys/user.h>\n>  #endif  // SANITIZER_ANDROID\n>  \n>  #include <link.h>\n> @@ -534,8 +533,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(El\n>    unsigned struct_kbsentry_sz = sizeof(struct kbsentry);\n>    unsigned struct_mtconfiginfo_sz = sizeof(struct mtconfiginfo);\n>    unsigned struct_nr_parms_struct_sz = sizeof(struct nr_parms_struct);\n> -  unsigned struct_scc_modem_sz = sizeof(struct scc_modem);\n> -  unsigned struct_scc_stat_sz = sizeof(struct scc_stat);\n>    unsigned struct_serial_multiport_struct_sz\n>        = sizeof(struct serial_multiport_struct);\n>    unsigned struct_serial_struct_sz = sizeof(struct serial_struct);\n> \n> \tJakub\n> \n>","headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=v+WehzLj;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=RTmsu6EB;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=v+WehzLj;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=RTmsu6EB;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=v+WehzLj;\n\tdkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=RTmsu6EB;\n\tdkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de\n header.a=rsa-sha256 header.s=susede2_rsa header.b=v+WehzLj;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=RTmsu6EB","sourceware.org;\n dmarc=pass (p=none dis=none) header.from=suse.de","sourceware.org; spf=pass smtp.mailfrom=suse.de","server2.sourceware.org;\n arc=none smtp.remote-ip=195.135.223.131","smtp-out2.suse.de;\n\tnone"],"Received":["from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g588F3gZFz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 17:29:48 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id BC62F4BB3B81\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 07:29:45 +0000 (GMT)","from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\n by sourceware.org (Postfix) with ESMTPS id AE2B94B99F7C\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 07:29:18 +0000 (GMT)","from murzim.nue2.suse.org (unknown [10.168.4.243])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id BB0FF5BD0C;\n Wed, 29 Apr 2026 07:29:17 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org BC62F4BB3B81","OpenDKIM Filter v2.11.0 sourceware.org AE2B94B99F7C"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org AE2B94B99F7C","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org AE2B94B99F7C","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777447758; cv=none;\n b=TWK4vs3mv5jZDPUUagpvKYbwJlTNKnQkDm23qpYHrJF3gpBKCvs98QkIwiHWK+Zu0jnoW2R2CfCypVQphondUO9OBULldEWybc18Mc5HGBgCTsYfRYdECR5oKJLBdLEjwClxK8tjhzLiVtHhHTImHdVEDFlBvAjj6lSmlnYaHr8=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777447758; c=relaxed/simple;\n bh=lApsfqBBDyWOPMTZZQyrHAxAu1YO1TIR4sbDYkBnnnc=;\n h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:Date:\n From:To:Subject:Message-ID:MIME-Version;\n b=BL5FzbpUwngNBosYqDRBIAQxRvcjXQTdQel6l6Kd0MT+n4oU6FIHTuTgJg+gOpmEqBv7Tf0Fr1SEdkPAmbHvwcpSONV33A7gSMmu8itwyJnUiElO35JClI1SASsOcCXM5LAqrB9MWfPJPbfvm60NSUkVx23fh/82wv8JgkggXMA=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777447757;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n in-reply-to:in-reply-to:references:references;\n bh=dD5UYdCiqGHs5neACwd7SyWwv8Ly+UEk8sACCDuwsNk=;\n b=v+WehzLj0oMlgxRFXeyNC3MTTZ41q6reYJk17duND6Plz4lV/FGA/al7ardkSkRujTfy2G\n ytgL9QTmaUU5nnILidUgJC1a9c/GBNeNvNIGag4xlGHwQiioMRHsLn4mQn/eXUKeTjAG6e\n QT9rkKJkhN8aRuURvjwWZ7//Pj9SRCA=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777447757;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n in-reply-to:in-reply-to:references:references;\n bh=dD5UYdCiqGHs5neACwd7SyWwv8Ly+UEk8sACCDuwsNk=;\n b=RTmsu6EBYQVaaAdPzG3R/45oyc+tKuH/tnbgatHKmIIlYKpkZsrhDBV9EpjuwzWYCfm48h\n 5RI10CtY32utGVAQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1777447757;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n in-reply-to:in-reply-to:references:references;\n bh=dD5UYdCiqGHs5neACwd7SyWwv8Ly+UEk8sACCDuwsNk=;\n b=v+WehzLj0oMlgxRFXeyNC3MTTZ41q6reYJk17duND6Plz4lV/FGA/al7ardkSkRujTfy2G\n ytgL9QTmaUU5nnILidUgJC1a9c/GBNeNvNIGag4xlGHwQiioMRHsLn4mQn/eXUKeTjAG6e\n QT9rkKJkhN8aRuURvjwWZ7//Pj9SRCA=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1777447757;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n in-reply-to:in-reply-to:references:references;\n bh=dD5UYdCiqGHs5neACwd7SyWwv8Ly+UEk8sACCDuwsNk=;\n b=RTmsu6EBYQVaaAdPzG3R/45oyc+tKuH/tnbgatHKmIIlYKpkZsrhDBV9EpjuwzWYCfm48h\n 5RI10CtY32utGVAQ=="],"Date":"Wed, 29 Apr 2026 09:29:17 +0200 (CEST)","From":"Richard Biener <rguenther@suse.de>","To":"Jakub Jelinek <jakub@redhat.com>","cc":"gcc-patches@gcc.gnu.org","Subject":"Re: [PATCH] libsanitizer: Fix up build against latest kernel headers","In-Reply-To":"<afGhHC3kN_51NEXa@tucnak>","Message-ID":"<n41n0n8n-n9q6-qrn1-2qs8-rpp035n0q593@fhfr.qr>","References":"<afGhHC3kN_51NEXa@tucnak>","MIME-Version":"1.0","Content-Type":"text/plain; charset=US-ASCII","X-Spamd-Result":"default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[];\n MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[];\n FUZZY_RATELIMITED(0.00)[rspamd.com]; RCPT_COUNT_TWO(0.00)[2];\n TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[];\n RCVD_COUNT_ZERO(0.00)[0]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n DBL_BLOCKED_OPENRESOLVER(0.00)[fhfr.qr:mid,suse.de:email]","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}}]