Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp409035rdd; Tue, 9 Jan 2024 07:50:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTuu0p2dZdthHJLqNv9pEeR7Y5DaYat1FFxmWQTmDaSc41ZPsVzrWWkQbtQkuQ9oh/xmN7 X-Received: by 2002:a05:6a00:987:b0:6db:cce:13be with SMTP id u7-20020a056a00098700b006db0cce13bemr994597pfg.38.1704815431040; Tue, 09 Jan 2024 07:50:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704815431; cv=none; d=google.com; s=arc-20160816; b=tlVmAe4hAhzoNCBQLUEpfzbU2l1JqoFEF5gwkHP03YebvQLUv6AlIsQoqZukHQ4zu6 rMIUWBKU+Fkje/j1vCnst002NuWgoHYXodjHhSkuMMsO5Jsw5UVASC+WGJZV7orVRXtl 2uuETz+/D94o44zvujDhwg+FGBbTzZHPboW5ozmFnbKJ1SOHib6h9zOi076XnaocNRw0 XnD18xAzCfvTEtm3oMnSkO3483nvXK8y/amVSoJn8btS05u/QX07VIK0xvx1dxJGTQEI 7inOdQi7MgUY5fQwNe1m0t4vOdnsUBfOdt1b0Cqd9XeDfwANTnXvm5kdalOmXCfIzrG3 /B1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aS6EMqOjnuywpra94CwxUYtjZZkevwG1w1EtemlEeVo=; fh=6QLcDIBfhfdmQeof3XuBIYrdxWD1YaKmvPkkbjzzyB8=; b=mBpN/CPjdcmDo/xeIeYV//YYJiYFIaEmZ65extfgHR0ymO4kiHYmXg1ef6tqz/0VDN Iwjq0Tp3T1EsD6oUajUmcb2yfE60wchLeYigV9K4pjeM24bDHRrZ6r6e2hu6w5kVmDhN yFjcATyngvU4Se9Yolii68SMGQS2VKkyUPl6lK1Il3/6I/sqy0cUGhXFGN8IljwCPrCU I12yAmng6hZBhM9xcuj60FZ8hcIqKDmJMdkXYHQGe2OIOCPt56WbQ6+BG4V7/joIFbgY Xj/mGl8Oz0LHTQvfvxP/E3sW3G0F5Dr3VkFkUyF+S/8ZHSZ1G6IZ0KNmTiZAbBKLYF4B zA5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="FzZ/FmJq"; spf=pass (google.com: domain of linux-kernel+bounces-21071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x16-20020aa784d0000000b006d974ccc5a2si1636650pfn.42.2024.01.09.07.50.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 07:50:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="FzZ/FmJq"; spf=pass (google.com: domain of linux-kernel+bounces-21071-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 723C42845F5 for ; Tue, 9 Jan 2024 15:50:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62D803A8FF; Tue, 9 Jan 2024 15:49:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="FzZ/FmJq" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 498863A8C8; Tue, 9 Jan 2024 15:49:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 409D9CUU018828; Tue, 9 Jan 2024 15:49:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=aS6EMqOjnuywpra94CwxUYtjZZkevwG1w1EtemlEeVo=; b=Fz Z/FmJqsMEP4gb24vMeQHSxELuOrnsSPrkH/JEEXrPAIJF5OIv+xEXUhBzEKCRHL1 2UIjDqpFgXdYHpQGVEIEp6t9EnTATWWUAuGPf2sVuKy06OFdvc0xLw7pIr9MlaUE R2ACkUbPJw5OqzSY2HRm9xQNYkxwsAZKj/W/MT2RndWsdyWsKdjh9Olzw2Gq8Eos 7th6vpFDp/njvDp7iLJiavaHw4tuZ3c1YGp9ZMX1MMJjWL1OtWdHvfR5biElG/aJ 0TNoFf2Gg/Sx0EZ08TE/QfqYnjCf8GDaFdVe+kMvY2zL7Ua+/8ifu1acyW51mFLg umCTSAmtpgHYcIbW5o9w== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vh3me0nvw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 15:49:06 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 409Fn6Eq014936 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jan 2024 15:49:06 GMT Received: from hu-mojha-hyd.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 9 Jan 2024 07:49:01 -0800 From: Mukesh Ojha To: , , , , , , , , , , , , , , , CC: , , Mukesh Ojha Subject: [PATCH v7 05/12] init: export linux_banner data variable Date: Tue, 9 Jan 2024 21:01:53 +0530 Message-ID: <20240109153200.12848-6-quic_mojha@quicinc.com> X-Mailer: git-send-email 2.43.0.254.ga26002b62827 In-Reply-To: <20240109153200.12848-1-quic_mojha@quicinc.com> References: <20240109153200.12848-1-quic_mojha@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: FOnrTxNT32hWHdVH3BUjIki5V-tzzJbX X-Proofpoint-GUID: FOnrTxNT32hWHdVH3BUjIki5V-tzzJbX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 mlxscore=0 suspectscore=0 impostorscore=0 clxscore=1015 adultscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401090128 Some debug loadable module like minidump is interested in knowing the kernel version against which it is being build. Let's export linux_banner. Signed-off-by: Mukesh Ojha --- include/linux/init.h | 3 +++ init/version-timestamp.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/linux/init.h b/include/linux/init.h index 3fa3f6241350..023e7f08d26a 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -145,6 +145,9 @@ extern char *saved_command_line; extern unsigned int saved_command_line_len; extern unsigned int reset_devices; +/* Defined in init/version-timestamp.c */ +extern const char linux_banner[]; + /* used by init/main.c */ void setup_arch(char **); void prepare_namespace(void); diff --git a/init/version-timestamp.c b/init/version-timestamp.c index 043cbf80a766..a48f2c19e5d7 100644 --- a/init/version-timestamp.c +++ b/init/version-timestamp.c @@ -6,6 +6,7 @@ #include #include #include +#include struct uts_namespace init_uts_ns = { .ns.count = REFCOUNT_INIT(2), @@ -28,3 +29,5 @@ struct uts_namespace init_uts_ns = { const char linux_banner[] = "Linux version " UTS_RELEASE " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") " UTS_VERSION "\n"; + +EXPORT_SYMBOL_GPL(linux_banner); -- 2.43.0.254.ga26002b62827