Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15255977rwb; Mon, 28 Nov 2022 09:30:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6TnSqSMxdnV5hgLrjXbc0x0QgpdUdBv8npK6ZeyESR44kQBKOfv6BKEiSNG9JFrBA4oVeH X-Received: by 2002:a17:906:3ad8:b0:7a8:dddc:7ec6 with SMTP id z24-20020a1709063ad800b007a8dddc7ec6mr44088073ejd.734.1669656601848; Mon, 28 Nov 2022 09:30:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669656601; cv=none; d=google.com; s=arc-20160816; b=FctKXKYTXU6TpGMgfy4FiBfNho7jPVtk3DyvF4zBKvynTrDsy5CCYEyzmr8XQSsq3l DuWxCL0xUYN0GyHH/Ym9WFVsmhcCY5cnLnr9UGRCP3Vlt+BOnkgpgAFsn3Yzkt1T27s+ oqzDv/jLtoNMjxaIValzj4KN2ArJTFxZO3GVxzMqTuwggpKAUabZDdtQXp37gaT6yLCM e9SJP3ZoO/NCOJ2VV+78caBfu5FGruM9dLTe7kNLr0HLRWQi7aHOebkfh4/74aVXfbV9 nKLRKC1OcR8/dwNWzlAl26RAq6Vu0uBNrusBUQ3+v8QtLQYOpWsVf2pjSTOLjYC8/+4v Vo0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:to:cc:subject:date:mime-version :content-transfer-encoding:from:dkim-signature; bh=bOuOksZJoXbaL7IsTIZbAd8uRA2KdZcmEpIrDDtAX20=; b=H//cORio+wm4HEEtUH1u0DGlHbjjI2sW2SkfJQwCNQcpNT8+xQ/CiWEpv2u3l2L5Hc nDEsTMlbtkjKeV8C/qdknEI5avwGDwypl4wxPNs+LA/xiYD/B5SnKxMkpoby3RFP5SK0 nqB89W4AUVHYFDDYXnGtmwB07ffV1onNVsRp2vhdxBFww3UW6DQfO8YQPPPn8bDz/NVT 16jIdlfPP0sUdIHGuOHBNyNjsQz1S4sdo5h9vgcfcQEP004hihbHdhy8FcCR+/jir6Y0 /pI+IUtVTrDiQiqCx5DOkzk/6ubdkjV+jieFBt1hJDP+Q249m/d2Ag+6pvbKrJH1/WNW swcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=bq1+a0JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a056402500b00b0046b00a9ee8csi4845354eda.233.2022.11.28.09.29.40; Mon, 28 Nov 2022 09:30:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=bq1+a0JK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232772AbiK1RQS (ORCPT + 84 others); Mon, 28 Nov 2022 12:16:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232834AbiK1RQN (ORCPT ); Mon, 28 Nov 2022 12:16:13 -0500 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E319E23EA3 for ; Mon, 28 Nov 2022 09:16:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1669655757; s=strato-dkim-0002; d=goldelico.com; h=Message-Id:To:Cc:Subject:Date:From:Cc:Date:From:Subject:Sender; bh=bOuOksZJoXbaL7IsTIZbAd8uRA2KdZcmEpIrDDtAX20=; b=bq1+a0JKU+qCS698IbnrpsRZW2b+E+c0JRQ7KlLSbtZmeRmpXe/LjPhUk6EgGgg5du aWePs6sRvEWbZGPSlTqvnD1pH2nY2LfUmlUBVYR4q5CQpTOt0PjGJYgXAIkAAQrkqTmd hhh6dbP+aWhMFtQfiIPg2z5+BYNLt8Ytwl96pCLdxtJgv0HX+qARQ3uKuahVvcYHd0Pl 3Srok0pCeyQMIuYAhAD4HcBHtV1QBZZiC0QWk7wMaVmZJNynp40Lq/AjLPryAgI4YVHf 7T97wfCBCDXPxdgSAqyL2KGhIuXWOG9ZbF7poNAwTXu0F/PqYXRBs3cEuimSMsmv3/IX HloQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Apz9PSN6LgsXcGYk/8=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 48.2.1 DYNA|AUTH) with ESMTPSA id v55d69yASHFuCUa (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 28 Nov 2022 18:15:56 +0100 (CET) From: "H. Nikolaus Schaller" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Date: Mon, 28 Nov 2022 18:15:55 +0100 Subject: [BUG] Add missing include for strcmp. Cc: Andrew Morton , linux Kernel Mailing List , Discussions about the Letux Kernel To: Sam James Message-Id: X-Mailer: Apple Mail (2.3445.104.21) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, starting with v6.1-rc7 I can't build my tree any more: HOSTCC scripts/mod/modpost.o - due to target missing In file included from include/linux/string.h:5, from scripts/mod/../../include/linux/license.h:5, from scripts/mod/modpost.c:24: include/linux/compiler.h:246:10: fatal error: asm/rwonce.h: No such file = or directory 246 | #include | ^~~~~~~~~~~~~~ compilation terminated. Bisect did show your patch as the first bad one: commit 50c697215a8c "Add missing include for strcmp." Reverting it makes compile succeed. The problem is that HOSTCC is not necessarily the same compiler or even architecture as CC and pulling in or files indirectly isn't a good idea then. My toolchain is providing HOSTCC =3D gcc (MacPorts) and CC =3D = arm-linux-gnueabihf (built from gcc source) and all running on Darwin. If I change the include to I can then "HOSTCC = scripts/mod/modpost.c" but then it fails for "CC kernel/module/main.c" not finding : CC kernel/module/main.o - due to target missing In file included from kernel/module/main.c:43:0: ./include/linux/license.h:5:20: fatal error: string.h: No such file or = directory #include ^ compilation terminated. So this should be a conditional include depending on CC vs. HOSTCC. Or moved elsewhere. BR and thanks, Nikolaus