mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/console: promote conring{,_size} to __ro_after_init
Both conring{,_size} should be RO after initialization is completed.
Change the conring integer parameters type to `unsigned int` as required
by CODING_STYLE.
Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
c363ac025c
commit
185847d0b6
1 file changed
+4
-4
@@ -340,15 +340,15 @@ static void cf_check do_dec_thresh(unsigned char key, bool unused)
|
||||
*/
|
||||
|
||||
/* conring_size: allows a larger console ring than default (16kB). */
|
||||
static uint32_t __initdata opt_conring_size;
|
||||
static unsigned int __initdata opt_conring_size;
|
||||
size_param("conring_size", opt_conring_size);
|
||||
|
||||
#define _CONRING_SIZE 16384
|
||||
#define CONRING_IDX_MASK(i) ((i)&(conring_size-1))
|
||||
static char __initdata _conring[_CONRING_SIZE];
|
||||
static char *__read_mostly conring = _conring;
|
||||
static uint32_t __read_mostly conring_size = _CONRING_SIZE;
|
||||
static uint32_t conringc, conringp;
|
||||
static char *__ro_after_init conring = _conring;
|
||||
static unsigned int __ro_after_init conring_size = _CONRING_SIZE;
|
||||
static unsigned int conringc, conringp;
|
||||
|
||||
static void cf_check conring_notify(void *unused)
|
||||
{
|
||||
|
||||