Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2174317iob; Fri, 20 May 2022 03:50:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIhlboFRpB1MvEQZ8vsmjnjxbAe8KpeMBWgYQkwVZxaew9r3DEnk4hRt0tY5K9KHuwFWDY X-Received: by 2002:a17:90a:f81:b0:1df:91b5:f0e3 with SMTP id 1-20020a17090a0f8100b001df91b5f0e3mr10964129pjz.227.1653043829930; Fri, 20 May 2022 03:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653043829; cv=none; d=google.com; s=arc-20160816; b=RuJAca0jsmk88pIX4Ht2iDEXCKkEgG0NTZA8oLCT0hAyFKn3MclT/jMCQ99cgKt3AX g1HQC6LgTfn18uUzI6LJDVxsuZZ7htB53u2sXFVlojCd3AgI/fHD6k4fF/zeKoHomQJG fg8xckUew7RDLUOuHCYCSWvz+wM87Yc3HeM5RmFRBMtAFaBkYRFMhlLvwiR7eJDXNFTN 75hhi2XpB62Zl1M9B88U4L1F93Dxvo+UFN7UL4MLRsOypppNOPgvofiBQ1NeVVWL1k+f RDKJsONniYn1Rjg70q7AUguwO5fcw74+iKqhOKc0r6uCnr2kVShfJks7FczmRzqVa3WD woGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IcURIzUAaO0hawwQBa3QbU95nABbOKjkzznKXnu7p/M=; b=X7PswONG/QfALqZSP+HLoQuiSNp4u1f/8MgC02cuDGZpCqmqUaCGbAMe4SioZHlvjU A3doIHWYqA9V5jHTlyTXJa/UF4jzG//uuhG41tMTR/MXpNyVW5v/xL8GD6LMoske5Ief j1JDXxKy6iFEiLpMALdqMKWCd+W1SAW+fGUucmeHQePItJWGLQmtYUpwbSPTR/rg4th8 w28qMZTiAmvdEH/3j3W6g5g06nus2rtG171u2VuOQbJQPfCnKxj1HwX0W6iqfDNGGZcW lAnEndN3F5+AhCkx8cjuLFRq/Af7Ae6nV1KKGTX4Q7wmEt6Ll+Gu8Fidh9peDRSq2sza BCLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=JWpmXJZ1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x23-20020aa79197000000b0051868418b03si2213857pfa.253.2022.05.20.03.50.17; Fri, 20 May 2022 03:50:29 -0700 (PDT) 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=@chrisdown.name header.s=google header.b=JWpmXJZ1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243433AbiESRzh (ORCPT + 99 others); Thu, 19 May 2022 13:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243390AbiESRz3 (ORCPT ); Thu, 19 May 2022 13:55:29 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2047C59300 for ; Thu, 19 May 2022 10:55:27 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id k126so3306847wme.2 for ; Thu, 19 May 2022 10:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IcURIzUAaO0hawwQBa3QbU95nABbOKjkzznKXnu7p/M=; b=JWpmXJZ1wlQ3Jru3rS1u9eB8UO05ZEUrunbAL22mtbQEv4+uiHhOI0vbxMeDuqVY0x slBw40ljhv9NRn7gH+uzvSgsWaO1OrExdnCg4qxIVhyEh++rukgXukFP+ydfM0pL2Kr0 M8c0TQbyFyZUrRI1cVeSevhx56MMgLy1AN3/c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IcURIzUAaO0hawwQBa3QbU95nABbOKjkzznKXnu7p/M=; b=N0ivc5hoRvl8FQVEkGZiv/mtzYIAy6pINFBFU1MwWsAu1NqKylnIg8ZKYK56Ez+YOk voXLpGA2xGHPc2Skp0KULT7TsPHG8+j/q9r7dPB8kvvURCQsvwC3LDJfg5VQktISxO2R LkYPve0OCrqr1gUeTzUBI3GHstzLcu6rPxYnhPoN/3LPYTNpvnk3csp4zeAFbvUw3hQB Rs3LBSDxeWDMU0Ojns7RlNLPrNO+0U+vArVHF+aYV3z2NrfFUY8gYw8IPW8PZMnD2CsM aj00Fi4bhGS0+U3ZpgJDcCmpF8P9sihLVsdt8EDy3yiSyYREzKqr1MTCs4b2RIdn+3QL Hakg== X-Gm-Message-State: AOAM533/9v3AHprCLkUMQkMFegp1r3WalNrFzqdF9OhbzQcY9DgYQTad J/3GEHdp4fbgyMkH4K3scC88zz1CIBEU5+/o X-Received: by 2002:a7b:c114:0:b0:394:47d3:693f with SMTP id w20-20020a7bc114000000b0039447d3693fmr5612215wmi.42.1652982926317; Thu, 19 May 2022 10:55:26 -0700 (PDT) Received: from localhost ([2620:10d:c092:400::4:c1eb]) by smtp.gmail.com with ESMTPSA id q6-20020adfbb86000000b0020c5253d902sm206567wrg.78.2022.05.19.10.55.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 10:55:25 -0700 (PDT) Date: Thu, 19 May 2022 18:55:24 +0100 From: Chris Down To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Petr Mladek , kernel-team@fb.com Subject: Re: [RFC PATCH] printk: console: Allow each console to have its own loglevel Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.4 (c3baa83e) (2022-04-30) 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_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Greg Kroah-Hartman writes: >> So, just to try to come to a solution, here's the lay of the land as I >> understand it. Currently pretty much all consoles are statically defined >> (and most of the non-static cases are false positives) >> >> % git grep 'struct console.*=' -- '*.c' | awk '/static/ { print "static"; } !/static/ { print "non-static" }' | sort | uniq -c >> 15 non-static >> 105 static > >ah, ok, then we have a problem, and your change to the struct device >being a pointer is correct. > >That's the problem when you only see a tiny bit of the kernel in a >patch, sorry for the confusion. No worries! Just glad we got to the bottom of it :-) >But you still need to free the device structure that is pointed to by >the device in the release function. Your release function can not be >"empty" like your original patch was. Great, then I'll implement it like the earlier diff I posted unless you have any objections. Thanks a lot for your help and advice!