Clang: no null references
This commit is contained in:
parent
28724236b2
commit
b7a10296a1
|
@ -45,7 +45,7 @@ class Genode::Region_map_component : public Rpc_object<Region_map>,
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Region_map_component(Rpc_entrypoint &, Allocator &, Pager_entrypoint &,
|
Region_map_component(Rpc_entrypoint &, Allocator &, Pager_entrypoint *,
|
||||||
addr_t, size_t, Session::Diag) { }
|
addr_t, size_t, Session::Diag) { }
|
||||||
|
|
||||||
void upgrade_ram_quota(size_t) { }
|
void upgrade_ram_quota(size_t) { }
|
||||||
|
|
|
@ -72,7 +72,7 @@ class Genode::Core_env : public Env_deprecated, Noncopyable
|
||||||
Ram_dataspace_factory::Virt_range { platform().vm_start(),
|
Ram_dataspace_factory::Virt_range { platform().vm_start(),
|
||||||
platform().vm_size() },
|
platform().vm_size() },
|
||||||
_region_map,
|
_region_map,
|
||||||
*((Pager_entrypoint *)nullptr),
|
nullptr,
|
||||||
"" /* args to native PD */,
|
"" /* args to native PD */,
|
||||||
platform_specific().core_mem_alloc())
|
platform_specific().core_mem_alloc())
|
||||||
{
|
{
|
||||||
|
|
|
@ -70,7 +70,7 @@ class Genode::Pd_root : public Genode::Root_component<Genode::Pd_session_compone
|
||||||
_phys_alloc,
|
_phys_alloc,
|
||||||
_phys_range_from_args(args),
|
_phys_range_from_args(args),
|
||||||
_virt_range_from_args(args),
|
_virt_range_from_args(args),
|
||||||
_local_rm, _pager_ep, args,
|
_local_rm, &_pager_ep, args,
|
||||||
_core_mem);
|
_core_mem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ class Genode::Pd_session_component : public Session_object<Pd_session>
|
||||||
Phys_range phys_range,
|
Phys_range phys_range,
|
||||||
Virt_range virt_range,
|
Virt_range virt_range,
|
||||||
Region_map &local_rm,
|
Region_map &local_rm,
|
||||||
Pager_entrypoint &pager_ep,
|
Pager_entrypoint *pager_ep,
|
||||||
char const *args,
|
char const *args,
|
||||||
Range_allocator &core_mem)
|
Range_allocator &core_mem)
|
||||||
:
|
:
|
||||||
|
|
|
@ -305,7 +305,7 @@ class Genode::Region_map_component : private Weak_object<Region_map_component>,
|
||||||
for fault resolution */
|
for fault resolution */
|
||||||
List<Rm_client> _clients { }; /* list of RM clients using this region map */
|
List<Rm_client> _clients { }; /* list of RM clients using this region map */
|
||||||
Lock _lock { }; /* lock for map and list */
|
Lock _lock { }; /* lock for map and list */
|
||||||
Pager_entrypoint &_pager_ep;
|
Pager_entrypoint *_pager_ep;
|
||||||
Rm_dataspace_component _ds; /* dataspace representation of region map */
|
Rm_dataspace_component _ds; /* dataspace representation of region map */
|
||||||
Dataspace_capability _ds_cap;
|
Dataspace_capability _ds_cap;
|
||||||
|
|
||||||
|
@ -375,7 +375,7 @@ class Genode::Region_map_component : private Weak_object<Region_map_component>,
|
||||||
*/
|
*/
|
||||||
Region_map_component(Rpc_entrypoint &ep,
|
Region_map_component(Rpc_entrypoint &ep,
|
||||||
Allocator &md_alloc,
|
Allocator &md_alloc,
|
||||||
Pager_entrypoint &pager_ep,
|
Pager_entrypoint *pager_ep,
|
||||||
addr_t vm_start,
|
addr_t vm_start,
|
||||||
size_t vm_size,
|
size_t vm_size,
|
||||||
Session::Diag diag);
|
Session::Diag diag);
|
||||||
|
|
|
@ -76,7 +76,7 @@ class Genode::Rm_session_component : public Rpc_object<Rm_session>
|
||||||
try {
|
try {
|
||||||
Region_map_component *rm =
|
Region_map_component *rm =
|
||||||
new (_md_alloc)
|
new (_md_alloc)
|
||||||
Region_map_component(_ep, _md_alloc, _pager_ep, 0, size,
|
Region_map_component(_ep, _md_alloc, &_pager_ep, 0, size,
|
||||||
Diag{false});
|
Diag{false});
|
||||||
|
|
||||||
_region_maps.insert(rm);
|
_region_maps.insert(rm);
|
||||||
|
|
|
@ -644,7 +644,7 @@ _type_deduction_helper(Dataspace_capability cap) { return cap; }
|
||||||
|
|
||||||
Region_map_component::Region_map_component(Rpc_entrypoint &ep,
|
Region_map_component::Region_map_component(Rpc_entrypoint &ep,
|
||||||
Allocator &md_alloc,
|
Allocator &md_alloc,
|
||||||
Pager_entrypoint &pager_ep,
|
Pager_entrypoint *pager_ep,
|
||||||
addr_t vm_start,
|
addr_t vm_start,
|
||||||
size_t vm_size,
|
size_t vm_size,
|
||||||
Session::Diag diag)
|
Session::Diag diag)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user